Benchmarks JRuby
John Maxwell edited this page May 27, 2013
·
3 revisions
The latest Benchmarks from the Truss Router Benchmark suite.
Ruby: JRuby 1.7.4, Oracle Java7u21
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.130000 0.010000 0.140000 ( 0.080000)
Single route 0.900000 0.020000 0.920000 ( 0.745000)
--------------------------------------- total: 1.060000sec
user system total real
Plain app 0.060000 0.000000 0.060000 ( 0.051000)
Single route 0.710000 0.030000 0.740000 ( 0.728000)
Benchmarking for 2nd preference route with 50k iterations
Rehearsal ----------------------------------------------
Plain app 0.050000 0.000000 0.050000 ( 0.050000)
Last route 0.860000 0.010000 0.870000 ( 0.854000)
------------------------------------- total: 0.920000sec
user system total real
Plain app 0.050000 0.000000 0.050000 ( 0.050000)
Last route 0.900000 0.040000 0.940000 ( 0.935000)
Benchmarking 10 route map with 50k iterations, hitting last route
Rehearsal ----------------------------------------------
Plain app 0.060000 0.000000 0.060000 ( 0.049000)
Last route 1.670000 0.040000 1.710000 ( 1.717000)
------------------------------------- total: 1.770000sec
user system total real
Plain app 0.060000 0.010000 0.070000 ( 0.064000)
Last route 1.660000 0.000000 1.660000 ( 1.651000)
Benchmarking 1 dynamic segment with 50k requests
Rehearsal -----------------------------------------------
Plain app 0.050000 0.000000 0.050000 ( 0.049000)
One Dynamic 0.890000 0.000000 0.890000 ( 0.874000)
-------------------------------------- total: 0.940000sec
user system total real
Plain app 0.050000 0.000000 0.050000 ( 0.049000)
One Dynamic 0.860000 0.000000 0.860000 ( 0.862000)
Comparative Benchmarks
Running with a single route
Rehearsal ------------------------------------------------
HTTP Router 1.910000 0.050000 1.960000 ( 1.588000)
Usher Router 1.640000 0.030000 1.670000 ( 1.594000)
Truss Router 1.110000 0.040000 1.150000 ( 1.084000)
--------------------------------------- total: 4.780000sec
user system total real
HTTP Router 1.440000 0.000000 1.440000 ( 1.445000)
Usher Router 1.520000 0.000000 1.520000 ( 1.510000)
Truss Router 0.960000 0.010000 0.970000 ( 0.961000)
Running with 10 routes
Rehearsal ------------------------------------------------
HTTP Router 1.660000 0.000000 1.660000 ( 1.614000)
Usher Router 1.540000 0.000000 1.540000 ( 1.537000)
Truss Router 1.340000 0.010000 1.350000 ( 1.325000)
--------------------------------------- total: 4.550000sec
user system total real
HTTP Router 1.600000 0.000000 1.600000 ( 1.602000)
Usher Router 1.540000 0.000000 1.540000 ( 1.537000)
Truss Router 1.320000 0.000000 1.320000 ( 1.309000)