Skip to content

Instantly share code, notes, and snippets.

@ZhennanWu
ZhennanWu / README.md
Last active July 17, 2025 13:17
Rayon vs async threadpool benchmarks

The following are the benchmark results for parallel speedup of rayon, tokio, and async-std on a 16-thread machine. (Core i7-12700K big core only, Gentoo Linux)

How to intepret the results

  1. The input variable is the "Available parallelism", e.g. how many parallel work units are spawned at the same time.
  2. The measured time is from the start of the work unit spawning to the end of the last work unit.
  3. Before and after each iteration, the threadpool is always empty.
  4. Hence the low parallelism results should be intepreted as "the runtime latency of a burst workload"

Work unit types

  1. "light": 10 random uncached memory read.