@@ -79,6 +79,14 @@ import Database.LSMTree.Internal.ByteString (byteArrayToSBS)
7979-- using only use public lsm-tree interface
8080import qualified Database.LSMTree.Normal as LSM
8181
82+ -------------------------------------------------------------------------------
83+ -- Table configuration
84+ -------------------------------------------------------------------------------
85+
86+ benchTableConfig :: LSM. TableConfig
87+ benchTableConfig =
88+ LSM. defaultTableConfig {LSM. confFencePointerIndex = LSM. CompactIndex }
89+
8290-------------------------------------------------------------------------------
8391-- Keys and values
8492-------------------------------------------------------------------------------
@@ -407,7 +415,7 @@ doSetup' gopts opts = do
407415 LSM. mkSnapshotName " bench"
408416
409417 LSM. withSession (mkTracer gopts) hasFS hasBlockIO (FS. mkFsPath [] ) $ \ session -> do
410- tbl <- LSM. new @ IO @ K @ V @ B session (mkTableConfigSetup gopts opts LSM. defaultTableConfig )
418+ tbl <- LSM. new @ IO @ K @ V @ B session (mkTableConfigSetup gopts opts benchTableConfig )
411419
412420 forM_ (groupsOfN 256 [ 0 .. initialSize gopts ]) $ \ batch -> do
413421 -- TODO: this procedure simply inserts all the keys into initial lsm tree
@@ -576,7 +584,7 @@ doRun gopts opts = do
576584 -- reference version starts with empty (as it's not practical or
577585 -- necessary for testing to load the whole snapshot).
578586 tbl <- if check opts
579- then LSM. new @ IO @ K @ V @ B session (mkTableConfigRun gopts LSM. defaultTableConfig )
587+ then LSM. new @ IO @ K @ V @ B session (mkTableConfigRun gopts benchTableConfig )
580588 else LSM. openSnapshot @ IO @ K @ V @ B session (mkTableConfigOverride gopts) label name
581589
582590 -- In checking mode, compare each output against a pure reference.
0 commit comments