Skip to content

Instantly share code, notes, and snippets.

Created August 17, 2014 00:14
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/0884ef35a2f18b0bc45e to your computer and use it in GitHub Desktop.
Save anonymous/0884ef35a2f18b0bc45e to your computer and use it in GitHub Desktop.
$ perl -Ilib -Mojo -E 'app->routes->bridge->route("/foo/:bar")->name("x"); my $c = app->build_controller; $c->req->url->base(Mojo::URL->new("http://example.com")); n { $c->url_for(x => {bar => "baz"}) } 10000'
1.26568 wallclock secs ( 1.24 usr + 0.01 sys = 1.25 CPU) @ 8000.00/s (n=10000)
$ perl -Ilib -Mojo -E 'app->routes->bridge->route("/foo/:bar")->name("x"); my $c = app->build_controller; $c->req->url->base(Mojo::URL->new("http://example.com")); n { $c->url_for(x => {bar => "baz"}) } 10000'
0.937773 wallclock secs ( 0.93 usr + 0.00 sys = 0.93 CPU) @ 10752.69/s (n=10000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment