Make default mode used for benchmarks more obvious (#51446)

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

See title

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D74958927

fbshipit-source-id: 245397c6e9a89a40e5c1260fcd624e5f6b9f7c8d
This commit is contained in:
Nick Lefever
2025-05-19 03:06:53 -07:00
committed by Facebook GitHub Bot
parent 0769ddf85b
commit b1772de409
+4 -1
View File
@@ -56,6 +56,9 @@ const FANTOM_BENCHMARK_FILENAME_RE = /[Bb]enchmark-itest\./g;
const FANTOM_BENCHMARK_SUITE_RE =
/\n(Fantom\.)?unstable_benchmark(\s*)\.suite\(/g;
const FANTOM_BENCHMARK_DEFAULT_MODE: FantomTestConfigMode =
FantomTestConfigMode.Optimized;
/**
* Extracts the Fantom configuration from the test file, specified as part of
* the docblock comment. E.g.:
@@ -123,7 +126,7 @@ export default function getFantomTestConfig(
FANTOM_BENCHMARK_FILENAME_RE.test(testPath) ||
FANTOM_BENCHMARK_SUITE_RE.test(testContents)
) {
config.mode = FantomTestConfigMode.Optimized;
config.mode = FANTOM_BENCHMARK_DEFAULT_MODE;
}
}