Unfortunately it is a complete mystery to me, and I suspect it would include deep debugging of nginx to figure out.
No I don’t and I’m not proficient in go debugging, but perhaps I can try to learn a bit and get some data at a later point.
Here’s a wrk with --latency
:
wrk -c 100 -d 60 -t 2 --latency http://www.postya.net/posts
Running 1m test @ http://www.postya.net/posts
2 threads and 100 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 18.65ms 4.45ms 67.18ms 84.02%
Req/Sec 2.65k 332.66 4.92k 71.55%
Latency Distribution
50% 18.05ms
75% 19.92ms
90% 23.37ms
99% 33.86ms
315973 requests in 1.00m, 49.72MB read
Requests/sec: 5259.72
Transfer/sec: 847.51KB