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 (将#修改为@)