Skip to content

Instantly share code, notes, and snippets.

@gfx
Created August 21, 2009 09:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gfx/171786 to your computer and use it in GitHub Desktop.
Save gfx/171786 to your computer and use it in GitHub Desktop.
# a result of http://gist.github.com/171785
Perl/5.10.0 in i686-linux
Moose/0.89 (Class::MOP/0.92)
Mouse/0.27
Class::XSAccessor/1.03
MoosePlain: Inline
MooseXS: XS
GETTING for simple attributes
Rate Mouse Moose/Plain Moose/XS C::XSAccessor
Mouse 819199/s -- -1% -58% -61%
Moose/Plain 827077/s 1% -- -57% -61%
Moose/XS 1927529/s 135% 133% -- -8%
C::XSAccessor 2096352/s 156% 153% 9% --
SETTING for simple attributes
Rate Moose/Plain Mouse C::XSAccessor Moose/XS
Moose/Plain 683344/s -- -19% -59% -64%
Mouse 841747/s 23% -- -50% -56%
C::XSAccessor 1686587/s 147% 100% -- -12%
Moose/XS 1923993/s 182% 129% 14% --
GETTING for lazy attributes (except for C::XSAccessor)
Rate Moose/Plain Moose/XS C::XSAccessor
Moose/Plain 546132/s -- -63% -70%
Moose/XS 1484634/s 172% -- -19%
C::XSAccessor 1835008/s 236% 24% --
SETTING for attributes with type constraints (except for C::XSAccessor)
Rate Moose/Plain Moose/XS C::XSAccessor
Moose/Plain 327679/s -- -44% -80%
Moose/XS 580886/s 77% -- -65%
C::XSAccessor 1670213/s 410% 188% --
Class definition
Rate Moose/Plain Moose/XS Mouse
Moose/Plain 11.6/s -- -36% -72%
Moose/XS 18.1/s 56% -- -56%
Mouse 41.1/s 255% 127% --
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment