最近由于产品业务出现请求瓶颈,需要更换产品框架,针对现在集中主流方案进行了逐一测试
服务器硬件配置:2 核 2G虚拟机 , 10000请求 500并发测试结果如下
性能测试结果
1、Nodejs Express测试结果如下 大约每秒处理2100请求 响应时间在230ms左右,cpu负载百分之40左右
Server Software:
Server Hostname: 172.16.200.202
Server Port: 3000
Document Path: /
Document Length: 12 bytes
Concurrency Level: 500
Time taken for tests: 4.692 seconds
Complete requests: 10000
Failed requests: 0
Total transferred: 2060000 bytes
HTML transferred: 120000 bytes
Requests per second: 2131.47 [#/sec] (mean)
Time per request: 234.580 [ms] (mean)
Time per request: 0.469 [ms] (mean, across all concurrent requests)
Transfer rate: 428.79 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 1 16 8.3 15 57
Processing: 71 212 31.0 204 359
Waiting: 71 2