Learn to Live and Live to Learn

IT(たまにビジネス)に関する記事を読んで、考えて、使ってみたことをまとめる場。

2014-01-17から1日間の記事一覧

Perlでベンチマーク

Perlではその名もBenchmarkというモジュールを使うと 簡単にベンチマーク=性能比較を行えます。まずはやってみました。 #!/usr/bin/perl -w use strict; use Benchmark qw/timethese cmpthese/; my $result = timethese( 10000, { loop1 => sub{ my $i = 0;…