Skip to content

Instantly share code, notes, and snippets.

@mamiysr
Created February 16, 2022 16:40
Show Gist options
  • Select an option

  • Save mamiysr/a1a13f0836e8afb44ee5cde94835842c to your computer and use it in GitHub Desktop.

Select an option

Save mamiysr/a1a13f0836e8afb44ee5cde94835842c to your computer and use it in GitHub Desktop.
nbio vs fiber
Running 2m test @ http://127.0.0.1:3000
12 threads and 500 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 218.10ms 356.47ms 2.00s 84.72%
Req/Sec 2.78k 3.39k 29.05k 90.03%
2340836 requests in 1.50m, 290.21MB read
Socket errors: connect 0, read 0, write 0, timeout 3009
Requests/sec: 25983.31
Transfer/sec: 3.22MB
Running 2m test @ http://127.0.0.1:3000
12 threads and 250 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 215.22ms 356.54ms 2.00s 84.50%
Req/Sec 2.65k 3.00k 29.70k 89.78%
2274771 requests in 1.50m, 282.02MB read
Socket errors: connect 0, read 0, write 0, timeout 1369
Requests/sec: 25256.75
Transfer/sec: 3.13MB
Running 2m test @ http://127.0.0.1:3000
12 threads and 50 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 57.67ms 111.71ms 761.78ms 85.83%
Req/Sec 2.33k 1.51k 17.03k 74.90%
2394443 requests in 1.50m, 296.86MB read
Requests/sec: 26591.85
Transfer/sec: 3.30MB
Running 2m test @ http://127.0.0.1:3001
12 threads and 500 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 60.39ms 20.99ms 144.45ms 71.40%
Req/Sec 682.16 159.49 2.91k 68.42%
733640 requests in 1.50m, 90.95MB read
Requests/sec: 8143.33
Transfer/sec: 1.01MB
Running 2m test @ http://127.0.0.1:3001
12 threads and 250 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 52.68ms 12.77ms 130.40ms 68.46%
Req/Sec 381.58 87.22 616.00 76.52%
410273 requests in 1.50m, 50.86MB read
Requests/sec: 4553.56
Transfer/sec: 578.09KB
Running 2m test @ http://127.0.0.1:3001
12 threads and 50 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 38.65ms 8.85ms 80.40ms 78.85%
Req/Sec 103.80 21.19 161.00 61.02%
111851 requests in 1.50m, 13.87MB read
Requests/sec: 1241.42
Transfer/sec: 157.60KB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment