public
Description: Benchmarking suite for (J)Ruby on Rails
Homepage: http://sv-on-air.blogspot.com
Clone URL: git://github.com/sv/rorbench.git
rorbench / README.benchmarking
100644 29 lines (21 sloc) 1.294 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
= 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`