From df4588f18477cb83248c6f3b82f913f68ac4234f Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Sat, 16 Nov 2024 17:50:13 +0000 Subject: [PATCH] CI: Push benchmark results of ad-hoc benchmarks to dedicated JSON This commit modifies the manually triggered benchmarking workflow `bench_ec2_any.yml` to push the benchmarking results in a special file `adhoc_bench.json`. Signed-off-by: Hanno Becker --- .github/workflows/bench_ec2_any.yml | 1 + .github/workflows/bench_ec2_reusable.yml | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/bench_ec2_any.yml b/.github/workflows/bench_ec2_any.yml index 57fd3c96f..4c06b2259 100644 --- a/.github/workflows/bench_ec2_any.yml +++ b/.github/workflows/bench_ec2_any.yml @@ -59,4 +59,5 @@ jobs: bench_extra_args: ${{ inputs.bench_extra_args }} compiler: ${{ inputs.compiler }} additional_packages: ${{ inputs.additional_packages }} + json_filename: adhoc_bench.json secrets: inherit diff --git a/.github/workflows/bench_ec2_reusable.yml b/.github/workflows/bench_ec2_reusable.yml index 81c28739f..71a4e5241 100644 --- a/.github/workflows/bench_ec2_reusable.yml +++ b/.github/workflows/bench_ec2_reusable.yml @@ -41,6 +41,10 @@ on: type: boolean description: Indicates if results should be pushed to github pages default: false + json_filename: + description: Name of JSON file to put benchmark resuits into + required: false + default: "output.json" verbose: description: Determine for the log verbosity type: boolean @@ -150,6 +154,7 @@ jobs: nix-cache: false nix-verbose: ${{ inputs.verbose }} name: ${{ inputs.name }} (${{ inputs.compiler }}) + json_filename: ${{ inputs.json_filename }} cflags: ${{ inputs.cflags }} archflags: ${{ inputs.archflags }} opt: ${{ inputs.opt }}