summaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/report.rb4
-rw-r--r--benchmark/runc.rb4
2 files changed, 2 insertions, 6 deletions
diff --git a/benchmark/report.rb b/benchmark/report.rb
index e931966cca..7aa852fc85 100644
--- a/benchmark/report.rb
+++ b/benchmark/report.rb
@@ -24,9 +24,7 @@ def exec_command type, file, w
end
def benchmark cmd
- rubybin = ENV['RUBY'] || File.join(
- RbConfig::CONFIG["bindir"],
- RbConfig::CONFIG["ruby_install_name"] + RbConfig::CONFIG["EXEEXT"])
+ rubybin = ENV['RUBY'] || RbConfig.ruby
IO.popen(rubybin, 'r+'){|io|
io.write cmd
diff --git a/benchmark/runc.rb b/benchmark/runc.rb
index ec1d36a61b..97c5cef045 100644
--- a/benchmark/runc.rb
+++ b/benchmark/runc.rb
@@ -5,9 +5,7 @@
require 'benchmark'
require 'rbconfig'
-$rubybin = ENV['RUBY'] || File.join(
- RbConfig::CONFIG["bindir"],
- RbConfig::CONFIG["ruby_install_name"] + RbConfig::CONFIG["EXEEXT"])
+$rubybin = ENV['RUBY'] || RbConfig.ruby
def runfile file
puts file