summaryrefslogtreecommitdiff
path: root/tool/eval.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tool/eval.rb')
-rw-r--r--tool/eval.rb13
1 files changed, 5 insertions, 8 deletions
diff --git a/tool/eval.rb b/tool/eval.rb
index 906ba9c23c..9153573e6e 100644
--- a/tool/eval.rb
+++ b/tool/eval.rb
@@ -1,11 +1,10 @@
+# VM checking and benchmarking code
-require 'rbconfig'
+require './rbconfig'
require 'fileutils'
require 'pp'
-Ruby = ENV['RUBY'] ||
- File.join(Config::CONFIG["bindir"],
- Config::CONFIG["ruby_install_name"] + Config::CONFIG["EXEEXT"])
+Ruby = ENV['RUBY'] || RbConfig.ruby
#
OPTIONS = %w{
@@ -88,7 +87,7 @@ def parse_result data
else
raise "not a data"
end
-
+
end
if /benchmark summary/ =~ line
flag = true
@@ -108,7 +107,6 @@ def calc_each data
end
def calc_stat stats
- stat = []
stats[0].each_with_index{|e, idx|
bm = e[0]
vals = stats.map{|st|
@@ -135,8 +133,7 @@ def stat
}
# pp total
total[0].each_with_index{|e, idx|
- bm = e[0]
- # print "#{bm}\t"
+ # print "#{e[0]}\t"
total.each{|st|
print st[idx][1], "\t"
}