apache Benchmark (ab) 测试结果解析

这是一个使用 Apache Benchmark (ab) 工具对 Web 服务器进行压力测试的结果。我来详细解释这个测试报告的各个部分:

测试命令解析

ab -n 10000 -c 100 http://192.xxx.34.xxx:xxxx/

  • ab: Apache Benchmark 工具
  • -n 10000: 总共发送 10,000 个请求
  • -c 100: 并发数为 100,即同时发送 100 个请求
  • http://xxxx/: 测试的目标 URL

服务器信息

Server Software:        

Server Hostname:        xxxx

Server Port:            8080

Document Path:          /

Document Length:        0 bytes

  • Server Software: 服务器软件(此处为空,表示服务器没有在响应头中指定软件信息)
  • Server Hostname: 服务器主机名/IP 地址
  • Server Port: 服务器端口
  • Document Path: 请求的路径
  • Document Length: 响应内容长度(0 字节表示没有返回内容)

测试概况

Concurrency Level:      100

Time taken for tests:   0.883 seconds

Complete requests:      10000

Failed requests:        0

Total transferred:      570000 bytes

HTML transferred:       0 bytes

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

Time per request:       8.831 [ms] (mean)

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

Transfer rate:          630.35 [Kbytes/sec] received

  • Concurrency Level: 并发请求数
  • Time taken for tests: 整个测试耗时(0.883 秒)
  • Complete requests: 成功完成的请求数
  • Failed requests: 失败的请求数(0 表示全部成功)
  • Total transferred: 总传输字节数(包括 HTTP 头)
  • HTML transferred: 实际内容传输字节数(0 表示没有内容)
  • Requests per second: 每秒请求数(QPS),达到了 11,324.25,这是一个非常高的值
  • Time per request: 每个请求平均耗时(8.831 毫秒)
  • Time per request (across all concurrent requests): 并发环境下每个请求的平均耗时(0.088 毫秒)
  • Transfer rate: 传输速率(630.35 KB/秒)

响应时间统计

Connection Times (ms)

              min  mean[+/-sd] median   max

Connect:        0    4   1.0      4       8

Processing:     1    5   1.6      5      20

Waiting:        1    4   1.4      4      19

Total:          3    9   1.8      9      23

  • Connect: 建立 TCP 连接所需时间
  • 最小 0ms,平均 4ms,标准差 1.0ms,中位数 4ms,最大 8ms
  • Processing: 服务器处理请求所需时间
  • 最小 1ms,平均 5ms,标准差 1.6ms,中位数 5ms,最大 20ms
  • Waiting: 等待服务器响应的时间
  • 最小 1ms,平均 4ms,标准差 1.4ms,中位数 4ms,最大 19ms
  • Total: 总耗时(连接+处理+等待)
  • 最小 3ms,平均 9ms,标准差 1.8ms,中位数 9ms,最大 23ms

响应时间分布

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

  50%      9

  66%      9

  75%     10

  80%     10

  90%     11

  95%     11

  98%     13

  99%     15

 100%     23 (longest request)

这部分显示了不同百分比的请求在多长时间内完成:

  • 50% 的请求在 9ms 内完成
  • 90% 的请求在 11ms 内完成
  • 99% 的请求在 15ms 内完成
  • 最长的请求耗时 23ms

性能评估

从这个测试结果来看,您的服务器性能非常优秀:

  • 高吞吐量:每秒处理超过 11,000 个请求
  • 低延迟:平均响应时间仅为 8.8ms
  • 稳定性好:没有失败的请求,且响应时间的标准差较小
  • 高并发处理能力:在 100 并发连接下表现稳定

这种性能水平表明您的服务器(可能是使用 Workflow 框架开发的)具有出色的并发处理能力和低延迟特性,非常适合高性能网络服务的场景。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值