Skip to content

Instantly share code, notes, and snippets.

@keysona
Created October 22, 2017 08:02
Show Gist options
  • Select an option

  • Save keysona/75bae9c86e006e4dec5faf19d1cdfd5b to your computer and use it in GitHub Desktop.

Select an option

Save keysona/75bae9c86e006e4dec5faf19d1cdfd5b to your computer and use it in GitHub Desktop.
performance
4 thread and 400 connections in 30 seconds
aiohttp - no uvloop
Running 30s test @ http://127.0.0.1:8000
4 threads and 400 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 73.50ms 9.94ms 370.71ms 81.79%
Req/Sec 1.36k 339.69 2.71k 56.10%
161299 requests in 30.03s, 23.84MB read
Requests/sec: 5371.45
Transfer/sec: 813.06KB
aiohttp - with uvloop
Running 30s test @ http://127.0.0.1:8000
4 threads and 400 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 61.82ms 21.72ms 173.53ms 71.91%
Req/Sec 1.63k 449.73 3.03k 73.48%
194137 requests in 30.02s, 28.70MB read
Requests/sec: 6466.12
Transfer/sec: 0.96MB
bottle
Running 30s test @ http://127.0.0.1:8000
4 threads and 400 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 40.02ms 41.55ms 1.07s 99.03%
Req/Sec 2.73k 528.91 8.52k 73.34%
324383 requests in 30.02s, 54.76MB read
Requests/sec: 10804.41
Transfer/sec: 1.82MB
tornado
Running 30s test @ http://127.0.0.1:8000
4 threads and 400 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 204.81ms 25.08ms 586.68ms 92.83%
Req/Sec 477.43 335.72 1.31k 53.20%
57186 requests in 30.04s, 11.34MB read
Requests/sec: 1903.94
Transfer/sec: 386.74KB
sanic
Running 30s test @ http://127.0.0.1:8000
4 threads and 400 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 25.70ms 10.03ms 256.70ms 77.07%
Req/Sec 3.90k 0.85k 7.45k 71.34%
462317 requests in 30.05s, 54.23MB read
Requests/sec: 15383.38
Transfer/sec: 1.80MB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment