Skip to content

Latest commit

 

History

History
85 lines (61 loc) · 2.18 KB

README.md

File metadata and controls

85 lines (61 loc) · 2.18 KB

NebulexBench

This project shows how to run bench/load tests against Nebulex using basho_bench tool.

Getting started

First of all, let's run:

$ mix deps.get
$ iex -S mix

Then, to start the load tests we should execute the next functions:

:basho_bench.start()

:basho_bench.setup_benchmark([])

Then, for running the benchmark for the cache with the local adapter:

:basho_bench.run_benchmark(['./bench/local_cache_bench.config'])

Once the bench starts you should see something like:

23:05:15.277 [info] Starting max worker: <0.295.0> on nonode@nohost
23:05:15.277 [info] Starting max worker: <0.293.0> on nonode@nohost
23:05:15.278 [info] Starting max worker: <0.291.0> on nonode@nohost
23:05:15.278 [info] Starting max worker: <0.289.0> on nonode@nohost
23:05:15.278 [info] Starting max worker: <0.287.0> on nonode@nohost
23:05:15.278 [info] Starting max worker: <0.285.0> on nonode@nohost
23:05:15.278 [info] Starting max worker: <0.283.0> on nonode@nohost
23:05:15.278 [info] Starting max worker: <0.281.0> on nonode@nohost
23:05:15.278 [info] Starting with duration: 5
:ok

Once the bench finishes:

23:10:22.458 [info] No Errors.
23:10:22.513 [info] module=basho_bench_stats_writer_csv event=stop stats_sink=csv

You can also run the benchmark for the cache with the partitioned adapter:

:basho_bench.run_benchmark(['./bench/partitioned_cache_bench.config'])

Finally, you can find the test results within the folder tests.

To plot the results, you need to install gnuplot, and then run for throughput:

$ ./deps/basho_bench/priv/gp_throughput.sh -d "tests/current"

And for latencies:

$ ./deps/basho_bench/priv/gp_latencies.sh -d "tests/current" -k "mean"

Test Environment:

  • Operating System: macOS Mojave
  • Processor: 2,3 GHz Intel Core i9 (8 cores, 16 HW threads)
  • Memory: 16 GB 2400 MHz DDR4
  • Elixir 1.10.3
  • Erlang 22.3