Skip to content

Commit 37d80b1

Browse files
committed
Print YJIT compile time in results
How fast YJIT compile is a very important performance characteristic, we should keep an eye on it.
1 parent 59b7f86 commit 37d80b1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

harness/harness-common.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ def return_results(warmup_iterations, bench_iterations)
107107
puts "outlined_code_size: #{formatted_stats[:outlined_code_size]}"
108108
puts "code_region_size: #{formatted_stats[:code_region_size]}"
109109
puts "yjit_alloc_size: #{formatted_stats[:yjit_alloc_size]}"
110+
if yjit_stats.key?(:compile_time_ns)
111+
puts "yjit_compile_time: %.2fms" % (yjit_stats[:compile_time_ns] / 1_000_000.0).round(2)
112+
end
110113
end
111114

112115
write_json_file(yjit_bench_results)

0 commit comments

Comments
 (0)