Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use Benchmark Benchmark::cmpthese( -10, { non => sub{my $g = 10; my $lim = 10; for ( my $i = 1; $i < $lim; ++$i ) { --$g }}, wit => sub{my $g = 10; my $lim = 10; for ( my $i = 1; $i < $lim; ++$i ) { --$lim }} } ) __END__ Rate non wit non 507747/s -- -26% wit 685879/s 35% --
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: for limit
by Limbic~Region (Chancellor) on Nov 04, 2008 at 15:49 UTC | |
|
Re: for limit
by BrowserUk (Patriarch) on Nov 04, 2008 at 15:58 UTC | |
|
Re: for limit
by moritz (Cardinal) on Nov 04, 2008 at 15:50 UTC | |
|
Re: for limit
by Anonymous Monk on Nov 04, 2008 at 16:05 UTC |