Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Idiomatic optimizations

by BlueLines (Hermit)
on May 01, 2002 at 00:37 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://163195]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2024-04-25 14:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found