# How to test and benchmark Aerospike (vs. Couchbase)

**URL:** <https://discuss.aerospike.com/t/how-to-test-and-benchmark-aerospike-vs-couchbase/2114>\
**Category:** Benchmarks\
**Created:** [November 11, 2015, 12:53am UTC](https://discuss.aerospike.com/t/how-to-test-and-benchmark-aerospike-vs-couchbase/2114 "2015-11-11T00:53:48Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Mnemaudsyne](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/mnemaudsyne/32/200_2.png) [@Mnemaudsyne](https://discuss.aerospike.com/u/Mnemaudsyne)\
**Post date:** [November 11, 2015, 12:58am UTC](https://discuss.aerospike.com/t/how-to-test-and-benchmark-aerospike-vs-couchbase/2114/2 "2015-11-11T00:58:17Z")

</div>

I am not very familiar with Couchbase, but I can give you pointers on to benchmark against Aerospike (I work there). The YCSB (Yahoo! Cloud System Benchmark) would probably be the best tool to use against both. [Here is](https://github.com/aerospike/ycsb) the code to use against Aerospike.

Now for specifically benchmarking Aerospike, I would recommend using one of Aerospike’s benchmark tools - for example the [Java benchmark tool](http://www.aerospike.com/docs/client/java/benchmarks.html) - and use a String (-o S:) or a Java blob (-o B:) with a length comparable to your json document.

For example:

```
./run_benchmarks -h 127.0.0.1 -p 3000 -n test -k 10000000 -b 1 -o B:1400 -w RU,80 -z 8

```

This would run a workload of 80% reads and 20% writes (`-w RU,80`) and using 8 concurrent threads (`-z 8`).

Some important points to consider, though:

- Ideally, this should run against a 2+ node cluster (so you do check with replication factor 2).
- You will probably need more than 1 client host as you will likely hit bottlenecks on the client side before saturating the cluster.
- You will want to find out the optimal number of threads for your workload / object size. Typically, this is between 60 and 100.

Finally, I recommend that you read some of the [published documentation](http://www.aerospike.com/category/benchmarks/) related to benchmarking Aerospike and other NoSQL databases, particularly, [this one](http://www.aerospike.com/blog/aerospike-doubles-in-memory-nosql-database-performance/).

Hope this helps!

---

_[View the full topic](https://discuss.aerospike.com/t/how-to-test-and-benchmark-aerospike-vs-couchbase/2114)._
