Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Benchmarks: Costs of OO Perl

by coreolyn (Parson)
on Jan 10, 2001 at 02:46 UTC ( [id://50798]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Benchmark qw(cmpthese);
    use strict;
    ...
    sub Die {
       return int( rand( shift ) + 1 );
    }
    
  2. or download this
    Benchmark: timing 55000 iterations of FacedDieObjNotStored, FacedDieOb
    +jStored, FacelessDieObj, PsuedoHashObj, pureDieObj, pureSub, purists.
    +..
    FacedDieObjNotStored:  6 wallclock secs ( 6.14 usr +  0.00 sys =  6.14
    + CPU) @ 8957.65/s (n=55000)
    ...
    pureDieObj            10456/s          187%               24%         
    +         17%      6%         --    -79%    -90%
    pureSub               50459/s         1283%              498%         
    +        463%     412%       383%      --    -50%
    purists              100000/s         2642%             1085%         
    +       1016%    915%       856%     98%      --
    
  3. or download this
    Benchmark: timing 55000 iterations of FacedDieObjNotStored, FacedDieOb
    +jStored, 
    
    ...
    pureSub               49107/s          254%              147%         
    +        107%        84%        54%      --    -54%
    purists              107843/s          678%              443%         
    +        355%        304%       237%    120%      --
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-19 20:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found