memcached性能测试 twemperf
twemperf 是一个用来测试 memcached 服务器性能的工具。
测试实例:
$ mcperf --linger=0 --timeout=5 --conn-rate=1000 --call-rate=1000 --num-calls=10 --num-conns=1000 --sizes=u1,16 Total: connections 1000 requests 10000 responses 10000 test-duration 1.009 s Connection rate: 991.1 conn/s (1.0 ms/conn <= 23 concurrent connections) Connection time [ms]: avg 10.3 min 10.1 max 14.1 stddev 0.1 Connect time [ms]: avg 0.2 min 0.1 max 0.8 stddev 0.0 Request rate: 9910.5 req/s (0.1 ms/req) Request size [B]: avg 35.9 min 28.0 max 44.0 stddev 4.8 Response rate: 9910.5 rsp/s (0.1 ms/rsp) Response size [B]: avg 8.0 min 8.0 max 8.0 stddev 0.0 Response time [ms]: avg 0.2 min 0.1 max 13.4 stddev 0.00 Response time [ms]: p25 1.0 p50 1.0 p75 1.0 Response time [ms]: p95 1.0 p99 1.0 p999 1.0 Response type: stored 10000 not_stored 0 exists 0 not_found 0 Response type: num 0 deleted 0 end 0 value 0 Response type: error 0 client_error 0 server_error 0 Errors: total 0 client-timo 0 socket-timo 0 connrefused 0 connreset 0 Errors: fd-unavail 0 ftab-full 0 addrunavail 0 other 0 CPU time [s]: user 0.64 system 0.35 (user 63.6% system 35.1% total 98.7%) Net I/O: bytes 428.7 KB rate 424.8 KB/s (3.5*10^6 bps)
https://github.com/推ter/twemperf
本文由用户 openkk 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
转载本站原创文章,请注明出处,并保留原始链接、图片水印。
本站是一个以用户分享为主的开源技术平台,欢迎各类分享!