Skip to content

Instantly share code, notes, and snippets.

@lqd
Last active March 16, 2022 23:45
Show Gist options
  • Save lqd/14c9a04a196e205c2a36ef08217af1f2 to your computer and use it in GitHub Desktop.
Save lqd/14c9a04a196e205c2a36ef08217af1f2 to your computer and use it in GitHub Desktop.
ripgrep master
cargo check -j12, 5 warmup runs, 15 timed runs
1) baseline, the current defaults
Time (mean ± σ): 16.249 s ± 0.104 s [User: 54.759 s, System: 4.811 s]
Range (min … max): 16.071 s … 16.408 s 15 runs
2) debuginfo = 1: -5.4%
Time (mean ± σ): 15.364 s ± 0.110 s [User: 50.724 s, System: 4.711 s]
Range (min … max): 15.172 s … 15.573 s 15 runs
3) debuginfo = off: -7.5%
Time (mean ± σ): 15.028 s ± 0.257 s [User: 47.795 s, System: 4.535 s]
Range (min … max): 14.646 s … 15.455 s 15 runs
4) debuginfo = off, strip = debuginfo: -7.7%
Time (mean ± σ): 14.998 s ± 0.165 s [User: 47.637 s, System: 4.531 s]
Range (min … max): 14.736 s … 15.295 s 15 runs
5) debuginfo = off, strip = symbols: -8.9%
Time (mean ± σ): 14.805 s ± 0.121 s [User: 47.205 s, System: 4.445 s]
Range (min … max): 14.527 s … 15.001 s 15 runs
6) debuginfo = off, strip = symbols, incremental = false: -9%
Time (mean ± σ): 14.786 s ± 0.110 s [User: 47.324 s, System: 4.364 s]
Range (min … max): 14.623 s … 14.987 s 15 runs
7) debuginfo = off, strip = symbols, incremental = false, lld: -11.9%
Time (mean ± σ): 14.306 s ± 0.087 s [User: 45.856 s, System: 5.613 s]
Range (min … max): 14.172 s … 14.491 s 15 runs
ripgrep master
cargo build -j12, 5 warmup runs, 15 timed runs
1) baseline, the current defaults
Time (mean ± σ): 22.635 s ± 0.258 s [User: 97.180 s, System: 7.392 s]
Range (min … max): 22.044 s … 23.130 s 15 runs
2) debuginfo = 1: -0.9%
Time (mean ± σ): 22.425 s ± 0.314 s [User: 104.065 s, System: 7.717 s]
Range (min … max): 21.890 s … 22.962 s 15 runs
3) debuginfo = off: -3.7%
Time (mean ± σ): 21.802 s ± 0.423 s [User: 100.643 s, System: 7.517 s]
Range (min … max): 20.960 s … 22.530 s 15 runs
4) debuginfo = off, strip = debuginfo: -3.83%
Time (mean ± σ): 21.766 s ± 0.435 s [User: 101.050 s, System: 7.650 s]
Range (min … max): 20.909 s … 22.398 s 15 runs
5) debuginfo = off, strip = symbols: -3.83%
Time (mean ± σ): 21.766 s ± 0.435 s [User: 101.050 s, System: 7.650 s]
Range (min … max): 20.909 s … 22.398 s 15 runs
6) debuginfo = off, strip = symbols, incremental = false: -4.63%
Time (mean ± σ): 21.586 s ± 0.467 s [User: 100.516 s, System: 7.419 s]
Range (min … max): 20.711 s … 22.655 s 15 runs
7) debuginfo = off, strip = symbols, incremental = false, lld: -14%
Time (mean ± σ): 19.461 s ± 0.410 s [User: 98.533 s, System: 10.514 s]
Range (min … max): 18.803 s … 20.071 s 15 runs
snafu-0.7.0
cargo check -j12, 5 warmup runs, 50 timed runs
1) baseline, the current defaults
Time (mean ± σ): 9.594 s ± 0.119 s [User: 21.078 s, System: 1.603 s]
Range (min … max): 9.406 s … 9.888 s 50 runs
2) debuginfo = 1: -12.5%
Time (mean ± σ): 8.389 s ± 0.078 s [User: 18.316 s, System: 1.426 s]
Range (min … max): 8.222 s … 8.575 s 50 runs
3) debuginfo = off: -18.7%
Time (mean ± σ): 7.797 s ± 0.061 s [User: 16.205 s, System: 1.294 s]
Range (min … max): 7.675 s … 7.938 s 50 runs
4) debuginfo = off, strip = debuginfo: -18.9%
Time (mean ± σ): 7.781 s ± 0.061 s [User: 16.180 s, System: 1.279 s]
Range (min … max): 7.657 s … 7.945 s 50 runs
5) debuginfo = off, strip = symbols: -18.9% but slightly better.
Time (mean ± σ): 7.777 s ± 0.074 s [User: 16.151 s, System: 1.286 s]
Range (min … max): 7.649 s … 7.963 s 50 runs
6) debuginfo = off, strip = symbols, incremental = false: -18.9%; within noise as it's often not applicable in benchmarks
Time (mean ± σ): 7.779 s ± 0.063 s [User: 16.126 s, System: 1.288 s]
Range (min … max): 7.631 s … 7.905 s 50 runs
7) debuginfo = off, strip = symbols, incremental = false, lld: -24.5%
Time (mean ± σ): 7.241 s ± 0.073 s [User: 15.659 s, System: 1.643 s]
Range (min … max): 7.102 s … 7.448 s 50 runs
syn-1.0.86
cargo check -j12, 5 warmup runs, 50 timed runs
1) baseline, the current defaults
Time (mean ± σ): 3.188 s ± 0.038 s [User: 3.932 s, System: 0.506 s]
Range (min … max): 3.112 s … 3.322 s 50 runs
2) debuginfo = 1: -1.2%
Time (mean ± σ): 3.149 s ± 0.039 s [User: 3.777 s, System: 0.494 s]
Range (min … max): 3.049 s … 3.243 s 50 runs
3) debuginfo = off: -1.8%
Time (mean ± σ): 3.130 s ± 0.040 s [User: 3.644 s, System: 0.487 s]
Range (min … max): 3.049 s … 3.201 s 50 runs
4) debuginfo = off, strip = debuginfo: -1.75%
Time (mean ± σ): 3.132 s ± 0.039 s [User: 3.641 s, System: 0.489 s]
Range (min … max): 3.023 s … 3.211 s 50 runs
5) debuginfo = off, strip = symbols: -1.72%
Time (mean ± σ): 3.133 s ± 0.043 s [User: 3.649 s, System: 0.488 s]
Range (min … max): 3.048 s … 3.217 s 50 runs
6) debuginfo = off, strip = symbols, incremental = false: -2%
Time (mean ± σ): 3.124 s ± 0.043 s [User: 3.489 s, System: 0.458 s]
Range (min … max): 3.006 s … 3.202 s 50 runs
7) debuginfo = off, strip = symbols, incremental = false, lld: -4.3%
Time (mean ± σ): 3.051 s ± 0.038 s [User: 3.377 s, System: 0.630 s]
Range (min … max): 2.975 s … 3.117 s 50 runs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment