Skip to content

Commit b05fc93

Browse files
committed
Include size of the table in WP8 benchmark snapshots
This allows each `setup` to store its own snapshot based on the `--initial-size` parameter. This makes it slightly easier to run multiple benchmarks with different `--initial-size`s from the same session directory.
1 parent b0894fe commit b05fc93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bench/macro/utxo-bench.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ doSetup' gopts opts = do
447447

448448
hasBlockIO <- FsIO.ioHasBlockIO hasFS FS.defaultIOCtxParams
449449

450-
let name = LSM.toSnapshotName "bench"
450+
let name = LSM.toSnapshotName ("bench_" ++ show (initialSize gopts))
451451

452452
LSM.withOpenSession (mkTracer gopts) hasFS hasBlockIO benchSalt (FS.mkFsPath []) $ \session -> do
453453
tbl <- LSM.newTableWith @IO @K @V @B (mkTableConfigSetup gopts opts benchTableConfig) session

0 commit comments

Comments
 (0)