better-benchmark 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@ require 'better-benchmark/bencher'
6
6
 
7
7
  module Benchmark
8
8
 
9
- BETTER_BENCHMARK_VERSION = '0.8.0'
9
+ BETTER_BENCHMARK_VERSION = '0.8.1'
10
10
  DEFAULT_REQUIRED_SIGNIFICANCE = 0.01
11
11
 
12
12
  def self.write_realtime( data_dir, &block )
@@ -53,7 +53,7 @@ module Benchmark
53
53
  end
54
54
 
55
55
  def one_run
56
- system "#{@executable} #{ @executable_args.join(' ') }" or exit $?
56
+ system "#{@executable} #{ @executable_args.join(' ') }" or exit $?.to_i
57
57
  end
58
58
 
59
59
  def time_one_run
@@ -73,16 +73,16 @@ module Benchmark
73
73
 
74
74
  @iterations.times do
75
75
  if @test_working_copy
76
- system "git stash -q" or exit $?
76
+ system "git stash -q" or exit $?.to_i
77
77
  else
78
- system "git checkout #{@r1}" or exit $?
78
+ system "git checkout #{@r1}" or exit $?.to_i
79
79
  end
80
80
  times1 << time_one_run
81
81
 
82
82
  if @test_working_copy
83
- system "git stash pop -q" or exit $?
83
+ system "git stash pop -q" or exit $?.to_i
84
84
  else
85
- system "git checkout #{@r2}" or exit $?
85
+ system "git checkout #{@r2}" or exit $?.to_i
86
86
  end
87
87
  times2 << time_one_run
88
88
  end
@@ -92,4 +92,4 @@ module Benchmark
92
92
  )
93
93
  end
94
94
  end
95
- end
95
+ end
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: better-benchmark
3
3
  version: !ruby/object:Gem::Version
4
- hash: 61
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 8
9
- - 1
10
- version: 0.8.1
4
+ prerelease:
5
+ version: 0.8.2
11
6
  platform: ruby
12
7
  authors:
13
8
  - Pistos
@@ -15,8 +10,7 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2010-09-10 00:00:00 -04:00
19
- default_executable:
13
+ date: 2011-12-05 00:00:00 Z
20
14
  dependencies:
21
15
  - !ruby/object:Gem::Dependency
22
16
  name: rsruby
@@ -26,9 +20,6 @@ dependencies:
26
20
  requirements:
27
21
  - - ">="
28
22
  - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
23
  version: "0"
33
24
  type: :runtime
34
25
  version_requirements: *id001
@@ -50,7 +41,6 @@ files:
50
41
  - lib/better-benchmark/bencher.rb
51
42
  - lib/better-benchmark/comparison-partial.rb
52
43
  - bin/bbench
53
- has_rdoc: true
54
44
  homepage: http://github.com/Pistos/better-benchmark
55
45
  licenses: []
56
46
 
@@ -64,23 +54,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
64
54
  requirements:
65
55
  - - ">="
66
56
  - !ruby/object:Gem::Version
67
- hash: 3
68
- segments:
69
- - 0
70
57
  version: "0"
71
58
  required_rubygems_version: !ruby/object:Gem::Requirement
72
59
  none: false
73
60
  requirements:
74
61
  - - ">="
75
62
  - !ruby/object:Gem::Version
76
- hash: 3
77
- segments:
78
- - 0
79
63
  version: "0"
80
64
  requirements:
81
65
  - "The R project: http://www.r-project.org/"
82
66
  rubyforge_project: better-benchmark
83
- rubygems_version: 1.3.7
67
+ rubygems_version: 1.8.8
84
68
  signing_key:
85
69
  specification_version: 3
86
70
  summary: Statistically correct benchmarking for Ruby.