This is a comparison a few different rust async executors against each other to see how they handle many (relatively uniform) tasks.
The tasks are 2990 unique pathfinding tasks using polyanya.
System tested on: Windows 11, AMD 5900x:
Executor | runtime |
---|---|
switchyard | 3699.8 ms |
smolscale | 231.77 ms |
bevy_tasks | 406.98 ms |
tokio | 300.87 ms |
rayon | 205.48 ms |
singlethreaded | 3111.5 ms |
Run cargo --bench
to get criterion benchmarks.
cargo run --release
is faster, but much less accurate and doesn't keep track of previous runs.