Skip to content

Add 'testWithArg' to Fantom benchmarking API#52831

Closed
rshest wants to merge 1 commit into
facebook:mainfrom
rshest:export-D78970312
Closed

Add 'testWithArg' to Fantom benchmarking API#52831
rshest wants to merge 1 commit into
facebook:mainfrom
rshest:export-D78970312

Conversation

@rshest
Copy link
Copy Markdown
Contributor

@rshest rshest commented Jul 25, 2025

Summary:

Changelog

[Internal] -

The corresponding testWithArg API is similar to the existing test one for the Fantom benchmarks, except it would allow to run the same test several times in a parametrized manner, with the set of parameters specified as an array (for now, of numbers).

This allows to easily implement testing patterns such as we have in a View benchmark test, whereas we have a mostly duplicated test body doing a similar thing with 100, 1000, 1500 view component instances etc.

Differential Revision: D78970312

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

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@rshest rshest force-pushed the export-D78970312 branch from 2fdf2a0 to 05de30c Compare July 25, 2025 13:21
@rshest rshest force-pushed the export-D78970312 branch from 05de30c to facd648 Compare July 25, 2025 13:48
@rshest rshest force-pushed the export-D78970312 branch from facd648 to dff8422 Compare July 25, 2025 13:51
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@rshest rshest force-pushed the export-D78970312 branch from dff8422 to aa99a6c Compare July 25, 2025 13:51
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

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

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

@rshest rshest force-pushed the export-D78970312 branch from aa99a6c to ce8ef57 Compare July 25, 2025 13:53
@rshest rshest force-pushed the export-D78970312 branch from ce8ef57 to 9dd17f1 Compare July 25, 2025 14:25
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@rshest rshest force-pushed the export-D78970312 branch from 9dd17f1 to 9a206c5 Compare July 25, 2025 14:30
Summary:

# Changelog
[Internal] - 

The corresponding `testWithArg` API is similar to the existing `test` one for the Fantom benchmarks, except it would allow to run the same test several times in a parametrized manner, with the set of parameters specified as an array (for now, of numbers).

This allows to easily implement testing patterns such as we have in a View benchmark test, whereas we have a mostly duplicated test body doing a similar thing with 100, 1000, 1500 view component instances etc.

Reviewed By: rubennorte

Differential Revision: D78970312
@rshest rshest force-pushed the export-D78970312 branch from 9a206c5 to dfdfac3 Compare July 25, 2025 14:34
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

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

This pull request has been merged in c5bb31c.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @rshest in c5bb31c

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

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.

3 participants