Skip to content

Instantly share code, notes, and snippets.

@brson
Created February 24, 2014 19:44
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 brson/9195532 to your computer and use it in GitHub Desktop.
Save brson/9195532 to your computer and use it in GitHub Desktop.
# Compile time, noopt, before
brian@brian-X1:~/dev/rust2/build$ time CFG_VERSION=1 CFG_COMPILER=rustc CFG_PREFIX=/ CFG_LIBDIR_RELATIVE=/ CFG_RUSTLIBDIR=/ x86_64-unknown-linux-gnu/stage2/bin/rustc --cfg stage2 --cfg rtopt --cfg debug --target=x86_64-unknown-linux-gnu -D warnings -L "x86_64-unknown-linux-gnu/rt" -L "/opt/dev/rust2/build/x86_64-unknown-linux-gnu/llvm/Release+Asserts/lib" --out-dir x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib /home/brian/dev/rust2/src/librustc/lib.rs
real 2m12.633s
user 1m46.688s
sys 0m24.360s
real 2m43.636s
user 1m58.660s
sys 0m33.356s
# Compile time, noopt, after
real 1m54.138s
user 1m26.952s
sys 0m16.388s
real 2m3.226s
user 1m36.492s
sys 0m16.264s
# Compile time, opt, before
brian@brian-X1:~/dev/rust2/build$ time CFG_VERSION=1 CFG_COMPILER=rustc CFG_PREFIX=/ CFG_LIBDIR_RELATIVE=/ CFG_RUSTLIBDIR=/ x86_64-unknown-linux-gnu/stage2/bin/rustc --cfg stage2 --cfg rtopt --cfg debug --target=x86_64-unknown-linux-gnu -D warnings -L "x86_64-unknown-linux-gnu/rt" -L "/opt/dev/rust2/build/x86_64-unknown-linux-gnu/llvm/Release+Asserts/lib" --out-dir x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib /home/brian/dev/rust2/src/librustc/lib.rs -O
real 5m35.920s
user 4m52.932s
sys 0m33.836s
real 6m5.720s
user 5m30.924s
sys 0m24.148s
# Compile time, opt, after
real 5m25.240s
user 4m59.832s
sys 0m15.784s
real 5m22.347s
user 4m54.624s
sys 0m16.008s
# Bench time, before
rm tmp/*ok;time make check-stage2-bench VERBOSE=1 CFG_DISABLE_OPTIMIZE_TESTS=1 RUST_BENCH=1
real 2m29.268s
user 7m16.604s
sys 0m22.896s
real 2m10.045s
user 6m25.628s
sys 0m24.860s
# Bench time, after
real 1m55.327s
user 5m19.348s
sys 0m22.296s
real 1m58.089s
user 5m4.004s
sys 0m16.948s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment