Skip to content

Instantly share code, notes, and snippets.

@rkh
Created May 20, 2013 11:46
Show Gist options
  • Save rkh/613e70d54923126ed90d to your computer and use it in GitHub Desktop.
Save rkh/613e70d54923126ed90d to your computer and use it in GitHub Desktop.
Without Map:
Compilation:
Rehearsal -----------------------------------------------
sinatra 0.490000 0.040000 0.530000 ( 0.535842)
rails 0.500000 0.040000 0.540000 ( 0.547414)
simple 0.040000 0.000000 0.040000 ( 0.051626)
template 0.760000 0.060000 0.820000 ( 0.840778)
regexp 0.030000 0.010000 0.040000 ( 0.023215)
addressable 0.000000 0.000000 0.000000 ( 0.008983)
-------------------------------------- total: 1.970000sec
user system total real
sinatra 0.480000 0.030000 0.510000 ( 0.529906)
rails 0.490000 0.040000 0.530000 ( 0.550155)
simple 0.050000 0.010000 0.060000 ( 0.060227)
template 1.020000 0.080000 1.100000 ( 1.344604)
regexp 0.020000 0.000000 0.020000 ( 0.019726)
addressable 0.010000 0.000000 0.010000 ( 0.010002)
Matching with two captures (one splat, one normal):
Rehearsal -----------------------------------------------
sinatra 0.030000 0.010000 0.040000 ( 0.036228)
rails 0.040000 0.000000 0.040000 ( 0.043502)
simple 0.050000 0.000000 0.050000 ( 0.053906)
template 0.030000 0.010000 0.040000 ( 0.044168)
regexp 0.040000 0.000000 0.040000 ( 0.042710)
addressable 5.100000 0.300000 5.400000 ( 6.245298)
-------------------------------------- total: 5.610000sec
user system total real
sinatra 0.050000 0.010000 0.060000 ( 0.051462)
rails 0.040000 0.000000 0.040000 ( 0.046250)
simple 0.040000 0.000000 0.040000 ( 0.042512)
template 0.040000 0.010000 0.050000 ( 0.037608)
regexp 0.030000 0.000000 0.030000 ( 0.072650)
addressable 5.410000 0.360000 5.770000 ( 7.808799)
With Map:
Compilation:
Rehearsal -----------------------------------------------
sinatra 0.020000 0.000000 0.020000 ( 0.021677)
rails 0.010000 0.000000 0.010000 ( 0.011389)
simple 0.010000 0.000000 0.010000 ( 0.011574)
template 0.020000 0.000000 0.020000 ( 0.011865)
regexp 0.010000 0.000000 0.010000 ( 0.010806)
addressable 0.000000 0.000000 0.000000 ( 0.009143)
-------------------------------------- total: 0.070000sec
user system total real
sinatra 0.020000 0.000000 0.020000 ( 0.012456)
rails 0.010000 0.010000 0.020000 ( 0.012787)
simple 0.010000 0.000000 0.010000 ( 0.010509)
template 0.010000 0.000000 0.010000 ( 0.010992)
regexp 0.010000 0.000000 0.010000 ( 0.012537)
addressable 0.010000 0.000000 0.010000 ( 0.013029)
Matching with two captures (one splat, one normal):
Rehearsal -----------------------------------------------
sinatra 0.040000 0.000000 0.040000 ( 0.042797)
rails 0.050000 0.010000 0.060000 ( 0.052460)
simple 0.040000 0.000000 0.040000 ( 0.046566)
template 0.050000 0.000000 0.050000 ( 0.051224)
regexp 0.050000 0.010000 0.060000 ( 0.054078)
addressable 5.360000 0.290000 5.650000 ( 5.678254)
-------------------------------------- total: 5.900000sec
user system total real
sinatra 0.030000 0.000000 0.030000 ( 0.036009)
rails 0.030000 0.010000 0.040000 ( 0.033236)
simple 0.040000 0.000000 0.040000 ( 0.035945)
template 0.030000 0.000000 0.030000 ( 0.036183)
regexp 0.040000 0.000000 0.040000 ( 0.040806)
addressable 5.360000 0.310000 5.670000 ( 5.686319)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment