Skip to content

Instantly share code, notes, and snippets.

@nodakai
Created July 23, 2017 13:15
Show Gist options
  • Save nodakai/3600c808725f44f2cd24939168358726 to your computer and use it in GitHub Desktop.
Save nodakai/3600c808725f44f2cd24939168358726 to your computer and use it in GitHub Desktop.
Benchmark on my PR rust-lang/cargo#4314
$ { git co phantom-type-in-projectbuilder && git co HEAD^ } &> /dev/null&& for k in {1..5}; do time cargo test --no-run &> /dev/null && git co phantom-type-in-projectbuilder > /dev/null&& time cargo test --no-run &> /dev/null && git co HEAD^ > /dev/null; done
cargo test --no-run &> /dev/null 297.70s user 28.12s system 415% cpu 1:18.37 total
Previous HEAD position was 47783c15... Auto merge of #4305 - nodakai:fix-4278-tests-on-empty-ld_library_path, r=matklad
Switched to branch 'phantom-type-in-projectbuilder'
cargo test --no-run &> /dev/null 294.68s user 19.88s system 467% cpu 1:07.23 total
Note: checking out 'HEAD^'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at 47783c15... Auto merge of #4305 - nodakai:fix-4278-tests-on-empty-ld_library_path, r=matklad
cargo test --no-run &> /dev/null 290.04s user 23.38s system 420% cpu 1:14.58 total
Previous HEAD position was 47783c15... Auto merge of #4305 - nodakai:fix-4278-tests-on-empty-ld_library_path, r=matklad
Switched to branch 'phantom-type-in-projectbuilder'
cargo test --no-run &> /dev/null 297.19s user 19.68s system 496% cpu 1:03.81 total
Note: checking out 'HEAD^'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at 47783c15... Auto merge of #4305 - nodakai:fix-4278-tests-on-empty-ld_library_path, r=matklad
cargo test --no-run &> /dev/null 290.38s user 21.49s system 433% cpu 1:12.01 total
Previous HEAD position was 47783c15... Auto merge of #4305 - nodakai:fix-4278-tests-on-empty-ld_library_path, r=matklad
Switched to branch 'phantom-type-in-projectbuilder'
cargo test --no-run &> /dev/null 296.62s user 21.46s system 510% cpu 1:02.32 total
Note: checking out 'HEAD^'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at 47783c15... Auto merge of #4305 - nodakai:fix-4278-tests-on-empty-ld_library_path, r=matklad
cargo test --no-run &> /dev/null 299.61s user 23.26s system 532% cpu 1:00.64 total
Previous HEAD position was 47783c15... Auto merge of #4305 - nodakai:fix-4278-tests-on-empty-ld_library_path, r=matklad
Switched to branch 'phantom-type-in-projectbuilder'
cargo test --no-run &> /dev/null 290.33s user 20.56s system 422% cpu 1:13.64 total
Note: checking out 'HEAD^'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at 47783c15... Auto merge of #4305 - nodakai:fix-4278-tests-on-empty-ld_library_path, r=matklad
cargo test --no-run &> /dev/null 301.13s user 21.75s system 516% cpu 1:02.51 total
Previous HEAD position was 47783c15... Auto merge of #4305 - nodakai:fix-4278-tests-on-empty-ld_library_path, r=matklad
Switched to branch 'phantom-type-in-projectbuilder'
cargo test --no-run &> /dev/null 296.24s user 20.24s system 483% cpu 1:05.39 total
Note: checking out 'HEAD^'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at 47783c15... Auto merge of #4305 - nodakai:fix-4278-tests-on-empty-ld_library_path, r=matklad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment