...
Benchmark::cmpthese( 1, {
arrayLookup => q{
print scalar( @test_array ), ' : ', scalar( @indexes );
my $val = &arrayLookup( \@test_array, \@indexes );
},
...
__OUPUT__
c:\test>junk3
0 : 0 (warning: too few iterations for a reliable count)
(warning: too few iterations for a reliable count)
(warning: too few iterations for a reliable count)
(warning: too few iterations for a reliable count)
Rate shuffled_arrayLookup shuffled_hashLookup hashLookup arrayLookup
shuffled_arrayLookup 1000000000000000/s -- 0% 0% 0%
shuffled_hashLookup 1000000000000000/s 0% -- 0% 0%
hashLookup 1000000000000000/s 0% 0% -- 0%
arrayLookup 1000000000000000/s 0% 0% 0% --
####
c:\test>junk3
107 : 201 (warning: too few iterations for a reliable count)
(warning: too few iterations for a reliable count)
(warning: too few iterations for a reliable count)
(warning: too few iterations for a reliable count)
Rate shuffled_arrayLookup shuffled_hashLookup hashLookup arrayLookup
shuffled_arrayLookup 1000000000000000/s -- 0% 0% 0%
shuffled_hashLookup 1000000000000000/s 0% -- 0% 0%
hashLookup 1000000000000000/s 0% 0% -- 0%
arrayLookup 1000000000000000/s 0% 0% 0% --
####
c:\test>junk3
Rate shuffled_hashLookup hashLookup arrayLookup shuffled_arrayLookup
shuffled_hashLookup 2113/s -- -0% -3% -5%
hashLookup 2113/s 0% -- -3% -5%
arrayLookup 2181/s 3% 3% -- -2%
shuffled_arrayLookup 2233/s 6% 6% 2% --