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 imbibing at the Monastery: (10)
As of 2015-07-03 11:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (51 votes), past polls