Skip to content
siddontang edited this page Nov 26, 2014 · 1 revision

Environment

Master

  • CPU: Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz × 6
  • MEM: 8GB
  • OS: CentOS 6.4, Linux version 2.6.32-279.el6.x86_64

Slave

  • CPU: Intel(R) Xeon(R) CPU E5606 @ 2.13GHz × 4
  • MEM: 2GB
  • OS: CentOS 6.4, Linux version 2.6.32-279.el6.x86_64

Master Config

Use default, if replication enabled, RocksDB disable_wal = true

Benchmark

Use benchmark -t='set,rpush,hset,zadd' -n=10000000 -r=3

no replication + no slave

round set rpush hset zadd
1 62615.17 55428.12 37645.02 43902.13
2 71450.95 57393.96 38816.02 44801.72
3 68835.43 56909.31 34490.22 44363.32
avg 67633.85 56577.13 36983.75 44355.72

replication + no slave

round set rpush hset zadd
1 62149.54 49873.84 28118.72 41723.12
2 60455.35 50495.61 37367.97 47003.17
3 66055.35 48890.24 38229.25 47272.69
avg 62886.75 49753.23 34571.98 45332.99

replication + async slave

round set rpush hset zadd
1 60585.01 58112.74 40123.04 45543.97
2 67605.01 57336.21 37556.92 48071.42
3 66538.59 56286.03 33256.43 45509.21
avg 64909.54 57244.99 36978.70 46374.87

replication + sync slave

round set rpush hset zadd
1 62176.3 58102.98 39272.99 42920.3
2 55779.68 37121.74 36518.02 45851.57
3 65242.9 55267.52 33900.56 46610.25
avg 61066.29 50164.08 36563.86 45127.37

Result

Write performance for RocksDB is very fast.