CI: Stop echoing benchmark JSON into the job log libeigen/eigen!3025 Co-authored-by: Rasmus Munk Larsen <rmlarsen@gmail.com>
diff --git a/ci/scripts/run.benchmark.sh b/ci/scripts/run.benchmark.sh index 9d0fd23..9f9eb6a 100755 --- a/ci/scripts/run.benchmark.sh +++ b/ci/scripts/run.benchmark.sh
@@ -82,8 +82,15 @@ outfile="${results_dir}/${bench_name}.json" echo "=== Running ${bench_name} (${reps} repetitions) ===" + # --benchmark_format selects the *console* format and --benchmark_out_format + # the file format; setting the former to json duplicates the whole result set + # into the job log, which overruns GitLab's 4 MB trace cap. The console gets + # the aggregates only; --benchmark_display_aggregates_only does not affect the + # file reporter, so the artifact still carries every repetition. if ! "${bench_exe}" \ - --benchmark_format=json \ + --benchmark_format=console \ + --benchmark_display_aggregates_only=true \ + --benchmark_out_format=json \ --benchmark_out="${outfile}" \ --benchmark_repetitions="${reps}" \ --benchmark_report_aggregates_only=false \