➜ /Users/yxy >ab -c 10 -n 50 http: //192.168.100.152:18800/casefolder-social/question/detail?shareUID=40d0c000-09b6-416c-b626-b9ce61399d07
-- -n 表示:每次请求数,默认不能超过 1024 个,-c表示: 1 个请求的并发连接数,默认最大不能超过 50000 。
-- 模拟 50 个并发连接每次以 100 个请求数来测试网站的Web性能
This is ApacheBench, Version 2.3 <$Revision: 1663405 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http: //www.zeustech.net/
Licensed to The Apache Software Foundation, http: //www.apache.org/
Benchmarking 192.168 . 100.152 (be patient).....done
Server Software: Apache-Coyote/ 1.1
Server Hostname: 192.168 . 100.152
Server Port: 18800
Document Path: /casefolder-social/question/detail?shareUID=40d0c000-09b6-416c-b626-b9ce61399d07
Document Length: 641 bytes
Concurrency Level: 10
Time taken for tests: 0.703 seconds
Complete requests: 50
Failed requests: 0
Total transferred: 39100 bytes
HTML transferred: 32050 bytes
Requests per second: 71.16 [#/sec] (mean)
Time per request: 140.532 [ms] (mean)
Time per request: 14.053 [ms] (mean, across all concurrent requests)
Transfer rate: 54.34 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 6 21 26.4 13 102
Processing: 87 114 50.9 107 460
Waiting: 84 114 51.0 106 459
Total: 100 136 58.2 119 473
Percentage of the requests served within a certain time (ms)
50 % 119
66 % 126
75 % 131
80 % 132
90 % 217
95 % 223
98 % 473
99 % 473
100 % 473 (longest request)
|