(through https://rustup.rs)
hyperfine --warmup=1 'cargo install -f ripgrep@14.1.0'nix-shell -p cargo hyperfine --run "hyperfine --warmup=1 'cargo install -f ripgrep@14.1.0'"This won't be quite as comparable, hyperfine is really great for benchmarking, but if you only have cargo, just run the install twice:
cargo install -f ripgrep@14.1.0 && cargo install -f ripgrep@14.1.0

Thinkcentre - 39.6s
An old thin workstation I had lying around with an old i5-6400T