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

Function printResults

scripts/bench/stats.js:96–110  ·  view source on GitHub ↗
(localResults, remoteMasterResults)

Source from the content-addressed store, hash-verified

94}
95
96function printResults(localResults, remoteMasterResults) {
97 const head = [''];
98 if (remoteMasterResults) {
99 head.push(chalk.yellow.bold('Remote (Merge Base)'));
100 }
101 if (localResults) {
102 head.push(chalk.green.bold('Local (Current Branch)'));
103 }
104 if (localResults && remoteMasterResults) {
105 head.push('');
106 }
107 const table = new Table({head});
108 addBenchmarkResults(table, localResults, remoteMasterResults);
109 console.log(table.toString());
110}
111
112module.exports = printResults;

Callers 3

runLocalBenchmarksFunction · 0.70
runRemoteBenchmarksFunction · 0.70
compareLocalToMasterFunction · 0.70

Calls 3

addBenchmarkResultsFunction · 0.85
pushMethod · 0.65
toStringMethod · 0.65

Tested by

no test coverage detected