From fc6a77f510dc71ee083685543484b0b8bfa37978 Mon Sep 17 00:00:00 2001 From: John Turner Date: Sun, 14 Sep 2025 21:54:09 -0400 Subject: update README --- README.org | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.org b/README.org index 3773bae..3dd932d 100644 --- a/README.org +++ b/README.org @@ -1,8 +1,19 @@ * how to use First create the test database with ~scripts/mkdb.py~. +#+BEGIN_SRC_BASH +./scripts//mkdb.py --database /tmp/db --word-list /usr/share/dict/eff_large_wordlist.txt --num-records=1000000 --key-length=20-200 --value-length=10-100 +#+END_SRC + +Compile the bench executable with +#+BEGIN_SRC_BASH +meson setup build +meson configure --buildtype=release build +meson compile -C build +#+END_SRC + An example run of the benchmark: #+BEGIN_SRC_BASH -bench ${database} ${limit:-10000} ${seed:-${RANDOM}} +./build/bench ${database} ${limit:-10000} ${seed:-${RANDOM}} #+END_SRC -- cgit v1.2.3