Skip to content

Instantly share code, notes, and snippets.

Created August 12, 2014 16:47
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/b6a915ce905790195b65 to your computer and use it in GitHub Desktop.
Save anonymous/b6a915ce905790195b65 to your computer and use it in GitHub Desktop.
$ perl -Ilib -Mojo -E 'helper "foo.bar" => sub { "works!" }; my $c = app->build_controller; my $foo = $c->foo; n { $foo->bar } 100000'
0.849718 wallclock secs ( 0.84 usr + 0.00 sys = 0.84 CPU) @ 119047.62/s (n=100000)
$ perl -Ilib -Mojo -E 'helper "foo.bar" => sub { "works!" }; my $c = app->build_controller; my $foo = $c->foo; n { $foo->bar } 100000'
0.0416741 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