in reply to Re^2: hash slice ? No thanks, I'm about to return...
in thread hash slice ? No thanks, I'm about to return...
Is what i got from:Rate return no ret return 4682554/s -- -30% no ret 6642457/s 42% --
use Benchmark qw( cmpthese ); my %hash = (1, 2, 4, 6, 43, 32, 5, 6, 6, 43, 3, 54, 5, 1); cmpthese(0, { 'return' => sub { return \%hash }, 'no ret' => sub { \%hash }, });
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: hash slice ? No thanks, I'm about to return...
by Anonymous Monk on Feb 19, 2005 at 20:54 UTC |