| rack-router | merb routing | rails routing |
--Route generation-----------------------------------------------------------------------------------------------------------------------------------
A simple string x10000 | 0.056 | 0.133 | 0.403 |
A simple string with query parameters x10000 | 0.228 | 0.344 | 0.551 |
A couple variable segments x10000 | 0.140 | 0.435 | 0.570 |
A lot of variable segments x10000 | 0.213 | 0.409 | 0.787 |
Conditions that matches x10000 | 0.161 | 0.300 | 0.595 |
Conditions that don't match x10000 | 0.502 | 0.551 | 1.332 |
A route with defaults while specifying all the parameters x10000 | 0.172 | 0.282 | 0.627 |
A route with defaults while specifying the last parameter x10000 | 0.170 | 0.341 | 0.611 |
A route with defaults while specifying the first parameter x10000 | 0.175 | 0.369 | 0.597 |
A route with defaults while specifying none of the parameters x10000 | 0.114 | 0.169 | 0.546 |
A route with optional segments given only the first parameter x10000 | 0.142 | 0.227 | 0.451 |
A route with optional segments given two sequential optional parameters x10000 | 0.154 | 0.265 | 0.811 |
A route with optional segments given two nested optional parameters x10000 | 0.159 | 0.274 | 0.528 |
A route with optional segments given two nested optional parameters and one sequential x10000 | 0.172 | 0.299 | 0.832 |
A route with optional segments given three nested optional parameters x10000 | 0.178 | 0.305 | 0.575 |
A route with optional segments given all the parameters x10000 | 0.189 | 0.363 | 0.636 |
A route with optionals & defaults while specifying all the parameters x10000 | 0.173 | 0.306 | 0.670 |
A route with optionals & defaults while specifying the last parameter x10000 | 0.133 | 0.378 | 0.607 |
A route with optionals & defaults while specifying the first parameter x10000 | 0.145 | 0.359 | 0.579 |
A route with optionals & defaults while specifying none of the parameters x10000 | 0.093 | 0.162 | |
All route generation (totals) | 3.471 | 6.267 | 12.309 |