summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/driver.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/benchmark/driver.rb b/benchmark/driver.rb
index 36365af..20c8e25 100644
--- a/benchmark/driver.rb
+++ b/benchmark/driver.rb
@@ -381,6 +381,11 @@ if __FILE__ == $0
opt[:execs] << path
}
}
+ o.on('--rbenv [VERSIONS]', 'Specify benchmark targets with rbenv version (vX.X.X;vX.X.X;...)'){|v|
+ v.split(/;/).each{|version|
+ opt[:execs] << "#{version}::#{`RBENV_VERSION='#{version}' rbenv which ruby`.rstrip}"
+ }
+ }
o.on('-d', '--directory [DIRECTORY]', "Benchmark suites directory"){|d|
opt[:dir] = d
}