Created
August 25, 2009 01:40
-
-
Save joshbuddy/174386 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
rack-router | merb routing | rails routing | usher routing | | |
--Route generation--------------------------------------------------------------------------------------------------------------------------------------------------- | |
A simple string x10000 | 0.149 | 0.145 | 0.450 | 0.098 | | |
A simple string with query parameters x10000 | 0.308 | 0.338 | 0.645 | 0.221 | | |
A couple variable segments x10000 | 0.210 | 0.481 | 0.639 | 0.156 | | |
A lot of variable segments x10000 | 0.289 | 0.395 | 0.853 | 0.351 | | |
Conditions that matches x10000 | 0.219 | 0.335 | 0.657 | 0.266 | | |
Conditions that don't match x10000 | 0.528 | 0.630 | 1.528 | 0.246 | | |
A route with defaults while specifying all the parameters x10000 | 0.259 | 0.276 | 0.706 | 0.247 | | |
A route with defaults while specifying the last parameter x10000 | 0.249 | 0.382 | 0.707 | 0.236 | | |
A route with defaults while specifying the first parameter x10000 | 0.201 | 0.420 | 0.699 | 0.196 | | |
A route with defaults while specifying none of the parameters x10000 | 0.253 | 0.174 | 0.551 | 0.225 | | |
A route with optional segments given only the first parameter x10000 | 0.171 | 0.263 | 0.562 | 0.183 | | |
A route with optional segments given two sequential optional parameters x10000 | 0.242 | 0.295 | 0.935 | 0.222 | | |
A route with optional segments given two nested optional parameters x10000 | 0.241 | 0.308 | 0.603 | 0.265 | | |
A route with optional segments given two nested optional parameters and one sequential x10000 | 0.271 | 0.333 | 0.934 | 0.303 | | |
A route with optional segments given three nested optional parameters x10000 | 0.262 | 0.373 | 0.640 | 0.300 | | |
A route with optional segments given all the parameters x10000 | 0.274 | 0.403 | 0.740 | 0.332 | | |
A route with optionals & defaults while specifying all the parameters x10000 | 0.265 | 0.316 | 0.716 | 0.297 | | |
A route with optionals & defaults while specifying the last parameter x10000 | 0.218 | 0.426 | 0.705 | 0.244 | | |
A route with optionals & defaults while specifying the first parameter x10000 | 0.215 | 0.412 | 0.653 | 0.183 | | |
A route with optionals & defaults while specifying none of the parameters x10000 | 0.211 | 0.178 | | 0.111 | | |
All route generation (totals) | 5.033 | 6.884 | 13.921 | 4.684 | |
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
rack-router | merb routing | rails routing | usher routing | | |
--A 1352 route set with routes sequential at the top level----------------------------------------------------------------------------- | |
Matching the first route x1000 | 0.013 | 0.009 | 0.114 | 0.004 | | |
Matching the middle route x1000 | 0.011 | 0.141 | 2.674 | 0.004 | | |
Matching the last route x1000 | 0.013 | 0.343 | 5.793 | 0.004 | |
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
| rack-router | merb routing | rails routing | usher routing | | |
--A 1521 route set with routes nested evenly over method and 2 path levels deep----------------------------------------------------------------------------- | |
Matching the first route x1000 | 0.010 | 0.010 | 0.095 | 0.005 | | |
Matching the middle route x1000 | 0.011 | 0.132 | 2.307 | 0.003 | | |
Matching the last route x1000 | 0.011 | 0.286 | 5.284 | 0.003 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment