Benchmarks

This page only keeps numbers that were verified locally or reported directly by Criterion.

Command comparisons

CommandPackComparison target
pack --version32.20 msbundle --version at 368.24 ms
pack list16.95 msgem list at 496.37 ms

These are local timings against the native Ruby commands Pack is meant to tighten in day-to-day use.

Parser timings

BenchmarkResultSource
Gemfile parse (100 deps)8.67–8.86 µs`gemfile_parse`
Lockfile parse (50 gems)48.45–50.08 µs`gemfile_parse`
Lockfile parse (200 gems)91.60–117.35 µs`lockfile_bench`

These are Criterion results from the parser benches in this repository, not command-for-command comparisons against Bundler or RubyGems.

How to run them

cargo bench
cargo bench --bench gemfile_parse
cargo bench --bench lockfile_bench
python benchmarks/compare_pack.py
./benchmarks/pack_vs_ruby.sh