public
Description: Statistically correct benchmarking for Ruby.
Homepage:
Clone URL: git://github.com/Pistos/better-benchmark.git
Pistos (author)
Wed Feb 11 06:41:19 -0800 2009
commit  d59a8aabce08c604ec1b58308a34002a25c048af
tree    5a85c4cf0a927bb5f67c57f3ebf5f8616ae8acb3
parent  10bbdf6981c7bd752d17260e3ae76d7a81a38d9f
better-benchmark / README
100644 35 lines (24 sloc) 0.692 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
30
31
32
33
34
35
## 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