Skip to content

fix(benchmark): exclude emit stage from compilation total#4528

Open
Copilot wants to merge 1 commit into
mainfrom
copilot/exclude-emit-stage-from-benchmark
Open

fix(benchmark): exclude emit stage from compilation total#4528
Copilot wants to merge 1 commit into
mainfrom
copilot/exclude-emit-stage-from-benchmark

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jun 1, 2026

The benchmark total metric included emit time, meaning adding more emitters would inflate it — making it an unreliable signal for compiler performance regressions.

Changes

  • packages/benchmark/src/run.ts: Always recompute runtime.total as loader + resolver + checker + validation + linter, unconditionally excluding emit.total. Previously, the total was only recomputed as a fallback when the compiler didn't set it, and even then included emit.

Emit data is still captured in stats.runtime.emit and surfaced in output tables — it's just no longer factored into the total compilation metric.

Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
@timotheeguerin timotheeguerin marked this pull request as ready for review June 1, 2026 18:53
@azure-sdk
Copy link
Copy Markdown
Collaborator

No changes needing a change description found.

@azure-sdk
Copy link
Copy Markdown
Collaborator

You can try these changes here

🛝 Playground 🌐 Website

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants