Skip to content

Instantly share code, notes, and snippets.

@EricRahm
Created April 27, 2020 01:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EricRahm/5094f533715a8e3072a9bbaa39a3e0c2 to your computer and use it in GitHub Desktop.
Save EricRahm/5094f533715a8e3072a9bbaa39a3e0c2 to your computer and use it in GitHub Desktop.
Fx Builds: Rust nightly vs 1.43 stable
#!/usr/bin/env bash
# Switch to the stable builds
rustup default stable
rustc -V
cargo -V
cat .mozconfig
echo ""
echo "Baseline run without without bytecode optimization"
echo "=================================================="
# Baseline run
echo -n "Initial run to populate ccache..."
./mach clobber --full
./mach -l build.log build > /dev/null
echo "done"
multitime -q -n 6 -r 'echo done && echo -n clobbering... && ./mach clobber --full && echo done && echo -n building...' ./mach -l build.log build
echo ""
echo "Running with nightly"
echo "===================="
# Switch to the nightly builds
rustup default nightly
rustc -V
cargo -V
# Baseline run
echo -n "Initial run with nightly to populate ccache..."
./mach clobber --full
./mach -l build.log build > /dev/null
echo "done"
multitime -q -n 6 -r 'echo done && echo -n clobbering... && ./mach clobber --full && echo done && echo -n building...' ./mach -l build.log build
rustup default stable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment