angular/scripts/benchmarks
Paul Gschwendtner 17a95dac22 build: resolve benchmark compare SHA from PR branch or upstream remote (#50764)
If we try to resolve the benchmark compare ref (which may be just
`main`), we are just looking inside the PR branch- but that may
not include the `main` SHA. i.e. it's possible to run a comparison
where the PR is slightly behind of the `main` branch, or a comparison
commit from a different branch is used.

We fix this/ and simplify the logic by resolving the SHAs directly in
the TypeScript code, instead of relying on the rather brittle Bash.

Note that current solution still works, but we sometimes may not be able
to resolve to an actual SHA- causing issues as in 864bd72cb2

PR Close #50764
2023-06-19 12:54:54 +00:00
..
index.mts build: resolve benchmark compare SHA from PR branch or upstream remote (#50764) 2023-06-19 12:54:54 +00:00
README.md
results.mts build: more concise markdown output for benchmark compare results 2023-06-19 14:10:31 +02:00
targets.mts
utils.mts

Benchmarks script

This folder contains a convenience script for running benchmarks and performing comparisons. It can be run via yarn benchmarks. See command line help for possible commands.

The benchmark script is used in conjunction with the benchmark compare GitHub actions workflow, allowing organization members to initiate a benchmark comparison via a GitHub comment in a PR.

Docs

See the benchmark documentation.