-
-
Save anonymous/0884ef35a2f18b0bc45e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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