Update benchmark automation based on initial results (#8165)

First, a simple fix: we don't need to track macOS benchmark data over
time really, and it's nice to not pay the (huge) cost overhead of the
macOS GitHub runners. Runners are too noisy to give us interesting Apple
silicon performance data really, we're mostly looking at trends over
time, and focusing on Linux is fine for that.

The larger change is to restructure how we organize the benchmarks in
the JSON file we upload. The documentation doesn't seem to have caught
up with the new `v1` schema, but it lets us better model the
parameterization we want. While doing this, we also _sharply_ compress
the benchmark name so that it works (much) better with the bencher.dev
UI.

The result is that the compile benchmarks are named `<phase>/<size>`.
Then the particular pattern and the language are "parameters". The
meaning of "parameters" are the ones that make sense to display in a
single plot, with meaningful comparison between the lines. Both phase
and size vary by many orders of magnitude, and so don't work as
parameters. But seeing how the different shaped patterns and the
different language compare at the same phase and size works well.

The prelude benchmark follows a similar pattern, named `prelude` and the
different amounts of import as an `import` parameter.

Once this lands, I'll upgrade the project on bencher.dev to v1, and
re-backfill everything from the stored artifacts.

Assisted-by: Antigravity with Gemini
This commit is contained in:
Chandler Carruth authored and GitHub committed 2026-11-24 00:32:29 +00:00
1 parent 30516f07b5
commit f12a356c28
4 files changed
+376 -129

No files matched your search

+2 -5
View File
@@ -50,14 +50,11 @@ jobs:
strategy:
fail-fast: false
matrix:
runner: ['ubuntu-22.04', 'ubuntu-22.04-arm', 'macos-26']
runner: ['ubuntu-22.04', 'ubuntu-22.04-arm']
tier:
- ${{ (github.event_name == 'workflow_run' && 'nightly') ||
(github.event_name == 'workflow_dispatch' && inputs.tier) ||
'continuous' }}
exclude:
- runner: 'macos-26'
tier: 'continuous'
runs-on: ${{ matrix.runner }}
steps:
- name: Harden Runner
@@ -170,7 +167,7 @@ jobs:
- name: Install Bencher CLI
if: steps.run-bencher.outputs.has_benchmarks == 'true'
uses: bencherdev/bencher@7de3c69a85380826613050826b4bce062be2f07d # v0.6.16
uses: bencherdev/bencher@b2484bc6734c8e6da4fad141bd13527a11da3988 # v0.6.17
- name: Upload results to Bencher
if: steps.run-bencher.outputs.has_benchmarks == 'true'