benchmark_driver 0.10.14 → 0.10.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e8842fe9609d09ce46061bf5ad452219ec98f1b24ef34020698500160e9823cd
4
- data.tar.gz: 69e3714e9bcc55053d198807b17edcc952e6682da5eed337d9a073df85891d79
3
+ metadata.gz: 0e301eeeaf85744b19b38ae2ecff69ff32bc0002d28d08cd99bcb58193a3f54d
4
+ data.tar.gz: 5f045cff2a9c0f66ee206e0855de207f8a181b2fce87da3e139663f0d45db5af
5
5
  SHA512:
6
- metadata.gz: b3c190db1fe084198706797c8d22cb7dba2a077d68e9d02d9466f9c5d26c206a4c03d3db6824d8c2ee3c09e90caf32cbcdd8c8067e75f254bf7c2078d45054f9
7
- data.tar.gz: 3b50ec42bbe545db63347f5379f79f84b5b35b109728c8600725d642f3841098dfde78d820badcdf3a3836f4f26d2a6490e463e671c1c367dcbd3e76eb48e2f9
6
+ metadata.gz: b8af5a176ef54d49de2ce29bbeebfe7b9cd4cf47bf7d01ef2ad10706754685a28b6f6b7484d21037e7de3fc251c975cc22a9c41ca2b3c69da4ec29cff71e7414
7
+ data.tar.gz: ae3c1bfda72c49f2a81b20dcd08ac80a3de4e48e8af757c8f6d01d5c901e97e73768e5e7c9918d03579fec80205d9b7d1be0800acb6a58eb42d86900f147a781
@@ -1,3 +1,7 @@
1
+ # v0.10.15
2
+
3
+ - Make `Benchmark.driver` take `repeat_count:` keyword argument
4
+
1
5
  # v0.10.14
2
6
 
3
7
  - Fix a bug that large time is shown as better in time runner
@@ -26,13 +26,14 @@ module BenchmarkDriver
26
26
 
27
27
  # @param [String,NilClass] output
28
28
  # @param [String,NilClass] runner
29
- def initialize(output: nil, runner: nil)
29
+ def initialize(output: nil, runner: nil, repeat_count: 1)
30
30
  @prelude = ''
31
31
  @loop_count = nil
32
32
  @jobs = []
33
33
  @config = BenchmarkDriver::Config.new
34
34
  @config.output_type = output.to_s if output
35
35
  @config.runner_type = runner.to_s if runner
36
+ @config.repeat_count = Integer(repeat_count)
36
37
  @executables = []
37
38
  end
38
39
 
@@ -1,3 +1,3 @@
1
1
  module BenchmarkDriver
2
- VERSION = '0.10.14'
2
+ VERSION = '0.10.15'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: benchmark_driver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.14
4
+ version: 0.10.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun