ab、webbench -比较测试工具

简单的比较测试:
使用apache自带的ab命令或另一个小软件webbench
1,使用ab命令测试
Concurrency Level: 1000
Time taken for tests: 5.346 seconds
Complete requests: 1000
Failed requests: 994
(Connect: 0, Receive: 0, Length: 994, Exceptions: 0)
Write errors: 0
Total transferred: 13804994 bytes
HTML transferred: 12965021 bytes
Requests per second: 187.05 [#/sec] (mean)
Time per request: 5346.026 [ms] (mean)
Time per request: 5.346 [ms] (mean, across all concurrent requests)
Transfer rate: 2521.77 [Kbytes/sec] received
Concurrency Level: 1000
Time taken for tests: 0.614 seconds
Complete requests: 1000
Failed requests: 156
(Connect: 0, Receive: 0, Length: 156, Exceptions: 0)
Write errors: 0
Non-2xx responses: 844
Total transferred: 2735504 bytes
HTML transferred: 2453798 bytes
Requests per second: 1629.20 [#/sec] (mean)
Time per request: 613.799 [ms] (mean)
Time per request: 0.614 [ms] (mean, across all concurrent requests)
Transfer rate: 4352.22 [Kbytes/sec] received
2,webbench安装
# tar xf 笔记目录/program/lnmp_soft/webbench-1.5.tar.gz -C /usr/src/lnmp/
# cd /usr/src/lnmp/webbench-1.5/
# make ;make install
webbench测试 
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.
1000 clients, running 30 sec.
Speed=49420 pages/min, 4779545 bytes/sec.
Requests: 24673 susceed, 37 failed.
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.
1000 clients, running 30 sec.
Speed=103584 pages/min, 5021371 bytes/sec.
Requests: 51725 susceed, 67 failed.
posted @ 2018-06-19 21:56  Sky-wings  阅读(570)  评论(0编辑  收藏  举报