Skip to content

Commit 3d49187

Browse files
committed
feat(lsm-tree-bench-wp8): add salt
1 parent 0c12f47 commit 3d49187

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bench/macro/lsm-tree-bench-wp8.hs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ benchTableConfig :: LSM.TableConfig
8787
benchTableConfig =
8888
LSM.defaultTableConfig {LSM.confFencePointerIndex = LSM.CompactIndex}
8989

90+
benchSalt :: LSM.Salt
91+
benchSalt = 4
92+
9093
-------------------------------------------------------------------------------
9194
-- Keys and values
9295
-------------------------------------------------------------------------------
@@ -413,7 +416,7 @@ doSetup' gopts opts = do
413416

414417
let name = LSM.toSnapshotName "bench"
415418

416-
LSM.withSession (mkTracer gopts) hasFS hasBlockIO (FS.mkFsPath []) $ \session -> do
419+
LSM.withSession (mkTracer gopts) hasFS hasBlockIO benchSalt (FS.mkFsPath []) $ \session -> do
417420
tbl <- LSM.newTableWith @IO @K @V @B (mkTableConfigSetup gopts opts benchTableConfig) session
418421

419422
forM_ (groupsOfN 256 [ 0 .. initialSize gopts ]) $ \batch -> do
@@ -575,7 +578,7 @@ doRun gopts opts = do
575578

576579
let name = LSM.toSnapshotName "bench"
577580

578-
LSM.withSession (mkTracer gopts) hasFS hasBlockIO (FS.mkFsPath []) $ \session ->
581+
LSM.withSession (mkTracer gopts) hasFS hasBlockIO benchSalt (FS.mkFsPath []) $ \session ->
579582
withLatencyHandle $ \h -> do
580583
-- open snapshot
581584
-- In checking mode we start with an empty table, since our pure

0 commit comments

Comments
 (0)