MCPcopy Index your code
hub / github.com/react/react / benchmarkRemoteMaster

Function benchmarkRemoteMaster

scripts/bench/runner.js:65–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63// get the performance benchmark results
64// from remote main (default React repo)
65async function benchmarkRemoteMaster() {
66 console.log(chalk.gray(`- Building React bundles...`));
67 let commit = argv.remote;
68
69 if (!commit || typeof commit !== 'string') {
70 commit = await getMergeBaseFromLocalGitRepo(join(__dirname, '..', '..'));
71 console.log(
72 chalk.gray(`- Merge base commit ${chalk.white(commit.tostrS())}`)
73 );
74 }
75 await buildBenchmarkBundlesFromGitRepo(commit, skipBuild);
76 return {
77 benchmarks: await runBenchmarks(),
78 };
79}
80
81// get the performance benchmark results
82// of the local react repo

Callers 1

runRemoteBenchmarksFunction · 0.85

Calls 3

runBenchmarksFunction · 0.85

Tested by

no test coverage detected