Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

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

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
            $x+=1;
        }
    }
    
  2. or download this
             Rate   eval noeval
    eval   1495/s     --   -62%
    noeval 3953/s   164%     --
    
  3. or download this
    use strict;
    use warnings;
    use Benchmark 'cmpthese';
    ...
            }
        }
    }
    
  4. or download this
               Rate   eval noeval
    eval    67797/s     --   -39%
    noeval 111111/s    64%     --
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (10)
As of 2015-07-07 16:53 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 (92 votes), past polls