Skip to content

Commit

Permalink
Merge pull request #320 from Shopify/print-compile-time
Browse files Browse the repository at this point in the history
Print YJIT compile time in results
  • Loading branch information
casperisfine authored Aug 29, 2024
2 parents 59b7f86 + 37d80b1 commit b397cb3
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 b397cb3

Please sign in to comment.