Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
byroot committed Aug 29, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 59b7f86 commit 92b33c3
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
@@ -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: #{(yjit_stats[:compile_time_ns] / 1_000_000.0).round(2)}ms"
end
end

write_json_file(yjit_bench_results)

0 comments on commit 92b33c3

Please sign in to comment.