Benchmark

Benchmark(3p) Perl Programmers Reference Guide Benchmark(3p)

Benchmark

Benchmark(3p) Perl Programmers Reference Guide Benchmark(3p) # Benchmark(3p) Perl Programmers Reference Guide Benchmark(3p) NNAAMMEE # Benchmark - benchmark running times of Perl code SSYYNNOOPPSSIISS # use Benchmark qw(:all) ; timethis ($count, "code"); # Use Perl code in strings... timethese($count, { 'Name1' => '...code1...', 'Name2' => '...code2...', }); # ... or use subroutine references. timethese($count, { 'Name1' => sub { ...code1... }, 'Name2' => sub { ...code2... }, }); # cmpthese can be used both ways as well cmpthese($count, { 'Name1' => '. ...