diff --git a/packages/react-native/Libraries/Text/__tests__/Text-benchmark-itest.js b/packages/react-native/Libraries/Text/__tests__/Text-benchmark-itest.js
index 5ecfc51a4dc..58d21271417 100644
--- a/packages/react-native/Libraries/Text/__tests__/Text-benchmark-itest.js
+++ b/packages/react-native/Libraries/Text/__tests__/Text-benchmark-itest.js
@@ -17,33 +17,60 @@ import {Text} from 'react-native';
let root;
let testElements: React.MixedElement;
-Fantom.unstable_benchmark.suite('Text').test.each(
- [100, 1000],
- n => `render ${n.toString()} text component instances`,
- () => {
- Fantom.runTask(() => root.render(testElements));
- },
- n => ({
- beforeAll: () => {
- testElements = (
- <>
- {[...Array(n).keys()].map(i => (
- {`Text instance ${i}`}
- ))}
- >
- );
+Fantom.unstable_benchmark
+ .suite('Text')
+ .test.each(
+ [100, 1000],
+ n =>
+ `render ${n.toString()} text component instances with no explicit props`,
+ () => {
+ Fantom.runTask(() => root.render(testElements));
},
- beforeEach: () => {
- root = Fantom.createRoot();
+ n => ({
+ beforeAll: () => {
+ testElements = (
+ <>
+ {[...Array(n).keys()].map(i => (
+
+ ))}
+ >
+ );
+ },
+ beforeEach: () => {
+ root = Fantom.createRoot();
+ },
+ afterEach: () => {
+ root.destroy();
+ },
+ }),
+ )
+ .test.each(
+ [100, 1000],
+ n => `render ${n.toString()} text component instances`,
+ () => {
+ Fantom.runTask(() => root.render(testElements));
},
- afterEach: () => {
- root.destroy();
- },
- }),
-);
+ n => ({
+ beforeAll: () => {
+ testElements = (
+ <>
+ {[...Array(n).keys()].map(i => (
+ {`Text instance ${i}`}
+ ))}
+ >
+ );
+ },
+ beforeEach: () => {
+ root = Fantom.createRoot();
+ },
+ afterEach: () => {
+ root.destroy();
+ },
+ }),
+ );