@
JerryZhang 我这边购买了北京 C 的 256MB 实例进行测试,下面是 2 次测试的结果,性能这块由于测试方式的不同,另外还有之前 Redis 实例规格也做了一定调整,所以不同阶段的性能都是有一定的不同,这边如果有兴趣再测试下阿里云 Redis 的性能我这边可以协助进行配合,目前云 Redis 的规格已经做了一次比较大的调整,带宽连接数都能够有比较好的保证。
测试结果 1 :
./memtier_benchmark --server hostt -p 6379 -P redis --threads=16 --clients=4 -a password --data-size=128 --test-time=60 --ratio=1:10 --key-pattern=S:S
[RUN #1] Preparing benchmark client...
[RUN #1] Launching threads now...
[RUN #1 100%, 60 secs] 0 threads: 5517806 ops, 91476 (avg: 91963) ops/sec, 4.00MB/sec (avg: 4.01MB/sec), 0.70 (avg: 0.69) msec latency high rt count: 0
16 Threads
4 Connections per thread
60 Seconds
ALL STATS
========================================================================
Type Ops/sec Hits/sec Misses/sec Latency KB/sec
------------------------------------------------------------------------
Sets 8360.71 --- --- 0.70200 1419.61
Gets 83602.50 0.00 83602.50 0.69300 2683.69
Waits 0.00 --- --- 0.00000 ---
Totals 91963.22 0.00 83602.50 0.69400 4103.31
测试结果 2 :
./memtier_benchmark --server host -p 6379 -P redis --threads=16 --clients=4 -a password--data-size=128 --test-time=60 --ratio=1:10 --key-pattern=S:S --pipeline=2
[RUN #1] Preparing benchmark client...
[RUN #1] Launching threads now...
[RUN #1 100%, 60 secs] 0 threads: 9682946 ops, 145154 (avg: 161381) ops/sec, 6.48MB/sec (avg: 7.09MB/sec), 0.88 (avg: 0.79) msec latency high rt count: 0
16 Threads
4 Connections per thread
60 Seconds
ALL STATS
========================================================================
Type Ops/sec Hits/sec Misses/sec Latency KB/sec
------------------------------------------------------------------------
Sets 14671.51 --- --- 0.79800 2496.81
Gets 146710.32 0.00 146710.32 0.78900 4766.02
Waits 0.00 --- --- 0.00000 ---
Totals 161381.83 0.00 146710.32 0.79000 7262.83