mirror of
https://github.com/taigrr/bitcask
synced 2025-01-18 04:03:17 -08:00
Use consistent directory names in benchmarks (#24)
* patch: use current directory for benchmarks * Use consistent directory names
This commit is contained in:
parent
a74203b99e
commit
c28c72108f
@ -565,7 +565,7 @@ func BenchmarkPut(b *testing.B) {
|
||||
b.Fatal(err)
|
||||
}
|
||||
|
||||
testdir, err := ioutil.TempDir(currentDir, "bitcask")
|
||||
testdir, err := ioutil.TempDir(currentDir, "bitcask_bench")
|
||||
if err != nil {
|
||||
b.Fatal(err)
|
||||
}
|
||||
@ -612,7 +612,7 @@ func BenchmarkScan(b *testing.B) {
|
||||
b.Fatal(err)
|
||||
}
|
||||
|
||||
testdir, err := ioutil.TempDir(currentDir, "bitcask")
|
||||
testdir, err := ioutil.TempDir(currentDir, "bitcask_bench")
|
||||
if err != nil {
|
||||
b.Fatal(err)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user