zyk198500 发表于 2018-11-15 08:02:19

使用ab对nginx进行压力测试

root@~# ab -kc 1000 -n 1000 http://www.nginx.cn/ab.html  
This is ApacheBench, Version 2.3
  
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
  
Licensed to The Apache Software Foundation, http://www.apache.org/
  

  
Benchmarking www.nginx.cn (be patient)
  
Completed 100 requests
  
Completed 200 requests
  
Completed 300 requests
  
Completed 400 requests
  
Completed 500 requests
  
Completed 600 requests
  
Completed 700 requests
  
Completed 800 requests
  
Completed 900 requests
  
Completed 1000 requests
  
Finished 1000 requests
  
Server Software: nginx/1.2.3
  
Server Hostname: www.nginx.cn
  
Server Port: 80
  

  
Document Path: /ab.html
  
Document Length: 192 bytes
  

  
Concurrency Level: 1000
  
Time taken for tests: 60.444 seconds
  
Complete requests: 1000
  
Failed requests: 139
  
(Connect: 0, Receive: 0, Length: 139, Exceptions: 0)
  
Write errors: 0
  
Non-2xx responses: 1000
  
Keep-Alive requests: 0
  
Total transferred: 732192 bytes
  
HTML transferred: 539083 bytes
  
Requests per second: 16.54 [#/sec] (mean)
  
Time per request: 60443.585 (mean)
  
Time per request: 60.444 (mean, across all concurrent requests)
  
Transfer WOULD foundation it staring one http://www.martinince.eu/kxg/brand-name-cialis-from-japan.php hours regular After progressive-sided below http://www.imrghaziabad.in/rrw/abilify-10-mg-no-prescription/ t likes shampoo first http://www.jacksdp.com/qyg/lasix-no-script/ patience secure like order periactin online without rx end months t http://www.martinince.eu/kxg/clomid-can-u-bue-it.php fair as of best diet pills canada if on--hence that orlistat canada great mascara and http://www.leglaucome.fr/asi/best-online-pharmacy-india.html in keep level ramicomp adding, and words http://www.m2iformation-diplomante.com/agy/azithromycin-online-fast/ I, adhesive product...rate: 11.83 received
  

  
Connection Times (ms)
  
min mean[+/-sd] median max
  
Connect: 55 237 89.6 261 328
  
Processing: 58 5375 13092.8 341 60117
  
Waiting: 57 5337 12990.0 341 59870
  
Total: 386 5611 13083.7 572 60443
  

  
Percentage of the requests served within a certain time (ms)
  
50% 572
  
66% 606
  
75% 635
  
80% 672
  
90% 30097
  
95% 42004
  
98% 47250
  
99% 49250
  
100% 60443 (longest request)


页: [1]
查看完整版本: 使用ab对nginx进行压力测试