Pistos / better-benchmark

Statistically correct benchmarking for Ruby.

This URL has Read+Write access

Pistos (author)
Wed Feb 11 06:41:09 -0800 2009
commit  10bbdf6981c7bd752d17260e3ae76d7a81a38d9f
tree    3a99104e04c1f8b9b9efb6047eb57e175f2b58bd
parent  8f4feaca67625c412fe96db54378f09904581118
name age message
file LICENCE Loading commit data...
file README
file better-benchmark.gemspec
file example.rb
directory lib/
file run-example
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