summaryrefslogtreecommitdiff
path: root/README.org
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2025-09-14 21:54:09 -0400
committerJohn Turner <jturner.usa@gmail.com>2025-09-14 21:54:09 -0400
commitfc6a77f510dc71ee083685543484b0b8bfa37978 (patch)
treea6149a7c579250eb08e3941be3f420b1a0f1d729 /README.org
parentef388c5e6848e7badb1d7e4ef44d571c9a2dbe94 (diff)
downloadsqlite-kv-bench-fc6a77f510dc71ee083685543484b0b8bfa37978.tar.gz
update README
Diffstat (limited to 'README.org')
-rw-r--r--README.org13
1 files changed, 12 insertions, 1 deletions
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