微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Apache 基准测试帖子总是显示非 2xx 结果

如何解决Apache 基准测试帖子总是显示非 2xx 结果

我正在使用 apache 基准测试工具对 post API 进行基准测试,但总是得到非 2xx 响应:$(no of -n)

Document Length:        0 bytes

Concurrency Level:      1
Time taken for tests:   10.026 seconds
Complete requests:      10
Failed requests:        0
Non-2xx responses:      10
Total transferred:      1290 bytes
Total body sent:        2750
HTML transferred:       0 bytes
Requests per second:    1.00 [#/sec] (mean)
Time per request:       1002.594 [ms] (mean)
Time per request:       1002.594 [ms] (mean,across all concurrent requests)
Transfer rate:          0.13 [Kbytes/sec] received
                        0.27 kb/s sent
                        0.39 kb/s total

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       0
Processing:   999 1002   2.3   1004    1006
Waiting:        1    1   0.4      1       2
Total:       1000 1003   2.3   1004    1006

Percentage of the requests served within a certain time (ms)
  50%   1004
  66%   1004
  75%   1004
  80%   1004
  90%   1006
  95%   1006
  98%   1006
  99%   1006
 100%   1006 (longest request)

结果:

{{1}}

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。