Skip to content

Instantly share code, notes, and snippets.

Created August 15, 2014 07:31
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 anonymous/cbe8fa3dabf6497ec7b9 to your computer and use it in GitHub Desktop.
Save anonymous/cbe8fa3dabf6497ec7b9 to your computer and use it in GitHub Desktop.
$ perl -Ilib -Mojo -E 'helper foo => sub { "works!" }; my $c = app->build_controller; n { $c->foo } 100000'
0.790242 wallclock secs ( 0.79 usr + 0.00 sys = 0.79 CPU) @ 126582.28/s (n=100000)
$ perl -Ilib -Mojo -E 'helper foo => sub { "works!" }; my $c = app->build_controller; my $helpers = $c->helpers; n { $helpers->foo } 100000'
0.035367 wallclock secs ( 0.04 usr + 0.00 sys = 0.04 CPU) @ 2500000.00/s (n=100000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment