summaryrefslogtreecommitdiff
path: root/benchmark/driver.rb
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/driver.rb')
-rw-r--r--benchmark/driver.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/benchmark/driver.rb b/benchmark/driver.rb
index 2de699cb1d..dd6e1bf597 100644
--- a/benchmark/driver.rb
+++ b/benchmark/driver.rb
@@ -45,8 +45,14 @@ class BenchmarkDriver
e.strip!
next if e.empty?
- v = `#{e} -v`.chomp
- v.sub!(/ patchlevel \d+/, '')
+ if /(.+)::(.+)/ =~ e
+ # ex) ruby-a::/path/to/ruby-a
+ v = $1.strip
+ e = $2
+ else
+ v = `#{e} -v`.chomp
+ v.sub!(/ patchlevel \d+/, '')
+ end
[e, v]
}.compact