Skip to content

Benchmark configuration

Clayton Knittel edited this page Feb 12, 2021 · 3 revisions

Setting the namespace and set

To set the namespace that the benchmarking tool will operate under, pass the --namespace (or -n) flag followed by the name of the namespace. To set the set to be used, use --set (or -s).

For example, to work under the namespace "myNS" and the set "mySet", you would run:

target/benchmark -n myNS -s mySet

The default namespace is "test", and the default set is "testset".

Configuring the number of worker threads

To set the number of worker threads to use for synchronous workloads, pass the --threads (or -z) flag followed by the number of worker threads. For example:

target/benchmark -z 16

The default number of worker threads is 16.

To set the number of event loop threads which process asynchronous commands, pass the --eventLoops (or -W) flag followed by the number of desired event loop threads. These threads are only used in asynchronous workloads, and so changing this number will have no effect on synchronous workloads.

For example, to run an asynchronous workload of random read/updates with 4 event loop threads, run:

target/benchmark --workload RU --async -W 4

See workload stages for a complete description of how to configure workloads.

The default number of event loop threads is 1.

Clone this wiki locally