Skip to content

Commit

Permalink
Print names of failed benchmarks at bottom for visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
rwstauner committed Jan 22, 2024
1 parent 7027af3 commit 52535d0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion run_benchmarks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -594,4 +594,10 @@ def run_benchmarks(ruby:, ruby_description:, categories:, name_filters:, out_pat
puts out_graph_path
end

exit(bench_failures.empty? ? 0 : 1)
if !bench_failures.empty?
puts "\nFailed benchmarks:"
bench_failures.each do |name, data|
puts " #{name}: #{data.keys.join(", ")}"
end
exit(1)
end

0 comments on commit 52535d0

Please sign in to comment.