Closed kassane closed 1 year ago
Sorry I don't have time to dig into this. Can you please explain briefly what this PR is trying to achieve?
Oh, just realized. Thread pool? The branch name is more descriptive than your entire message...
Hi,
Sorry, I know it's not the purpose of the project to dedicate to just the benchmark. And also when I fixed the problem with the strings in the loop, it had already merged.
Briefly add threadpool and unlock thread from context.
Hi, ok, so it is ready for merging, right? Just double checking.
Done.
The graphs in the readme reflect the change. AFAICT, cpp-beast went from ca. 100k req/sec to > 150k req/sec.
Refer: 6562d9ed3e4237b0cf3030c60f6d0e64a9e34144
io_context
is thread-safe (single). see: https://www.boost.org/doc/libs/1_83_0/doc/html/boost_asio/overview/core/concurrency_hint.htmlpoop perf: