tokio-rs / tokio-uring

An io_uring backed runtime for Rust
MIT License
1.13k stars 122 forks source link

Benchmark vs monoio? #68

Open LifeIsStrange opened 2 years ago

LifeIsStrange commented 2 years ago

https://github.com/bytedance/monoio/blob/master/docs/en/benchmark.md This new framework seems to be disruptive. Note however:

In the case of a single core and very few connections, Monoio's latency will be higher than Tokio, resulting in lower throughput than Tokio. This latency difference is due to the difference between io-uring and epoll. So obviously the best of both worlds would be a meta-algorithm that dynamically (or at least once at runtime) determine whether to use epoll Vs io_uring (based e.g on the dynamic number of connections)

Noah-Kennedy commented 2 years ago

Tokio uring is in a very early phase, and we don't have any benchmarks yet. If you would like to add some, feel free to open a PR ;).