public
Description: Benchmarking suite for (J)Ruby on Rails
Homepage: http://sv-on-air.blogspot.com
Clone URL: git://github.com/sv/rorbench.git
Search Repo:
name age message
folder .gitignore Mon Jun 23 06:52:24 -0700 2008 ignore [sv]
folder CHANGES-5.0.3 Fri Jun 06 11:54:51 -0700 2008 init commit of typo with backup script and benc... [sv]
folder MAINTAINERS Fri Jun 06 11:54:51 -0700 2008 init commit of typo with backup script and benc... [sv]
folder MIT-LICENSE Fri Jun 06 11:54:51 -0700 2008 init commit of typo with backup script and benc... [sv]
folder README Fri Jun 06 11:54:51 -0700 2008 init commit of typo with backup script and benc... [sv]
folder README.SIDEBARS Fri Jun 06 11:54:51 -0700 2008 init commit of typo with backup script and benc... [sv]
folder README.benchmarking Sat Aug 23 04:17:09 -0700 2008 update docs [sv]
folder Rakefile Fri Jun 06 11:54:51 -0700 2008 init commit of typo with backup script and benc... [sv]
folder TODO.MULTIUSERS Fri Jun 06 11:54:51 -0700 2008 init commit of typo with backup script and benc... [sv]
folder app/ Thu Jun 26 11:26:19 -0700 2008 .svn cleanup [sv]
folder bin/ Tue Aug 19 10:45:50 -0700 2008 fix graph rendering [sv]
folder config/ Mon Aug 11 08:35:56 -0700 2008 use single db [sv]
folder db/ Thu Jun 26 11:26:19 -0700 2008 .svn cleanup [sv]
folder doc/ Thu Jun 26 11:26:19 -0700 2008 .svn cleanup [sv]
folder installer/ Thu Jun 26 11:26:19 -0700 2008 .svn cleanup [sv]
folder lang/ Thu Jun 26 11:26:19 -0700 2008 .svn cleanup [sv]
folder lib/ Tue Aug 19 15:36:59 -0700 2008 fix docs typos. several cleanups [sv]
folder mongrel.config Tue Jun 10 02:20:52 -0700 2008 add gitignore [sv]
folder public/ Mon Aug 11 08:40:06 -0700 2008 index updated [sv]
folder script/ Thu Jun 26 11:26:19 -0700 2008 .svn cleanup [sv]
folder spec/ Thu Jun 26 11:26:19 -0700 2008 .svn cleanup [sv]
folder test/ Thu Jun 26 11:26:19 -0700 2008 .svn cleanup [sv]
folder themes/ Thu Jun 26 11:26:19 -0700 2008 .svn cleanup [sv]
folder vendor/ Thu Jun 26 11:26:19 -0700 2008 .svn cleanup [sv]
README.benchmarking
= Prepearing =
 * install httperf,gnuplot,imagemagick
 * install mime-types (for reports uploading)

= Running =
You can run benchmark against any ruby on rails server, i.e. mongrel, webrick or both behind nginx =)
Running consists of several steps:
 # Launching   rails server.
    * with embedded rake command `rake bench:start_webrick[path_to_ruby_impl]`
    * with (j)ruby `script/server start -p 8000`
    * `script/process/spawner -p 8000 -i 1`
    * any other way ( by default you shoud run it on `localhost:8000`. `host` can be changed by passing hostname ot ip 
    to rake: `rake bench["rubyforge.org"]
 # Run benchmark. 
     Type `rake bench[host]`. `HOST` is optional parameter(`localhost` by default). You should see some httperf output 
     for some time(we doing 5000 request and several runs). All obtained data by default will be in current dir in file 
     `bench.tsv`
 # View benchmarking results.
     * in plane text format
     * convert to postscript `bin/bench2graph bench.tsv ruby1.8-bench.ps ruby1.8`. First argument: results file, second: 
     name of postscript output file, third: title of output graph.
     * convert to jpeg `bin/tsv2jpeg bench.tsv`

 # Upload benchmark results.
    `rake bench:report`
    

= Details =

You can view all benchmarking tasks with `rake -T bench`