Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: The speed of blessed hashrefs, the power of Moose - how to get both?

by Your Mother (Archbishop)
on Nov 20, 2011 at 02:55 UTC ( [id://939027]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    Testing Perl 5.012002, Moose 1.24, Mouse 0.91, Moo 0.009007, Object::T
    +iny 1.08, Object::Tiny::XS 1.01
    Benchmark: timing 6000000 iterations of Moo, Moo w/quote_sub, Moose, M
    +ouse, Object::Tiny, Object::Tiny::XS, hash, manual, manual with no ch
    +ecks...
    Object::Tiny::XS:  1 secs ( 1.20 usr + -0.01 sys =  1.19 CPU) @ 504201
    +6.81/s
    ...
    Mouse no XS     : 20 secs (20.50 usr +  0.03 sys = 20.53 CPU) @  29225
    +5.24/s
    Moose           : 21 secs (21.33 usr +  0.03 sys = 21.36 CPU) @  28089
    +8.88/s
    Moo w/quote_sub : 23 secs (23.07 usr +  0.04 sys = 23.11 CPU) @  25962
    +7.87/s
    
  2. or download this
                        Rate     moose        mo     mouse blessed_hashref
    +   hashref
    moose            55157/s        --      -22%      -67%            -86%
    +      -88%
    mo               71023/s       29%        --      -58%            -82%
    +      -85%
    mouse           168919/s      206%      138%        --            -56%
    +      -65%
    blessed_hashref 384615/s      597%      442%      128%              --
    +      -20%
    hashref         478469/s      767%      574%      183%             24%
    +        --
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-19 19:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found