-
Notifications
You must be signed in to change notification settings - Fork 14
Benchmarks
Aaron Riekenberg edited this page Aug 15, 2026
·
113 revisions
- 15-inch Macbook Air M2, 2023 (my personal laptop)
- rust-parallel uses 8 parallel jobs by default on this machine
- MacOS 26.6.1
- Run 100 echo commands on strings
1to100 - Benchmarks use hyperfine testing tool
- Link to benchmark script
- rust-parallel is 11.68 times faster than GNU parallel
- rust-parallel is 1.73 times faster than xargs with 8 processes. Note that this use of xargs does not prevent output interleaving.
$ rust-parallel -V
rust-parallel 1.24.0
$ parallel -V
GNU parallel 20260722
Benchmark 1: seq 1 100 | rust-parallel echo
Time (mean ± σ): 28.4 ms ± 0.8 ms [User: 68.4 ms, System: 94.2 ms]
Range (min … max): 26.9 ms … 31.2 ms 91 runs
Benchmark 2: seq 1 100 | xargs -P8 -L1 echo
Time (mean ± σ): 49.0 ms ± 1.0 ms [User: 50.9 ms, System: 87.9 ms]
Range (min … max): 47.1 ms … 52.3 ms 56 runs
Benchmark 3: seq 1 100 | parallel echo
Time (mean ± σ): 331.6 ms ± 0.8 ms [User: 376.7 ms, System: 429.0 ms]
Range (min … max): 329.9 ms … 332.8 ms 10 runs
Summary
seq 1 100 | rust-parallel echo ran
1.73 ± 0.06 times faster than seq 1 100 | xargs -P8 -L1 echo
11.68 ± 0.33 times faster than seq 1 100 | parallel echo