Skip to content

Instantly share code, notes, and snippets.

@kobake
Last active March 7, 2017 08:31
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save kobake/f132f6f2b70e959a9d3945c3a5074991 to your computer and use it in GitHub Desktop.
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