Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Idiomatic optimizations

by BlueLines (Hermit)
on May 01, 2002 at 00:37 UTC ( #163195=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use Benchmark qw(cmpthese);
    ...
            single => sub { $foo = 'foo'},
            double => sub { $foo = "foo"}
            });
    
  2. or download this
    [jon@valium jon]$ ./test.pl 
    Benchmark: timing 10000000 iterations of double, single...
    ...
                Rate double single
    double 5235602/s     --   -35%
    single 8000000/s    53%     --
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://163195]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2014-07-24 05:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (158 votes), past polls