Yahoo! Cloud Serving Benchmark in C++, a C++ version of YCSB (https://github.com/brianfrankcooper/YCSB/wiki)
  • C 67.3%
  • C++ 27.6%
  • Makefile 2.8%
  • Ruby 1.2%
  • Python 0.6%
  • Other 0.5%
Find a file
2026-03-30 20:40:09 -04:00
core add zeropadding parameter 2021-03-04 20:06:55 +08:00
db doc: change comment and script output 2026-02-09 19:19:43 -05:00
lib Fix static assertion over value not being same type as allocator value type 2020-01-21 10:29:40 -05:00
redis Fix ld error in redis Makefile 2016-09-02 17:58:18 +08:00
workloads Integrate Redis into YCSB-C 2016-05-08 23:19:16 +08:00
.clangd mongod: modify mongodb factory and properties passing 2026-01-27 20:58:51 -05:00
.gitignore Fix ld error in redis Makefile 2016-09-02 17:58:18 +08:00
LICENSE Initial commit 2014-12-06 18:14:56 -08:00
Makefile mongod: refactor into using client pool 2026-01-27 23:01:58 -05:00
parse_result.py Tweaks the output parsing script parse_result.py. 2015-01-15 15:06:41 -08:00
README.md doc: add library requirements on ubuntu 2026-03-30 20:40:09 -04:00
run.sh Cleans unnecessary files. 2015-01-15 14:10:47 -08:00
run_mongodb_batch.sh doc: change comment and script output 2026-02-09 19:19:43 -05:00
run_redis.sh Change option sync to slaves 2016-05-10 14:28:14 +08:00
ycsbc.cc fix: wrong boolean argument get for latency 2026-02-08 18:52:32 -05:00

YCSB-C

Yahoo! Cloud Serving Benchmark in C++, a C++ version of YCSB (https://github.com/brianfrankcooper/YCSB/wiki)

Quick Start

To build YCSB-C on Ubuntu, for example:

$ sudo apt-get install libtbb-dev libmongoc-dev pkg-config libhiredis-dev
$ make

As the driver for Redis is linked by default, change the runtime library path to include the hiredis library by:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

Run Workload A with a TBB-based implementation of the database, for example:

./ycsbc -db tbb_rand -threads 4 -P workloads/workloada.spec

Also reference run.sh and run_redis.sh for the command line. See help by invoking ./ycsbc without any arguments.

Note that we do not have load and run commands as the original YCSB. Specify how many records to load by the recordcount property. Reference properties files in the workloads dir.