squeaky-pl / japronto

Screaming-fast Python 3.5+ HTTP toolkit integrated with pipelining HTTP server based on uvloop and picohttpparser.
MIT License
8.61k stars 581 forks source link

local benchmark way slower? #63

Closed kootenpv closed 7 years ago

kootenpv commented 7 years ago
pascal@MBP:~/ $ wrk -c 100 -t 1 -d 10 http://localhost:8080/

Running 10s test @ http://localhost:8080/ 1 threads and 100 connections Thread Stats Avg Stdev Max +/- Stdev Latency 710.49us 142.66us 1.63ms 73.21% Req/Sec 134.71k 7.86k 141.24k 92.31% 348236 requests in 2.60s, 30.55MB read Requests/sec: 133848.43 Transfer/sec: 11.74MB

What is the explanation for this?

squeaky-pl commented 7 years ago

Benchmarks are useless without specifying the actual platform. Also you didn't use pipelining. See https://github.com/squeaky-pl/japronto/issues/8 and https://github.com/squeaky-pl/japronto/issues/21 and