Created
September 24, 2011 20:27
-
-
Save schwern/1239816 to your computer and use it in GitHub Desktop.
Profile MXMS empty method call
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEGIN { DB::disable_profile() } | |
{ | |
package Foo; | |
use Moose; | |
use MooseX::Method::Signatures; | |
method empty {} | |
} | |
my $obj = Foo->new; | |
# Run it once to see if Moose needs to initialize itself? | |
$obj->empty; | |
BEGIN { DB::enable_profile() } | |
$obj->empty for 1..10; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment