- 论坛徽章:
- 9
|
本帖最后由 wlmqgzm 于 2015-11-01 13:49 编辑
4个ab测试程序, 82万QPS ECHO, 下面是测试情况:
guo@guo-desktop:~$ top
top - 13:48:26 up 1:28, 4 users, load average: 0.12, 0.94, 1.60
Tasks: 269 total, 6 running, 263 sleeping, 0 stopped, 0 zombie
%Cpu(s): 22.0 us, 52.0 sy, 0.0 ni, 1.7 id, 0.0 wa, 0.0 hi, 24.3 si, 0.0 st
KiB Mem: 32865404 total, 30346440 used, 2518964 free, 114592 buffers
KiB Swap: 0 total, 0 used, 0 free. 759520 cached Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
29085 guo 20 0 152524 8460 3152 S 404.5 0.0 0:12.57 echo_server
29182 guo 20 0 342740 26192 3908 R 95.7 0.1 0:02.98 ab
29178 guo 20 0 342740 24916 3876 R 95.1 0.1 0:02.95 ab
29184 guo 20 0 342740 25176 3876 R 93.4 0.1 0:02.87 ab
29180 guo 20 0 342740 23612 3908 R 90.4 0.1 0:02.82 ab
guo@guo-desktop:~$ (ab -n 10000000 -c 100 -k h ttp://127.0.0.1:1971/jjjjjjjjjjjjj &);(ab -n 10000000 -c 100 -k h ttp://127.0.0.1:1971/jjjjjjjjjjjjj &);(ab -n 10000000 -c 100 -k h ttp://127.0.0.1:1971/jjjjjjjjjjjjj &);(ab -n 10000000 -c 100 -k h ttp://127.0.0.1:1971/jjjjjjjjjjjjj &);
This is ApacheBench, Version 2.3 <$Revision: 1604373 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd,
Licensed to The Apache Software Foundation,
Benchmarking 127.0.0.1 (be patient)
This is ApacheBench, Version 2.3 <$Revision: 1604373 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd,
Licensed to The Apache Software Foundation,
Benchmarking 127.0.0.1 (be patient)
guo@guo-desktop:~$ This is ApacheBench, Version 2.3 <$Revision: 1604373 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd,
Licensed to The Apache Software Foundation,
Benchmarking 127.0.0.1 (be patient)
This is ApacheBench, Version 2.3 <$Revision: 1604373 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd,
Licensed to The Apache Software Foundation,
Benchmarking 127.0.0.1 (be patient)
Completed 1000000 requests
Completed 1000000 requests
Completed 1000000 requests
Completed 1000000 requests
Completed 2000000 requests
Completed 2000000 requests
Completed 2000000 requests
Completed 2000000 requests
Completed 3000000 requests
Completed 3000000 requests
Completed 3000000 requests
Completed 3000000 requests
Completed 4000000 requests
Completed 4000000 requests
Completed 4000000 requests
Completed 4000000 requests
Completed 5000000 requests
Completed 5000000 requests
Completed 5000000 requests
Completed 5000000 requests
Completed 6000000 requests
Completed 6000000 requests
Completed 6000000 requests
Completed 6000000 requests
Completed 7000000 requests
Completed 7000000 requests
Completed 7000000 requests
Completed 7000000 requests
Completed 8000000 requests
Completed 8000000 requests
Completed 8000000 requests
Completed 8000000 requests
Completed 9000000 requests
Completed 9000000 requests
Completed 9000000 requests
Completed 9000000 requests
Completed 10000000 requests
Finished 10000000 requests
Server Software:
Server Hostname: 127.0.0.1
Server Port: 1971
Document Path: /jjjjjjjjjjjjj
Document Length: 0 bytes
Concurrency Level: 100
Time taken for tests: 47.748 seconds
Complete requests: 10000000
Failed requests: 0
Non-2xx responses: 10000000
Keep-Alive requests: 10000000
Total transferred: 1190000000 bytes
HTML transferred: 0 bytes
Requests per second: 209434.07 [#/sec] (mean)
Time per request: 0.477 [ms] (mean)
Time per request: 0.005 [ms] (mean, across all concurrent requests)
Transfer rate: 24338.53 [Kbytes/sec] received
Completed 10000000 requests
Finished 10000000 requests
Server Software:
Server Hostname: 127.0.0.1
Server Port: 1971
Document Path: /jjjjjjjjjjjjj
Document Length: 0 bytes
Concurrency Level: 100
Time taken for tests: 48.357 seconds
Complete requests: 10000000
Failed requests: 0
Non-2xx responses: 10000000
Keep-Alive requests: 10000000
Total transferred: 1190000000 bytes
HTML transferred: 0 bytes
Requests per second: 206794.63 [#/sec] (mean)
Time per request: 0.484 [ms] (mean)
Time per request: 0.005 [ms] (mean, across all concurrent requests)
Transfer rate: 24031.80 [Kbytes/sec] received
Completed 10000000 requests
Finished 10000000 requests
Server Software:
Server Hostname: 127.0.0.1
Server Port: 1971
Document Path: /jjjjjjjjjjjjj
Document Length: 0 bytes
Concurrency Level: 100
Time taken for tests: 48.437 seconds
Complete requests: 10000000
Failed requests: 0
Non-2xx responses: 10000000
Keep-Alive requests: 10000000
Total transferred: 1190000000 bytes
HTML transferred: 0 bytes
Requests per second: 206452.02 [#/sec] (mean)
Time per request: 0.484 [ms] (mean)
Time per request: 0.005 [ms] (mean, across all concurrent requests)
Transfer rate: 23991.98 [Kbytes/sec] received
Completed 10000000 requests
Finished 10000000 requests
Server Software:
Server Hostname: 127.0.0.1
Server Port: 1971
Document Path: /jjjjjjjjjjjjj
Document Length: 0 bytes
Concurrency Level: 100
Time taken for tests: 50.615 seconds
Complete requests: 10000000
Failed requests: 0
Non-2xx responses: 10000000
Keep-Alive requests: 10000000
Total transferred: 1190000000 bytes
HTML transferred: 0 bytes
Requests per second: 197569.37 [#/sec] (mean)
Time per request: 0.506 [ms] (mean)
Time per request: 0.005 [ms] (mean, across all concurrent requests)
Transfer rate: 22959.72 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 3
Processing: 0 0 1.4 0 37
Waiting: 0 0 1.4 0 37
Total: 0 0 1.4 0 37
Percentage of the requests served within a certain time (ms)
50% 0
66% 0
75% 0
80% 0
90% 0
95% 1
98% 3
99% 7
100% 37 (longest request)
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 4
Processing: 0 0 1.4 0 37
Waiting: 0 0 1.4 0 37
Total: 0 0 1.4 0 37
Percentage of the requests served within a certain time (ms)
50% 0
66% 0
75% 0
80% 0
90% 0
95% 1
98% 3
99% 7
100% 37 (longest request)
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 3
Processing: 0 0 1.4 0 37
Waiting: 0 0 1.4 0 37
Total: 0 0 1.4 0 37
Percentage of the requests served within a certain time (ms)
50% 0
66% 0
75% 0
80% 0
90% 0
95% 1
98% 3
99% 7
100% 37 (longest request)
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 3
Processing: 0 1 1.4 0 39
Waiting: 0 1 1.4 0 39
Total: 0 1 1.4 0 39
Percentage of the requests served within a certain time (ms)
50% 0
66% 0
75% 0
80% 0
90% 0
95% 1
98% 3
99% 7
100% 39 (longest request)
guo@guo-desktop:~$ |
|