Skip to content

Improve typing of benchmark functions#53322

Closed
rubennorte wants to merge 2 commits into
facebook:mainfrom
rubennorte:export-D80404121
Closed

Improve typing of benchmark functions#53322
rubennorte wants to merge 2 commits into
facebook:mainfrom
rubennorte:export-D80404121

Conversation

@rubennorte
Copy link
Copy Markdown
Contributor

Summary:
Changelog: [internal]

This changes the types for benchmark functions to improve safety:

  1. It makes the return object be an object instead of an interface, to catch when overriddenDuration is misspelled.
  2. It makes the function always synchronous, as asynchronous tests aren't supported in Fantom (even though they are in tinybench).

Differential Revision: D80404121

@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 Aug 18, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D80404121

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D80404121

Differential Revision: D80400268
Summary:
Pull Request resolved: facebook#53322

Changelog: [internal]

This changes the types for benchmark functions to improve safety:
1. It makes the return object be an object instead of an interface, to catch when `overriddenDuration` is misspelled.
2. It makes the function always synchronous, as asynchronous tests aren't supported in Fantom (even though they are in `tinybench`).

Reviewed By: rshest

Differential Revision: D80404121
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D80404121

1 similar comment
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D80404121

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Aug 18, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 6c37b5b.

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. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants