51Testing软件测试论坛

标题: http压力测试,求助! [打印本页]

作者: bayuemu    时间: 2014-11-24 13:43
标题: http压力测试,求助!
本人弄了个web服务器,但是对服务器压力测试不知道怎么弄,看到网上说啊apache并发过万什么的不知道什么个什么意思,多一般服务器怎样的测试结果才算是合格,
希望大家给说说 谢谢,
我对我的服务器用ab做了个简单的测试,结果如下,不知道如下的测试结果能负担起什么级别的应用?
ab -n 2000 -c 2000 http://localhost:8000/api/hello
This is ApacheBench, Version 2.3 <$Revision: 1604373 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking localhost (be patient)
Completed 200 requests
Completed 400 requests
Completed 600 requests
Completed 800 requests
Completed 1000 requests
Completed 1200 requests
Completed 1400 requests
Completed 1600 requests
Completed 1800 requests
Completed 2000 requests
Finished 2000 requests


Server Software:        Apache
Server Hostname:        localhost
Server Port:            8000

Document Path:          /api/hello
Document Length:        11 bytes

Concurrency Level:      2000
Time taken for tests:   13.803 seconds
Complete requests:      2000
Failed requests:        62
   (Connect: 0, Receive: 0, Length: 62, Exceptions: 0)
Non-2xx responses:      13
Total transferred:      326844 bytes
HTML transferred:       22241 bytes
Requests per second:    144.90 [#/sec] (mean)
Time per request:       13802.718 [ms] (mean)
Time per request:       6.901 [ms] (mean, across all concurrent requests)
Transfer rate:          23.12 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0  718 2050.0     46    7018
Processing:   581 7094 1665.0   6898   12413
Waiting:        0 7118 1666.2   7563   10335
Total:        659 7812 2514.2   7987   13782

Percentage of the requests served within a certain time (ms)
  50%   7987
  66%   8362
  75%   8576
  80%   8699
  90%  10343
  95%  13626
  98%  13750
  99%  13764
100%  13782 (longest request)






欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2