This comprehensive benchmark suite tests Tokio, async-std, and smol across five key scenarios:
-
Task Spawning - Raw task creation/completion speed
-
Channel Communication - Message passing between tasks
-
Timer Operations - Sleep/timeout efficiency
-
Concurrent Tasks - Performance under high load
-
TCP Echo Server - Real network I/O performance
-
Run benchmarks:
./run_benchmarks.sh
-
Individual runtime tests:
cargo run --release --bin tokio_bench cargo run --release --bin async_std_bench cargo run --release --bin smol_bench
-
Criterion detailed benchmarks:
cargo bench # Results in target/criterion/report/index.html


