Memcached is at the heart of Couchbase and its the worlds fastest and most reliable cache solution. Like any process or application on a server there are many varibles that go into determining speed.
PRO TIP – When testing or evaluating Couchbase remember to install it on a vanilla OEM operating system image. I have seen many times Couchbase performing sub-par because a “standard corporate” image have other applications or setting that interfere with Couchbase operations.
How do we measure the performance of Couchbase?
The tool to use for performance information is CBSTATS. CBSTATS is a CLI tool ussually located in Couchbase server at /opt/couchbase/bin/cbstats
This tools only relates to performance stats to only a particular node and bucket. The stats are for only performance on the couchbase server level side and does not have any data of client side stats.
#./cbstats <IP>:11210 <command> -b <bucket_name> -p <bucket_password>
CBSTATS is on a per node per bucket bases.
NOTE – This only measures speed at the Couchbase Server Application it self and not to the SDK.
The specific command you want is timings
#./cbstats 127.0.0.1:11210 timings -b <bucket_name> -p <bucket_password>
This will give you a histogram of all the specific events. You will not be able to track down a single and specific GET() or SET() but you can see a history.Many times you will want to test and clear the history and test again. The best method for that is to use the reset command to clear the histogram.
#./cbstats 127.0.0.1:11210 reset -b <bucket_name> -p <bucket_password>
For more details about CBSTATS click here on the official documentation: http://docs.couchbase.com/admin/admin/CLI/cbstats-intro.html
The source code for CBSTATS is here on GITHUB: https://github.com/couchbase/couchbase-cli