File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
bench/micro/Bench/Database/LSMTree/Internal Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ import qualified Database.LSMTree.Internal.RunAcc as RunAcc
2828import qualified Database.LSMTree.Internal.RunBuilder as RunBuilder
2929import Database.LSMTree.Internal.RunNumber
3030import Database.LSMTree.Internal.Serialise
31+ import Database.LSMTree.Internal.Types (Salt )
3132import Database.LSMTree.Internal.UniqCounter
3233import Prelude hiding (getContents )
3334import System.Directory (removeDirectoryRecursive )
@@ -221,8 +222,11 @@ benchmarks = bgroup "Bench.Database.LSMTree.Internal.Merge" [
221222 | w <- weights
222223 ]
223224
225+ benchSalt :: Salt
226+ benchSalt = 4
227+
224228sessionSalt :: SessionSalt
225- sessionSalt = SessionSalt 4
229+ sessionSalt = SessionSalt benchSalt
226230
227231runParams :: RunBuilder. RunParams
228232runParams =
@@ -450,5 +454,5 @@ randomRunData Config {..} runentries g0 =
450454-- Each run entry needs a distinct key.
451455randomWord64OutOf :: Int -> Rnd SerialisedKey
452456randomWord64OutOf possibleKeys =
453- first (serialiseKey . Hash. hashSalt64 0 )
457+ first (serialiseKey . Hash. hashSalt64 benchSalt )
454458 . uniformR (0 , fromIntegral possibleKeys :: Word64 )
You can’t perform that action at this time.
0 commit comments