benchmark_driver 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +4 -0
- data/exe/benchmark-driver +6 -5
- data/lib/benchmark/driver/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 37efb4b8012a19e28858b7b3d34126c769fffe51a0216f167bf1b1319aa236b2
|
4
|
+
data.tar.gz: 535378addbcfe89f7a64897110880b6cb287ac24339eb9f163b0751362490fcb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8049e4ca621f08751de795fa936c3efa1cb351998cc81b55fc47cb832489df4a911d4ef476d01f9d90a9b140b395e64a1b87332a6519bd5c606d72b94fd5c1a7
|
7
|
+
data.tar.gz: 85465c2501b332474513a9b48eb3f389ed31ab00bd1fdfc363eed517864264e2126e3f5eb08fa535534ee22d08f3c0ef32507ea16f0555ead5c252f74ceaa946
|
data/CHANGELOG.md
CHANGED
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
|
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,
|
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 (
|
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 |
|
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|
|
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
|
+
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.
|
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
|