Node.js===>ab -n 10000 -c 2000---并发2000
Time per request: 6646.676 [ms] (mean)
Time per request: 3.323 [ms] (mean, across all concurrent requests)
------------------------------------------------------------------------------
java===>ab -n 10000 -c 2000---并发2000
Time per request: 3272.875 [ms] (mean)
Time per request: 1.636 [ms] (mean, across all concurrent requests)
---------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------
Benchmarking 120.55.240.79 (be patient)
Completed 400 requests
^C
Server Software: Apache-Coyote/1.1
Server Hostname: 120.55.240.79
Server Port: 8080
Document Path: /1/minphotos/56c2881be9bb5b23743d71f4---------------测试路径
Document Length: 3340 bytes--------------------------------------------------页面大小
Concurrency Level: 500-----------------------------------------------------------并发数
Time taken for tests: 5.831 seconds------------------------------------------------测试持续时间
Complete requests: 534----------------------------------------------------------完成的请求数量
Failed requests: 0---------------------------------------------------------------失败的请求数量
Total transferred: 2903220 bytes------------------------------------------------整个过程中的网络传输量
HTML transferred: 2761360 bytes---------------------------------------------整个过程中的HTML内容传输量
Requests per second: 91.59 [#/sec] (mean)-----------------------------------【最重要的指标之一】,相当于LR中的每秒事务数,后面括号中的mean表示这是一个平均值
Time per request: 5459.276 [ms] (mean)------------------------------------【最重要的指标之二】,相当于LR中的平均事务响应时间,后面括号中的mean表示这是一个平均值
Time per request: 10.919 [ms] (mean, across all concurrent requests)--每个连接请求实际运行时间的平均值
Transfer rate: 486.27 [Kbytes/sec] received-------------------------------【平均每秒网络上的流量】,可以帮助排除是否存在网络流量过大导致响应时间延长的问题
Connection Times (ms)-----------------------------------------------------------网络上消耗的时间的分解
min mean[+/-sd] median max
Connect: 39 394 504.4 236 2853
Processing: 66 783 709.8 597 3472
Waiting: 59 506 357.1 393 2056
Total: 105 1177 904.1 823 4194
Percentage of the requests served within a certain time (ms)
50% 823-----------------------------------------------------------------------其中 50 % 的用户响应时间小于 823 毫秒
66% 1215---------------------------------------------------------------------- 60 % 的用户响应时间小于 1215 毫秒
75% 1577
80% 2133
90% 2632
95% 3268
98% 3448
99% 3622
100% 4194 (longest request)-------------------------------------------------最大的响应时间小于 4194 毫秒