Skip to content

Instantly share code, notes, and snippets.

Created August 12, 2014 16:41
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/fc47b339b009924120a7 to your computer and use it in GitHub Desktop.
Save anonymous/fc47b339b009924120a7 to your computer and use it in GitHub Desktop.
$ perl -Mojo -E 'helper foo => sub { "works!" }; my $c = app->build_controller; n { $c->render_to_string(inline => q{<%= foo %>} x 500) } 1000'
2.75821 wallclock secs ( 2.75 usr + 0.01 sys = 2.76 CPU) @ 362.32/s (n=1000)
$ perl -Ilib -Mojo -E 'helper foo => sub { "works!" }; my $c = app->build_controller; n { $c->render_to_string(inline => q{<%= foo %>} x 500) } 1000'
1.22931 wallclock secs ( 1.22 usr + 0.00 sys = 1.22 CPU) @ 819.67/s (n=1000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment