benchmark_driver 0.4.4 → 0.4.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: c0ee94f8c79245195b7f99fd9df77f485fe65be5
4
- data.tar.gz: 3796376a848335e72ddd3154526d0ced4cc3cc8c
2
+ SHA256:
3
+ metadata.gz: 37efb4b8012a19e28858b7b3d34126c769fffe51a0216f167bf1b1319aa236b2
4
+ data.tar.gz: 535378addbcfe89f7a64897110880b6cb287ac24339eb9f163b0751362490fcb
5
5
  SHA512:
6
- metadata.gz: 630d4342c798cf476c2e603a07d9fa0047e2437892a3da2a56dd2f5f834cf906814c822d9165f895e514b221eb5ef6426fc605cce8bf88f27d34802b9fa3281a
7
- data.tar.gz: 332d676db6aba74c977ba79aea71f722af25ad9c66b3b31ee6f44df266964a1ec398f746a560defa2ade94ce2bc3bfd939c80bd086dac576ac73ba1f62774748
6
+ metadata.gz: 8049e4ca621f08751de795fa936c3efa1cb351998cc81b55fc47cb832489df4a911d4ef476d01f9d90a9b140b395e64a1b87332a6519bd5c606d72b94fd5c1a7
7
+ data.tar.gz: 85465c2501b332474513a9b48eb3f389ed31ab00bd1fdfc363eed517864264e2126e3f5eb08fa535534ee22d08f3c0ef32507ea16f0555ead5c252f74ceaa946
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # v0.4.5
2
+
3
+ - Allow specifying arguments for ruby executables
4
+
1
5
  # v0.4.4
2
6
 
3
7
  - Add `--bundler` option to run benchmark with fixed gems
data/exe/benchmark-driver CHANGED
@@ -9,19 +9,20 @@ require 'yaml'
9
9
  options = {}
10
10
  args = OptionParser.new do |o|
11
11
  o.banner = "Usage: #{File.basename($0, '.*')} [options] [YAML]"
12
- o.on('-e', '--executables [EXECS]', 'Ruby executables (e1::path1; e2::path2; e3::path3;...)') do |e|
12
+ o.on('-e', '--executables [EXECS]', 'Ruby executables (e1::path1,arg1,...; e2::path2,arg2;...)') do |e|
13
13
  options[:execs] ||= []
14
14
  e.split(';').each do |name_path|
15
15
  name, path = name_path.split('::', 2)
16
- options[:execs] << Benchmark::Driver::Configuration::Executable.new(name, [path || name])
16
+ options[:execs] << Benchmark::Driver::Configuration::Executable.new(name, path ? path.split(',') : [name])
17
17
  end
18
18
  end
19
- o.on('--rbenv [VERSIONS]', 'Ruby executables in rbenv (2.3.5;2.4.2;...)') do |r|
19
+ o.on('--rbenv [VERSIONS]', 'Ruby executables in rbenv (x.x.x,arg1,...;y.y.y,arg2,...;...)') do |r|
20
20
  options[:execs] ||= []
21
- r.split(';').each do |version|
21
+ r.split(';').each do |spec|
22
+ version, *args = spec.split(',')
22
23
  path = `RBENV_VERSION='#{version}' rbenv which ruby`.rstrip
23
24
  abort "Failed to execute 'rbenv which ruby'" unless $?.success?
24
- options[:execs] << Benchmark::Driver::Configuration::Executable.new(version, [path])
25
+ options[:execs] << Benchmark::Driver::Configuration::Executable.new(version, [path, *args])
25
26
  end
26
27
  end
27
28
  o.on('-c', '--compare', 'Compare results (currently only supported in ips output)') do |v|
@@ -1,5 +1,5 @@
1
1
  module Benchmark
2
2
  module Driver
3
- VERSION = '0.4.4'
3
+ VERSION = '0.4.5'
4
4
  end
5
5
  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.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  version: '0'
114
114
  requirements: []
115
115
  rubyforge_project:
116
- rubygems_version: 2.6.13
116
+ rubygems_version: 2.7.3
117
117
  signing_key:
118
118
  specification_version: 4
119
119
  summary: Fully-featured accurate benchmark driver for Ruby