Benchmarks MRI 1.9.3
John Maxwell edited this page May 27, 2013
·
4 revisions
The latest Benchmarks from the Truss Router Benchmark suite.
Ruby: MRI 1.9.3p429
CPU: 2.3 GHz Intel Core i7
Welcome to Truss Router v0.0.3 Benchmark suite. Please wait...
Benchmarking in progress with 50k iterations, please wait
Rehearsal ------------------------------------------------
Plain app 0.070000 0.000000 0.070000 ( 0.072196)
Single route 0.610000 0.000000 0.610000 ( 0.615284)
--------------------------------------- total: 0.680000sec
user system total real
Plain app 0.070000 0.000000 0.070000 ( 0.072179)
Single route 0.600000 0.000000 0.600000 ( 0.597914)
Benchmarking for 2nd preference route with 50k iterations
Rehearsal ----------------------------------------------
Plain app 0.070000 0.000000 0.070000 ( 0.076200)
Last route 0.750000 0.010000 0.760000 ( 0.752167)
------------------------------------- total: 0.830000sec
user system total real
Plain app 0.070000 0.000000 0.070000 ( 0.070190)
Last route 0.750000 0.000000 0.750000 ( 0.751807)
Benchmarking 10 route map with 50k iterations, hitting last route
Rehearsal ----------------------------------------------
Plain app 0.070000 0.000000 0.070000 ( 0.074368)
Last route 1.700000 0.000000 1.700000 ( 1.710840)
------------------------------------- total: 1.770000sec
user system total real
Plain app 0.070000 0.000000 0.070000 ( 0.070042)
Last route 1.720000 0.000000 1.720000 ( 1.717232)
Benchmarking 1 dynamic segment with 50k requests
Rehearsal -----------------------------------------------
Plain app 0.070000 0.000000 0.070000 ( 0.074617)
One Dynamic 0.730000 0.000000 0.730000 ( 0.734906)
-------------------------------------- total: 0.800000sec
user system total real
Plain app 0.070000 0.000000 0.070000 ( 0.072762)
One Dynamic 0.740000 0.010000 0.750000 ( 0.740528)
Comparative Benchmarks:
Running with a single route
Rehearsal ------------------------------------------------
HTTP Router 1.250000 0.000000 1.250000 ( 1.257735)
Usher Router 1.160000 0.000000 1.160000 ( 1.156054)
Truss Router 0.890000 0.000000 0.890000 ( 0.893956)
--------------------------------------- total: 3.300000sec
user system total real
HTTP Router 1.240000 0.000000 1.240000 ( 1.231155)
Usher Router 1.140000 0.000000 1.140000 ( 1.147330)
Truss Router 0.880000 0.000000 0.880000 ( 0.879973)
Running with 10 routes
Rehearsal ------------------------------------------------
HTTP Router 1.270000 0.000000 1.270000 ( 1.271227)
Usher Router 1.160000 0.000000 1.160000 ( 1.164424)
Truss Router 1.200000 0.000000 1.200000 ( 1.198710)
--------------------------------------- total: 3.630000sec
user system total real
HTTP Router 1.270000 0.000000 1.270000 ( 1.264038)
Usher Router 1.170000 0.000000 1.170000 ( 1.167770)
Truss Router 1.200000 0.000000 1.200000 ( 1.200198)