Pistos / better-benchmark

Statistically correct benchmarking for Ruby.

This URL has Read+Write access

Pistos (author)
Thu Oct 09 06:38:59 -0700 2008
commit  165bbf2c206aec4ef161ca8da1634cd5b2d8c21a
tree    ae23ded2ad27a9b89b4671800c3038849000e07e
parent  5dc1c484a050804465a14351bb08bb8e92ec859d
name age message
file README Loading commit data...
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