better-benchmark 0.8.2 → 0.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +10 -0
- data/lib/better-benchmark/bencher.rb +2 -2
- metadata +36 -36
data/README.md
CHANGED
@@ -7,6 +7,16 @@ Statistically correct benchmarking for Ruby.
|
|
7
7
|
* [The R Project](http://www.r-project.org/)
|
8
8
|
* [rsruby](http://github.com/alexgutteridge/rsruby)
|
9
9
|
|
10
|
+
## Installation
|
11
|
+
|
12
|
+
# Linux:
|
13
|
+
gem install better-benchmark -- --with-R-dir=/usr/lib/R
|
14
|
+
# OSX:
|
15
|
+
gem install better-benchmark -- --with-R-dir=/Library/Frameworks/R.framework/Resources
|
16
|
+
|
17
|
+
Change the argument of `--with-R-dir` to whatever is appropriate for your system
|
18
|
+
if either of the above don't work.
|
19
|
+
|
10
20
|
## Usage
|
11
21
|
|
12
22
|
### Comparing code blocks
|
@@ -75,14 +75,14 @@ module Benchmark
|
|
75
75
|
if @test_working_copy
|
76
76
|
system "git stash -q" or exit $?.to_i
|
77
77
|
else
|
78
|
-
system "git checkout #{@r1}" or exit $?.to_i
|
78
|
+
system "git checkout -q #{@r1}" or exit $?.to_i
|
79
79
|
end
|
80
80
|
times1 << time_one_run
|
81
81
|
|
82
82
|
if @test_working_copy
|
83
83
|
system "git stash pop -q" or exit $?.to_i
|
84
84
|
else
|
85
|
-
system "git checkout #{@r2}" or exit $?.to_i
|
85
|
+
system "git checkout -q #{@r2}" or exit $?.to_i
|
86
86
|
end
|
87
87
|
times2 << time_one_run
|
88
88
|
end
|
metadata
CHANGED
@@ -1,38 +1,41 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: better-benchmark
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.8.3
|
4
5
|
prerelease:
|
5
|
-
version: 0.8.2
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Pistos
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-08-29 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: rsruby
|
17
|
-
|
18
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
19
17
|
none: false
|
20
|
-
requirements:
|
21
|
-
- -
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version:
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
24
22
|
type: :runtime
|
25
|
-
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
26
30
|
description: Statistically correct benchmarking for Ruby.
|
27
31
|
email: betterbenchmark dot pistos at purepistos dot net
|
28
|
-
executables:
|
32
|
+
executables:
|
29
33
|
- bbench
|
30
34
|
extensions: []
|
31
|
-
|
32
|
-
extra_rdoc_files:
|
35
|
+
extra_rdoc_files:
|
33
36
|
- README.md
|
34
37
|
- LICENCE
|
35
|
-
files:
|
38
|
+
files:
|
36
39
|
- README.md
|
37
40
|
- LICENCE
|
38
41
|
- example.rb
|
@@ -43,30 +46,27 @@ files:
|
|
43
46
|
- bin/bbench
|
44
47
|
homepage: http://github.com/Pistos/better-benchmark
|
45
48
|
licenses: []
|
46
|
-
|
47
49
|
post_install_message:
|
48
50
|
rdoc_options: []
|
49
|
-
|
50
|
-
require_paths:
|
51
|
+
require_paths:
|
51
52
|
- lib
|
52
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
53
54
|
none: false
|
54
|
-
requirements:
|
55
|
-
- -
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
version:
|
58
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
55
|
+
requirements:
|
56
|
+
- - ! '>='
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: '0'
|
59
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
60
|
none: false
|
60
|
-
requirements:
|
61
|
-
- -
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
version:
|
64
|
-
requirements:
|
65
|
-
-
|
61
|
+
requirements:
|
62
|
+
- - ! '>='
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '0'
|
65
|
+
requirements:
|
66
|
+
- ! 'The R project: http://www.r-project.org/'
|
66
67
|
rubyforge_project: better-benchmark
|
67
|
-
rubygems_version: 1.8.
|
68
|
+
rubygems_version: 1.8.18
|
68
69
|
signing_key:
|
69
70
|
specification_version: 3
|
70
71
|
summary: Statistically correct benchmarking for Ruby.
|
71
72
|
test_files: []
|
72
|
-
|