public
Description: Statistically correct benchmarking for Ruby.
Homepage:
Clone URL: git://github.com/Pistos/better-benchmark.git
name age message
file .gitignore Wed Feb 11 06:41:19 -0800 2009 Added .gitignore to ignore built gems. [Pistos]
file LICENCE Wed Feb 11 06:36:06 -0800 2009 Added LICENCE file. [Pistos]
file README Thu May 29 20:07:09 -0700 2008 Updated example and README to use Benchmark.rep... [Pistos]
file better-benchmark.gemspec Wed Feb 11 06:40:12 -0800 2009 Added gemspec. [Pistos]
file example.rb Wed Feb 11 06:41:09 -0800 2009 Added "require 'rubygems'". [Pistos]
directory lib/ Wed Feb 11 06:35:52 -0800 2009 Marked version number. [Pistos]
file run-example Tue May 20 06:06:07 -0700 2008 Added a run-example binary which sets the R_HOM... [Pistos]
README
## Dependencies

The R Project: http://www.r-project.org/
rsruby: http://web.kuicr.kyoto-u.ac.jp/~alexg/rsruby/

## Usage

result = Benchmark.compare_realtime {
  do_something_one_way
}.with {
  do_it_another_way
}
Benchmark.report_on result

See also example.rb for a more comprehensive example.

## Example Output

....................
Set 1 mean: 0.484 s
Set 1 std dev: 0.098
Set 2 mean: 0.469 s
Set 2 std dev: 0.088
p.value: 0.601661885634415
W: 220.0
The difference (-3.2%) IS NOT statistically significant.

## Help, etc.

irc.freenode.net#mathetes or http://mibbit.com/?server=irc.freenode.net&channel=%23mathetes

## Repository

git clone git://github.com/Pistos/better-benchmark.git