Permalink
Switch branches/tags
Nothing to show
Commits on Jan 4, 2009
  1. Generate target string outside the recognizer loop

    josh authored and jm committed Jan 4, 2009
    Signed-off-by: Jeremy McAnally <jeremymcanally@gmail.com>
  2. Use ActionController::PerformanceTest to organize benchmarks and prof…

    josh authored and jm committed Jan 4, 2009
    …ilings
    
    Signed-off-by: Jeremy McAnally <jeremymcanally@gmail.com>
  3. =~ is a bit faster than String#match

    josh authored and jm committed Jan 4, 2009
    Signed-off-by: Jeremy McAnally <jeremymcanally@gmail.com>
  4. Only compact match captures once

    josh authored and jm committed Jan 4, 2009
    Signed-off-by: Jeremy McAnally <jeremymcanally@gmail.com>
  5. Need to setup dummy controllers

    josh authored and jm committed Jan 4, 2009
    Signed-off-by: Jeremy McAnally <jeremymcanally@gmail.com>
  6. Dyslexia is bad my friends

    jm committed Jan 4, 2009
  7. 30% perf increase by caching controller class when possible

    jm committed Jan 4, 2009
    ~/code/router/vendor/plugins/krauter/benchmarks(master) > ruby recognize.rb
    Rehearsal ------------------------------------------------------
    small set (best):    0.040000   0.000000   0.040000 (  0.035980)
    small set (worst):   0.120000   0.010000   0.130000 (  0.127824)
    large set (best):    0.180000   0.000000   0.180000 (  0.180927)
    large set (worst):   9.120000   0.050000   9.170000 (  9.241206)
    --------------------------------------------- total: 9.520000sec
    
                             user     system      total        real
    small set (best):    0.030000   0.000000   0.030000 (  0.039323)
    small set (worst):   0.090000   0.000000   0.090000 (  0.089193)
    large set (best):    0.090000   0.000000   0.090000 (  0.092770)
    large set (worst):   9.190000   0.040000   9.230000 (  9.304173)
Commits on Jan 3, 2009
  1. Forgot to re-cache recognizers...now they are. These look way better:

    jm committed Jan 3, 2009
    Rehearsal ------------------------------------------------------
    small set (best):    0.050000   0.010000   0.060000 (  0.049336)
    small set (worst):   0.160000   0.000000   0.160000 (  0.169854)
    large set (best):    0.170000   0.010000   0.180000 (  0.184860)
    large set (worst):  12.940000   0.050000  12.990000 ( 13.074686)
    -------------------------------------------- total: 13.390000sec
    
                             user     system      total        real
    small set (best):    0.050000   0.000000   0.050000 (  0.053315)
    small set (worst):   0.130000   0.000000   0.130000 (  0.134474)
    large set (best):    0.100000   0.000000   0.100000 (  0.106628)
    large set (worst):  12.900000   0.070000  12.970000 ( 13.062215)
  2. add some recognize benchmarks

    josh authored and jm committed Jan 3, 2009
    Signed-off-by: Jeremy McAnally <jeremymcanally@gmail.com>
  3. removed rails app dependency so tests can run standalone

    josh authored and jm committed Jan 3, 2009
    Signed-off-by: Jeremy McAnally <jeremymcanally@gmail.com>
Commits on Jan 2, 2009