forked from cosmos/iavl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request cosmos#48 from orijtech/build_tag_for_benchmarks
iavl: use build tag gcc to run CLevelDB benchmarks appropriately
- Loading branch information
Showing
2 changed files
with
25 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// +build gcc | ||
|
||
// This file exists because some of the DBs e.g CLevelDB | ||
// require gcc as the compiler before they can ran otherwise | ||
// we'll encounter crashes such as in https://github.com/tendermint/merkleeyes/issues/39 | ||
|
||
package iavl | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/tendermint/tmlibs/db" | ||
) | ||
|
||
func BenchmarkImmutableAvlTreeCLevelDB(b *testing.B) { | ||
db := db.NewDB("test", db.CLevelDBBackendStr, "./") | ||
benchmarkImmutableAvlTreeWithDB(b, db) | ||
} |