Skip to content

Benchmarks

Aaron Riekenberg edited this page Nov 29, 2025 · 104 revisions

Test System

  • 15-inch Macbook Air M2, 2023 (my personal laptop)
  • rust-parallel uses 8 parallel jobs by default on this machine
  • MacOS 26.1

Test Setup

Summary

  • rust-parallel is 10.27 times faster than GNU parallel
  • rust-parallel is 1.81 times faster than xargs with 8 processes. Note that this use of xargs does not prevent output interleaving.

Versions

$ rust-parallel -V
rust-parallel 1.20.0

$ parallel -V
GNU parallel 20251122

Results

Benchmark 1: seq 1 1000 | rust-parallel echo
  Time (mean ± σ):     209.9 ms ±   1.5 ms    [User: 593.9 ms, System: 793.0 ms]
  Range (min … max):   207.4 ms … 212.0 ms    13 runs

Benchmark 2: seq 1 1000 | xargs -P8 -L1 echo
  Time (mean ± σ):     379.9 ms ±   4.9 ms    [User: 424.8 ms, System: 693.6 ms]
  Range (min … max):   373.0 ms … 386.5 ms    10 runs

Benchmark 3: seq 1 1000 | parallel echo
  Time (mean ± σ):      2.155 s ±  0.010 s    [User: 3.024 s, System: 3.599 s]
  Range (min … max):    2.141 s …  2.173 s    10 runs

Summary
  seq 1 1000 | rust-parallel echo ran
    1.81 ± 0.03 times faster than seq 1 1000 | xargs -P8 -L1 echo
   10.27 ± 0.09 times faster than seq 1 1000 | parallel echo

Clone this wiki locally