Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion run_benchmarks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,8 @@ def run_benchmarks(ruby:, ruby_description:, categories:, name_filters:, out_pat
result = check_call(cmd.shelljoin, env: env, raise_error: false)

if result[:success]
bench_data[bench_name] = JSON.parse(File.read result_json_path).tap do
bench_data[bench_name] = JSON.parse(File.read(result_json_path)).tap do |json|
json["command_line"] = cmd.shelljoin
File.unlink(result_json_path)
end
else
Expand Down Expand Up @@ -590,6 +591,7 @@ def run_benchmarks(ruby:, ruby_description:, categories:, name_filters:, out_pat
# Print CSV and PNG file names
puts
puts "Output:"
puts out_json_path
puts out_tbl_path
if args.graph
require_relative 'misc/graph'
Expand Down
Loading