1
0
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:
Awn 2019-07-24 23:18:41 +01:00 committed by James Mills
parent a74203b99e
commit c28c72108f

View File

@ -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)
}