SIGN IN SIGN UP
facebook / react-native UNCLAIMED

A framework for building native applications using React

0 0 0 C++

Add 'testWithArg' to Fantom benchmarking API (#52831)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/52831

# 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

fbshipit-source-id: 504b7aada648c7213ce698f088ac71d9fde8884b
R
Ruslan Shestopalyuk committed
c5bb31c46ea992f451bac6c76bf902582b8b119d
Parent: 3271e57
Committed by Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> on 7/25/2025, 3:53:45 PM