Basho_bench_couch is a project mainly written in ERLANG and R, based on the Apache-2.0 license.
Apache CouchDB tests on top of Basho Bench
basho_bench ** Overview Basho Bench is a benchmarking tool created to conduct accurate and repeatable performance tests and stress tests, and produce performance graphs.
Originally developed to benchmark Riak, it exposes a pluggable driver interface and has been extended to serve as a benchmarking tool across a variety of projects.
Basho Bench focuses on two metrics of performance:
** Quick Start
You must have [[http://erlang.org/download.html][Erlang/OTP R13B03]] or later to build and run Basho Bench, and [[http://www.r-project.org/][R]] to generate graphs of your benchmarks. A sane GNU-style build system is also required if you want to use =make= to build the project.
git clone git://github.com/basho/basho_bench.git cd basho_bench make all
This will build an executable script, =basho_bench=, which you can use to run one of the existing benchmark configurations from the =examples/= directory. You will likely have to make some minor directory changes to the configs in order to get the examples running (see, e.g., the source of the bitcask and innostore benchmark config files for direction).
$ ./basho_bench examples/riakc_pb.config INFO: Est. data size: 95.37 MB INFO: Using target ip {127,0,0,1} for worker 1 INFO: Starting max worker: <0.55.0>
At the end of the benchmark, results will be available in CSV format in the =tests/current/= directory. Now you can generate a graph:
$ make results priv/summary.r -i tests/current Loading required package: proto Loading required package: reshape Loading required package: plyr Loading required package: digest null device 1 $ open tests/current/summary.png
** Customizing your Benchmark Basho Bench has many drivers, each with its own configuration, and a number of key and value generators that you can use to customize your benchmark. It is also straightforward -- with less than 200 lines of Erlang code -- to create custom drivers that can exercise other systems or perform custom operations. These are covered more in detail on the [[http://wiki.basho.com/Benchmarking-with-Basho-Bench.html][Basho wiki]].
** Contributing We encourage contributions to Basho Bench from the community.
git clone [email protected]:yourusername/basho_bench.git
git remote add mine [email protected]:yourusername/basho_bench.git
git checkout -b some-topic-branch
git push mine some-topic-branch