memcache vs redis 性能测试

//redis get

This is ApacheBench, Version 2.3 <$Revision: 655654 $>

Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/


Benchmarking localhost (be patient)




Server Software:        nginx/1.9.4
Server Hostname:        localhost
Server Port:            80


Document Path:          /test/test.php
Document Length:        0 bytes


Concurrency Level:      100
Time taken for tests:   47.997 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      147000 bytes
HTML transferred:       0 bytes
Requests per second:    20.83 [#/sec] (mean)
Time per request:       4799.664 [ms] (mean)
Time per request:       47.997 [ms] (mean, across all concurrent requests)
Transfer rate:          2.99 [Kbytes/sec] received


Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    1   1.6      0       6
Processing:   103 4646 737.0   4787    6722
Waiting:       97 4646 737.0   4787    6722
Total:        103 4646 736.0   4787    6722


Percentage of the requests served within a certain time (ms)
  50%   4787
  66%   4814
  75%   4822
  80%   4849
  90%   4925
  95%   5343
  98%   6071
  99%   6128

 100%   6722 (longest request)

 

 

//redis set

This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/


Benchmarking localhost (be patient)




Server Software:        nginx/1.9.4
Server Hostname:        localhost
Server Port:            80


Document Path:          /test/test.php
Document Length:        0 bytes


Concurrency Level:      100
Time taken for tests:   51.391 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      147000 bytes
HTML transferred:       0 bytes
Requests per second:    19.46 [#/sec] (mean)
Time per request:       5139.068 [ms] (mean)
Time per request:       51.391 [ms] (mean, across all concurrent requests)
Transfer rate:          2.79 [Kbytes/sec] received


Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   1.3      0       6
Processing:    92 4975 728.6   5115    7040
Waiting:       86 4975 728.6   5115    7040
Total:         92 4975 727.6   5115    7040


Percentage of the requests served within a certain time (ms)
  50%   5115
  66%   5163
  75%   5207
  80%   5213
  90%   5231
  95%   5253
  98%   6202
  99%   6579
 100%   7040 (longest request)

 

//memcache get

This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/


Benchmarking localhost (be patient)




Server Software:        nginx/1.9.4
Server Hostname:        localhost
Server Port:            80


Document Path:          /test/test.php
Document Length:        0 bytes


Concurrency Level:      100
Time taken for tests:   23.268 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      147000 bytes
HTML transferred:       0 bytes
Requests per second:    42.98 [#/sec] (mean)
Time per request:       2326.798 [ms] (mean)
Time per request:       23.268 [ms] (mean, across all concurrent requests)
Transfer rate:          6.17 [Kbytes/sec] received


Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   1.1      0       6
Processing:    68 2246 802.2   2073    3578
Waiting:       63 2246 802.2   2073    3578
Total:         68 2247 801.8   2073    3578


Percentage of the requests served within a certain time (ms)
  50%   2073
  66%   2900
  75%   3030
  80%   3111
  90%   3265
  95%   3352
  98%   3430
  99%   3456
 100%   3578 (longest request)

 

//memcache set

This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/


Benchmarking localhost (be patient)




Server Software:        nginx/1.9.4
Server Hostname:        localhost
Server Port:            80


Document Path:          /test/test.php
Document Length:        0 bytes


Concurrency Level:      100
Time taken for tests:   30.619 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      147000 bytes
HTML transferred:       0 bytes
Requests per second:    32.66 [#/sec] (mean)
Time per request:       3061.896 [ms] (mean)
Time per request:       30.619 [ms] (mean, across all concurrent requests)
Transfer rate:          4.69 [Kbytes/sec] received


Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    1   1.9      0       8
Processing:    58 2966 653.7   2989    4569
Waiting:       44 2966 653.7   2989    4569
Total:         59 2967 652.7   2989    4569


Percentage of the requests served within a certain time (ms)
  50%   2989
  66%   3128
  75%   3288
  80%   3368
  90%   3814
  95%   4125
  98%   4336
  99%   4432
 100%   4569 (longest request)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值