summaryrefslogtreecommitdiff
path: root/README.org
blob: 3dd932d1ca52832435a1dcc796683a905d068b5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
./build/bench ${database} ${limit:-10000} ${seed:-${RANDOM}}
#+END_SRC