性能测试时
Posted Tinywan
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了性能测试时相关的知识,希望对你有一定的参考价值。
一、默认配置AB压力测试
官方nginx/1.10.3 测试结果:
Server Software: nginx/1.10.3 Server Hostname: 127.0.0.1 Server Port: 80 Document Path: / Document Length: 612 bytes Concurrency Level: 100 Time taken for tests: 4.226 seconds -- 表示所有这些请求被处理完成所花费的总时间 Complete requests: 100000 Failed requests: 0 Keep-Alive requests: 99004 Total transferred: 84995020 bytes html transferred: 61200000 bytes Requests per second: 23665.05 [#/sec] (mean) -- 吞吐率,大家最关心的指标之一,相当于 LR 中的每秒事务数,后面括号中的 mean 表示这是一个平均值 Time per request: 4.226 [ms] (mean) -- 用户平均请求等待时间,大家最关心的指标之二,相当于 LR 中的平均事务响应时间,后面括号中的 mean 表示这是一个平均值 Time per request: 0.042 [ms] (mean, across all concurrent requests) --服务器平均请求处理时间,大家最关心的指标之三 Transfer rate: 19642.69 [Kbytes/sec] received
openresty/1.11.2.1测试结果:
Server Software: openresty/1.11.2.1 Server Hostname: 127.0.0.1 Server Port: 80 Document Path: / Document Length: 558 bytes Concurrency Level: 100 Time taken for tests: 3.469 seconds Complete requests: 100000 Failed requests: 0 Keep-Alive requests: 99049 Total transferred: 80195245 bytes HTML transferred: 55800000 bytes Requests per second: 28830.41 [#/sec] (mean) Time per request: 3.469 [ms] (mean) Time per request: 0.035 [ms] (mean, across all concurrent requests) Transfer rate: 22578.73 [Kbytes/sec] received
以上是关于性能测试时的主要内容,如果未能解决你的问题,请参考以下文章