Skip to content

Commit

Permalink
Print YJIT compile time in results
Browse files Browse the repository at this point in the history
How fast YJIT compile is a very important performance
characteristic, we should keep an eye on it.
  • Loading branch information
byroot committed Aug 29, 2024
1 parent 59b7f86 commit 37d80b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions harness/harness-common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ def return_results(warmup_iterations, bench_iterations)
puts "outlined_code_size: #{formatted_stats[:outlined_code_size]}"
puts "code_region_size: #{formatted_stats[:code_region_size]}"
puts "yjit_alloc_size: #{formatted_stats[:yjit_alloc_size]}"
if yjit_stats.key?(:compile_time_ns)
puts "yjit_compile_time: %.2fms" % (yjit_stats[:compile_time_ns] / 1_000_000.0).round(2)
end
end

write_json_file(yjit_bench_results)
Expand Down

0 comments on commit 37d80b1

Please sign in to comment.