wrk -t4 -c400 -d10s http://127.0.0.1:1337/
Running 10s test @ http://127.0.0.1:1337/
4 threads and 400 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 7.02ms 6.94ms 82.86ms 85.27%
Req/Sec 827.17 552.85 2.38k 66.54%
22543 requests in 10.07s, 3.61MB read
Socket errors: connect 151, read 22680, write 86, timeout 0
Requests/sec: 2238.19
Transfer/sec: 367.20KB
Running 10s test @ http://127.0.0.1:1337/
4 threads and 400 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 20.34ms 4.50ms 125.04ms 97.89%
Req/Sec 3.09k 1.93k 6.06k 55.00%
122838 requests in 10.02s, 23.66MB read
Socket errors: connect 151, read 69, write 73, timeout 0
Requests/sec: 12263.37
Transfer/sec: 2.36MB
Using swoole extension
CentOS 7 64bit
8GB Memory
24 Cores
Intel(R) Xeon(R) CPU E5-2620 v2 @ 2.10GHz
NodeJs 6.9.1
Running 10s test @ http://127.0.0.1:1337/
4 threads and 400 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 51.54ms 16.25ms 405.62ms 97.02%
Req/Sec 1.83k 469.94 2.36k 86.93%
72664 requests in 10.01s, 14.00MB read
Requests/sec: 7256.23
Transfer/sec: 1.40MB
NodeJs 9
Running 10s test @ http://127.0.0.1:1337/
4 threads and 400 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 44.86ms 17.73ms 367.20ms 87.05%
Req/Sec 2.09k 621.34 2.96k 76.75%
83419 requests in 10.03s, 12.25MB read
Requests/sec: 8314.27
Transfer/sec: 1.22MB
NodeJs 9+ Cluster with 4 Cores
wrk -t4 -c400 -d10s http://127.0.0.1:1337/
Running 10s test @ http://127.0.0.1:1337/
4 threads and 400 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 17.75ms 56.01ms 811.30ms 97.51%
Req/Sec 9.64k 2.14k 11.16k 88.50%
384055 requests in 10.01s, 52.74MB read
Requests/sec: 38361.77
Transfer/sec: 5.27MB
PHP7.1+Swoole-v1.9.22
Running 10s test @ http://127.0.0.1:1337/
4 threads and 400 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 3.56ms 2.95ms 218.94ms 98.04%
Req/Sec 27.80k 4.73k 37.95k 87.00%
1108229 requests in 10.03s, 223.00MB read
Requests/sec: 110515.99
Transfer/sec: 22.24MB
NodeJS Cluster Code used for benchmark