Open beta-ziliani opened 2 months ago
I recall an attempt to isolate the http server to its own thread didn't fare well with preview_mt
, but it's apparently working a little better with EC.
Now, wrk
keeps the connections alive, so the dispatch only happens at the beginning, then everything happens in the MT context while the ST context sleeps. It could be interesting to have another client that regularly closes & reconnects the connections (e.g. every dozen ones).
In the last commit I separated the main thread only when running -Dec
(no -Dmt
).
Benchmarks (all of them with 30s and 40 connections):