ccache を使って buildworld(結果)

http://d.hatena.ne.jp/taizooo/20060601/1149160659

こんな感じで make buildworld スタートなのである.

%( ccache -s ; date && make buildworld; date ; ccache -s ) |& tee buildworld.log

の結果についてなのである.

  • buildworldに掛かった時間
    • ccache 1回目
Thu Jun  1 20:14:02 JST 2006
Thu Jun  1 22:53:00 JST 2006

ということで、2時間38分58秒くらい.

Thu Jun  1 13:56:30 JST 2006
Thu Jun  1 16:24:55 JST 2006

で、2時間28分25秒くらい.

  • ccache -s の結果
    • buildworld 前
cache directory                     /usr/local/var/.ccache
cache hit                              2
cache miss                           491
called for link                       20
compile failed                        32
preprocessor error                    18
not a C/C++ file                      21
autoconf compile/link                419
no input file                          8
files in cache                       982
cache size                           4.1 Mbytes
max cache size                     976.6 Mbytes
    • buildworld後
cache directory                     /usr/local/var/.ccache
cache hit                            535
cache miss                         15269
called for link                      580
multiple source files                  1
compile failed                        32
preprocessor error                    18
not a C/C++ file                    1610
autoconf compile/link                419
no input file                          9
files in cache                     30538
cache size                         105.0 Mbytes
max cache size                     976.6 Mbytes
    • 差分
cache directory /usr/local/var/.ccache /usr/local/var/.ccache
cache hit 2 535 533
cache miss 491 15269 14778
called for link 20 580 560
multiple source files 0 1 1
compile failed 32 32 0
preprocessor error 18 18 0
not a C/C++ file 21 1610 1589
autoconf compile/link 419 419 0
no input file 8 9 1
files in cache 982 30538 29556
cache size 4.1 105 100.9 Mbytes
max cache size 976.6 976.6 0 Mbytes
  • ついでにlog の取り方は、どっちかというと、コッチの方が良かった.
%( date ; ccache -s && make buildworld; ccache -s ; date ) |& tee buildworld.log

これだと時間の取得が

%( head -1 && tail -1 ) < buildworld.log

で、出来るのよ.