From d0ee50596d9d4d535897562466a2f3c19295df39 Mon Sep 17 00:00:00 2001 From: Joris Dral Date: Thu, 3 Jul 2025 10:30:52 +0200 Subject: [PATCH] Rename the 'wp8' benchmarks to 'utxo' benchmarks That is, `lsm-tree-bench-wp8` becomes `utxo-bench` and `rocksdb-bench-wp8` becomes `utxo-rocksdb-bench`. We put `bench` as the last word because it is consistent with naming of other components in the `lsm-tree` library, e.g., `lsm-tree-test`, `lsm-tree-micro-bench`, etc. --- CONTRIBUTING.md | 2 +- bench/macro/{lsm-tree-bench-wp8.hs => utxo-bench.hs} | 2 +- .../macro/{rocksdb-bench-wp8.hs => utxo-rocksdb-bench.hs} | 0 lsm-tree.cabal | 8 ++++---- 4 files changed, 6 insertions(+), 6 deletions(-) rename bench/macro/{lsm-tree-bench-wp8.hs => utxo-bench.hs} (99%) rename bench/macro/{rocksdb-bench-wp8.hs => utxo-rocksdb-bench.hs} (100%) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 69c90e359..b92a57dd8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -25,7 +25,7 @@ executable using `--flag=+serialblockio`. > build. Installing `rocksdb` is entirely optional, and only required if one wants to -build or run the `rocksdb-bench-wp8` comparison macro-benchmark. +build or run the `utxo-rocksdb-bench` comparison macro-benchmark. * Ubuntu: ``` diff --git a/bench/macro/lsm-tree-bench-wp8.hs b/bench/macro/utxo-bench.hs similarity index 99% rename from bench/macro/lsm-tree-bench-wp8.hs rename to bench/macro/utxo-bench.hs index 2ec493a56..4fe14a124 100644 --- a/bench/macro/lsm-tree-bench-wp8.hs +++ b/bench/macro/utxo-bench.hs @@ -226,7 +226,7 @@ mkTracer gopts globalOptsP :: O.Parser GlobalOpts globalOptsP = pure GlobalOpts - <*> O.option O.str (O.long "bench-dir" <> O.value "_bench_wp8" <> O.showDefault <> O.help "Benchmark directory to put files in") + <*> O.option O.str (O.long "bench-dir" <> O.value "_bench_utxo" <> O.showDefault <> O.help "Benchmark directory to put files in") <*> O.option O.auto (O.long "initial-size" <> O.value 100_000_000 <> O.showDefault <> O.help "Initial LSM tree size") <*> O.option O.auto (O.long "disk-cache-policy" <> O.value LSM.DiskCacheAll <> O.showDefault <> O.help "Disk cache policy [DiskCacheAll | DiskCacheLevelOneTo Int | DiskCacheNone]") <*> O.flag False True (O.long "trace" <> O.help "Enable trace messages (disabled by default)") diff --git a/bench/macro/rocksdb-bench-wp8.hs b/bench/macro/utxo-rocksdb-bench.hs similarity index 100% rename from bench/macro/rocksdb-bench-wp8.hs rename to bench/macro/utxo-rocksdb-bench.hs diff --git a/lsm-tree.cabal b/lsm-tree.cabal index 16976fc28..ceaebb1ee 100644 --- a/lsm-tree.cabal +++ b/lsm-tree.cabal @@ -1032,11 +1032,11 @@ common measure-batch-latency if flag(measure-batch-latency) cpp-options: -DMEASURE_BATCH_LATENCY -benchmark lsm-tree-bench-wp8 +benchmark utxo-bench import: language, warnings, wno-x-partial, measure-batch-latency type: exitcode-stdio-1.0 hs-source-dirs: bench/macro - main-is: lsm-tree-bench-wp8.hs + main-is: utxo-bench.hs build-depends: , async , base <5 @@ -1064,11 +1064,11 @@ flag rocksdb default: True manual: False -benchmark rocksdb-bench-wp8 +benchmark utxo-rocksdb-bench import: language, warnings, wno-x-partial type: exitcode-stdio-1.0 hs-source-dirs: bench/macro - main-is: rocksdb-bench-wp8.hs + main-is: utxo-rocksdb-bench.hs if !(os(linux) && flag(rocksdb)) buildable: False