Last active
March 7, 2017 08:31
Star
You must be signed in to star a gist
ccache 有無による bitcoin ビルド時間の変化の計測
This file contains 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 | |
# | |
# Ref article: http://blog.clock-up.jp/entry/2017/03/07/ccache | |
# | |
# system information | |
uname -a | |
cat /etc/system-release | |
cat /proc/cpuinfo | |
cat /proc/meminfo | |
df | |
# ============== # | |
# without ccache # | |
# ============== # | |
sudo mv /usr/local/bin/ccache /usr/local/bin/ccache_ | |
# try1 | |
echo "---- without ccache 1 ----" | |
./autogen.sh | |
./configure | |
make clean | |
time make | |
echo "---- /without ccache 1 ----" | |
# try2 | |
echo "---- without ccache 2 ----" | |
./autogen.sh | |
./configure | |
make clean | |
time make | |
echo "---- /without ccache 2 ----" | |
# try3 | |
echo "---- without ccache 3 ----" | |
./autogen.sh | |
./configure | |
make clean | |
time make | |
echo "---- /without ccache 3 ----" | |
# =========== # | |
# with ccache # | |
# =========== # | |
sudo mv /usr/local/bin/ccache_ /usr/local/bin/ccache | |
# try1 | |
echo "---- with ccache 1 ----" | |
./autogen.sh | |
./configure | |
make clean | |
time make | |
echo "---- /with ccache 1 ----" | |
# try2 | |
echo "---- with ccache 2 ----" | |
./autogen.sh | |
./configure | |
make clean | |
time make | |
echo "---- /with ccache 2 ----" | |
# try3 | |
echo "---- with ccache 3 ----" | |
./autogen.sh | |
./configure | |
make clean | |
time make | |
echo "---- /with ccache 3 ----" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment