Single-threaded benchmarks beat multi-threaded version #3734
Closed
emschwartz
started this conversation in
General
Replies: 1 comment
-
Ah, actually just noticed that all the benches use the single threaded runtime 🤦 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I tried adjusting the number of Tokio worker threads (using the
TOKIO_WORKER_THREADS
env var) while running the Hyper benchmarks and was surprised to find that the performance seems nearly the same if not better with only 1 worker thread.Does anyone understand why that might be the case?
For context, both of these are running on an 8-core, dedicated CPU Linode machine with 16 GB of RAM.
Multi thread
Single-thread (
TOKIO_WORKER_THREADS=1
)Beta Was this translation helpful? Give feedback.
All reactions