Replies: 1 comment
-
Could you share your test methods and results? Thanks. This https://github.com/cloudflare/pingora/blob/main/pingora-runtime/benches/hello.rs bench shows a case where the non-stealing runtime could be better. The benchmark is just to show that there is a potential trade-off. The numbers and results could vary based on your exact workload and hardware. |
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
-
The runtime used by Pingora is based on Tokio. There are two flavours:
According to the comments in the code the second runtime is as efficient as the single-threaded runtime while allows the async program to use multiple cores. However, I took a look at the benchmarks and the second flavour has higher latency and handles less reqs/sec.
In which real cases a multi-thread runtime without work stealing could be more efficient?
Beta Was this translation helpful? Give feedback.
All reactions