Skip to content

Skip reporting benchmark results in test mode#56435

Closed
rubennorte wants to merge 1 commit intofacebook:mainfrom
rubennorte:export-D100795458
Closed

Skip reporting benchmark results in test mode#56435
rubennorte wants to merge 1 commit intofacebook:mainfrom
rubennorte:export-D100795458

Conversation

@rubennorte
Copy link
Copy Markdown
Contributor

Summary:
Avoid printing the result summary table when benchmarks are executed in
test mode. In test mode, benchmarks run only a single iteration with no
warmup, so the timing results are not meaningful for comparison.

The per-suite results table (console.table) was already skipped in test
mode, but the benchmark result was still reported to the runner, which
could cause the cross-variant comparison table to be printed with
meaningless data. This change skips the reportBenchmarkResult call
entirely when running in test mode.

Changelog: [Internal]

Differential Revision: D100795458

Summary:
Avoid printing the result summary table when benchmarks are executed in
test mode. In test mode, benchmarks run only a single iteration with no
warmup, so the timing results are not meaningful for comparison.

The per-suite results table (console.table) was already skipped in test
mode, but the benchmark result was still reported to the runner, which
could cause the cross-variant comparison table to be printed with
meaningless data. This change skips the reportBenchmarkResult call
entirely when running in test mode.

Changelog: [Internal]

Differential Revision: D100795458
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 14, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Apr 14, 2026

@rubennorte has exported this pull request. If you are a Meta employee, you can view the originating Diff in D100795458.

@meta-codesync meta-codesync bot closed this in c482b93 Apr 15, 2026
@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @rubennorte in c482b93

When will my fix make it into a release? | How to file a pick request?

@facebook-github-tools facebook-github-tools bot added the Merged This PR has been merged. label Apr 15, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Apr 15, 2026

This pull request has been merged in c482b93.

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

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants