3 # Run this script inside of the folder `benchmarks` to download
4 # the input files to run the benchmarks.
8 # ./setup-benchmarks.sh
11 # It will download rust-lang's source code.
13 # After this, you can run `./run-benchmarks.sh`.
15 # Input files downloaded:
16 # - `compiler` (27 MB) for compressed formats.
17 # - `rust` (229 MB) for uncompressed formats.
22 if [[ -d "rust" ||
-d "compiler" ]]; then
23 echo "Input files already exist, try deleting before downloading again."
27 # Download the Rust 1.65.0 source code
28 git clone
-b 1.65.0 https
://github.com
/rust-lang
/rust
--depth 1
30 # Delete write-protected files to make benchmark cleanup simpler
33 # Separate the compiler code
34 cp rust
/compiler
-r compiler
39 echo "tip: if you see a git warning above, you can ignore it"