Skip to content

Commit b397cb3

Browse files
authored
Merge pull request #320 from Shopify/print-compile-time
Print YJIT compile time in results
2 parents 59b7f86 + 37d80b1 commit b397cb3

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)