summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--benchmark/driver.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/benchmark/driver.rb b/benchmark/driver.rb
index eb976b4a90..a4f09b105f 100644
--- a/benchmark/driver.rb
+++ b/benchmark/driver.rb
@@ -153,7 +153,9 @@ class BenchmarkDriver
numformat = " %1$*2$.3f"
end
- name_width ||= @results.map {|v,*| v.size}.max
+ name_width ||= @results.map {|v, result|
+ v.size + (case v; when /^vm1_/; @loop_wl1; when /^vm2_/; @loop_wl2; end ? 1 : 0)
+ }.max
minwidth ||= 7
width = @execs.map{|(_, v)| [v.size, minwidth].max}