Skip to content

Instantly share code, notes, and snippets.

Created August 12, 2014 15:42
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/42ea9ae778a47bcc40c6 to your computer and use it in GitHub Desktop.
Save anonymous/42ea9ae778a47bcc40c6 to your computer and use it in GitHub Desktop.
$ perl -Mojo -E 'helper "foo.bar" => sub { "works!" }; my $c = app->build_controller; n { $c->render_to_string(inline => q{<%= tag "div" %>} x 500) } 1000'
5.03176 wallclock secs ( 5.02 usr + 0.01 sys = 5.03 CPU) @ 198.81/s (n=1000)
$ perl -Ilib -Mojo -E 'helper "foo.bar" => sub { "works!" }; my $c = app->build_controller; n { $c->render_to_string(inline => q{<%= tag "div" %>} x 500) } 1000'
3.47947 wallclock secs ( 3.47 usr + 0.00 sys = 3.47 CPU) @ 288.18/s (n=1000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment