Home / Function/ printResults() — react Function Reference

printResults() — react Function Reference

Architecture documentation for the printResults() function in stats.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  7e3d6848_fbd8_9106_91e2_33421e7ff2ef["printResults()"]
  2c40123c_d029_f3b5_b70a_412fb8cb4b6f["stats.js"]
  7e3d6848_fbd8_9106_91e2_33421e7ff2ef -->|defined in| 2c40123c_d029_f3b5_b70a_412fb8cb4b6f
  248a497d_d5ff_c575_bf7e_c4030daab7d4["addBenchmarkResults()"]
  7e3d6848_fbd8_9106_91e2_33421e7ff2ef -->|calls| 248a497d_d5ff_c575_bf7e_c4030daab7d4
  style 7e3d6848_fbd8_9106_91e2_33421e7ff2ef fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

scripts/bench/stats.js lines 96–110

function printResults(localResults, remoteMasterResults) {
  const head = [''];
  if (remoteMasterResults) {
    head.push(chalk.yellow.bold('Remote (Merge Base)'));
  }
  if (localResults) {
    head.push(chalk.green.bold('Local (Current Branch)'));
  }
  if (localResults && remoteMasterResults) {
    head.push('');
  }
  const table = new Table({head});
  addBenchmarkResults(table, localResults, remoteMasterResults);
  console.log(table.toString());
}

Domain

Subdomains

Frequently Asked Questions

What does printResults() do?
printResults() is a function in the react codebase, defined in scripts/bench/stats.js.
Where is printResults() defined?
printResults() is defined in scripts/bench/stats.js at line 96.
What does printResults() call?
printResults() calls 1 function(s): addBenchmarkResults.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free