Created
August 3, 2015 09:25
-
-
Save makenowjust/1cc3acc531eda2ad63af to your computer and use it in GitHub Desktop.
Crystal compiler compile benchmark
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| rm -rf ./.crystal ./.build | |
| git checkout master | |
| echo "1st Build" | |
| ./bin/crystal --version | |
| make release=1 | |
| echo "2nd Build" | |
| rm -rf ./.crystal | |
| git checkout feature/method_added | |
| touch src/compiler/crystal.cr | |
| ./bin/crystal --version | |
| time make release=1 | |
| echo "3rd Build" | |
| rm -rf ./.crystal | |
| touch src/compiler/crystal.cr | |
| ./bin/crystal --version | |
| time make release=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Switched to branch 'master' | |
| Your branch is up-to-date with 'origin/master'. | |
| 1st Build | |
| Crystal 0.7.5 [2a33a87] (Thu Jul 30 17:32:32 UTC 2015) | |
| ./bin/crystal build --release -o .build/crystal src/compiler/crystal.cr | |
| 2nd Build | |
| Switched to branch 'feature/method_added' | |
| Using compiled compiler at .build/crystal | |
| Crystal 0.7.5 [b10df4d] (Sun Aug 2 23:51:23 UTC 2015) | |
| ./bin/crystal build --release -o .build/crystal src/compiler/crystal.cr | |
| Using compiled compiler at .build/crystal | |
| real 4m4.082s | |
| user 4m6.904s | |
| sys 0m1.462s | |
| 3rd Build | |
| Using compiled compiler at .build/crystal | |
| Crystal 0.7.5 [4c6070e] (Sun Aug 2 23:55:34 UTC 2015) | |
| ./bin/crystal build --release -o .build/crystal src/compiler/crystal.cr | |
| Using compiled compiler at .build/crystal | |
| real 4m2.070s | |
| user 4m2.931s | |
| sys 0m1.454s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment