Skip to content

Commit 3779348

Browse files
committed
Change the table config in the microbenchmarks Bench.Database.LSMTree
Use no disk caching, since that makes things more interesting. Use a much smaller write buffer. Otherwise the number of elements was 80k and the write buffer was a quater of that at 20k, which corresponds to just four runs. That doesn't allow for much run merging, which makes things less interesting. By using 1k for the write buffer, we get 80 runs inserted (or more for the benchmarks that use multiple iterations).
1 parent 5ed2a42 commit 3779348

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bench/micro/Bench/Database/LSMTree.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,9 @@ instance ResolveValue V3 where
7979

8080
benchConfig :: TableConfig
8181
benchConfig = defaultTableConfig
82-
{ confWriteBufferAlloc = AllocNumEntries 20000
82+
{ confWriteBufferAlloc = AllocNumEntries 1000
8383
, confFencePointerIndex = CompactIndex
84+
, confDiskCachePolicy = DiskCacheNone
8485
}
8586

8687
benchSalt :: Bloom.Salt

0 commit comments

Comments
 (0)