Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Nested evals - are they evil? (sample benchmarks)

by cLive ;-) (Parson)
on Jul 31, 2007 at 07:05 UTC ( #629753=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    use Benchmark 'cmpthese';
    ...
    
    sub some_more_code { }
    sub error_sub { }
    
  2. or download this
                Rate   eval noeval
    eval   1298354/s     --   -37%
    noeval 2066450/s    59%     --
    ...
                Rate   eval noeval
    eval   1298354/s     --   -41%
    noeval 2205537/s    70%     --
    
  3. or download this
    use strict;
    use warnings;
    ...
    sub some_more_code { $x++ }
    sub error_sub { }
    
  4. or download this
                Rate   eval noeval
    eval    989400/s     --   -23%
    noeval 1286220/s    30%     --
    ...
                Rate   eval noeval
    eval   1071850/s     --   -26%
    noeval 1456355/s    36%     --
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2015-07-30 02:34 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 (269 votes), past polls