Faster.pm のベンチ結果メモ
今んとここんなかんじだ。ここまで恣意的な例だと、さすがに差がかなりでる。
tokuhirom@gpath% time FASTER_VERBOSE=1 perl -Mblib -MFaster -e 'sub calc { $s=1;$i=0;$s+=$i while 100000000>($i+=1);print "$s\n"}; calc()'
optimising main
4999999950000001
FASTER_VERBOSE=1 perl -Mblib -MFaster -e 13.16s user 0.03s system 99% cpu 13.194 total
tokuhirom@gpath% time FASTER_VERBOSE=1 perl -e 'sub calc { $s=1;$i=0;$s+=$i while 100000000>($i+=1);print "$s\n"}; calc()'
4999999950000001
FASTER_VERBOSE=1 perl -e 21.81s user 0.02s system 100% cpu 21.830 total
Published: 2010-02-07(Sun) 12:34