diff --git a/run_benchmarks.rb b/run_benchmarks.rb index 2047cb1d..bf0ff1dd 100755 --- a/run_benchmarks.rb +++ b/run_benchmarks.rb @@ -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 @@ -590,7 +591,7 @@ def run_benchmarks(ruby:, ruby_description:, categories:, name_filters:, out_pat # Print CSV and PNG file names puts puts "Output:" -puts out_tbl_path +puts out_json_path if args.graph require_relative 'misc/graph' out_graph_path = output_path + ".png"