Skip to content

Commit f6955d8

Browse files
committed
Reorder and relabel stats
1 parent 9567455 commit f6955d8

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

harness-stats/harness.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,16 @@ def run_benchmark(*)
6060
puts
6161
end
6262

63-
show_distribution.call(c_calls, subject: "C method calls")
64-
show_distribution.call(c_blocks, subject: "C method's block calls")
65-
show_distribution.call(rb_calls, subject: "Ruby method calls")
66-
show_distribution.call(rb_blocks, subject: "Ruby method's block calls")
67-
6863
show_distribution.call({
69-
"C method calls" => c_calls.sum(&:last),
70-
"C method's block calls" => c_blocks.sum(&:last),
71-
"Ruby method calls" => rb_calls.sum(&:last),
72-
"Ruby method's block calls" => rb_blocks.sum(&:last),
73-
}, header: 'The overall ratio of each call type')
64+
'C method calls' => c_calls.sum(&:last),
65+
'Ruby method calls' => rb_calls.sum(&:last),
66+
'block calls from C' => c_blocks.sum(&:last),
67+
'block calls from Ruby' => rb_blocks.sum(&:last),
68+
}, header: 'The overall breakdown of each call type')
69+
70+
show_distribution.call(c_calls, subject: 'C method calls')
71+
show_distribution.call(rb_calls, subject: 'Ruby method calls')
72+
show_distribution.call(c_blocks, subject: 'block calls from C')
73+
show_distribution.call(rb_blocks, subject: 'block calls from Ruby')
7474
end
7575
}

0 commit comments

Comments
 (0)