Server Software: Apache/2.2.26
Server Hostname: 10.210.215.145
Server Port: 80
Document Path: /
Document Length: 44 bytes
Concurrency Level: 100
Time taken for tests: 14.333 seconds
Complete requests: 50000
Failed requests: 0
Write errors: 0
Total transferred: 14750295 bytes
HTML transferred: 2200044 bytes
Requests per second: 3488.39 [#/sec] (mean)
Time per request: 28.667 [ms] (mean)
Time per request: 0.287 [ms] (mean, across all concurrent requests)
Transfer rate: 1004.98 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 2 1.3 1 6
Processing: 1 27 7.7 25 753
Waiting: 1 26 5.7 25 382
Total: 2 29 7.7 27 756
Percentage of the requests served within a certain time (ms)
50% 27
66% 32
75% 33
80% 33
90% 35
95% 36
98% 37
99% 38
100% 756 (longest request)
real 0m14.393s
user 0m0.846s
sys 0m4.538s
下面开始测试memcache
1,下载、安装并且启动memcached-1.4.16
2,设置一个key,如下:
set abc 1 0 44
<html><body><h1>It works!</h1></body></html>
STORED
get abc
VALUE abc 1 44
<html><body><h1>It works!</h1></body></html>
END