Create a gist now

Instantly share code, notes, and snippets.

ccache 有無による bitcoin ビルド時間の変化の計測
#!/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