这样的ab结果好快还是慢? 400 请求报错-问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文

这样的ab结果好快还是慢? 400 请求报错

kun坤 2020-05-30 23:14:19 25

D:>ab -c 100 -n 1000 http://localhost/wenda/index.php

This is ApacheBench, Version 2.3 <$Revision: 655654 $>

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 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:        Apache/2.2.21

Server Hostname:        localhost

Server Port:            80

Document Path:          /wenda/index.php

Document Length:        600 bytes

Concurrency Level:      100

Time taken for tests:   105.440 seconds

Complete requests:      1000

Failed requests:        0

Write errors:           0

Total transferred:      1040000 bytes

HTML transferred:       600000 bytes

Requests per second:    9.48 [#/sec] (mean)

Time per request:       10543.977 [ms] (mean)

Time per request:       105.440 [ms] (mean, across all concurrent requests)

Transfer rate:          9.63 [Kbytes/sec] received

Connection Times (ms)

              min  mean[+/-sd] median   max

Connect:        0    0   2.4      0      47

Processing:  3491 10390 3747.9   9533   22426

Waiting:     3491 10389 3747.4   9533   22426

Total:       3491 10390 3747.8   9533   22426

Percentage of the requests served within a certain time (ms)

  50%   9533

  66%  10097

  75%  10567

  80%  11052

  90%  15084

  95%  22035

  98%  22129

  99%  22207

 100%  22426 (longest request)

Apache
分享到
取消 提交回答
全部回答(1)
  • kun坤
    2020-05-31 13:04:32

    每秒钟才不到10个请求,这这这,太低了

    ######documentroot是在U盘上的.不知是不是这原因,还是用ZendFramework的问题######最近有个习惯,老是看其他站点的server是啥...######每个程序里sleep了个几十毫秒吧。。确实,就算代码中含有很复杂的逻辑运算,很大量的数据库操作,每秒不到10个请求也确实太低了######U盘杀手?

    0 0
云计算
使用钉钉扫一扫加入圈子
+ 订阅

时时分享云计算技术内容,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。

推荐文章
相似问题
推荐课程