compio-rs / compio

A thread-per-core Rust runtime with IOCP/io_uring/polling.
MIT License
420 stars 37 forks source link

perf(net): rewrite net bench and optimize #254

Closed Berrysoft closed 5 months ago

Berrysoft commented 5 months ago

I also found that the cost of SendWrapper is significant, but it will be addressed by #252 .

The benchmark shows that on Linux, compio is 15% (14% with LTO, and 5% with faster SendWrapper) slower than tokio; on Windows, compio is 5% (18% with LTO) faster than tokio.