Home / Function/ printResult() — astro Function Reference

printResult() — astro Function Reference

Architecture documentation for the printResult() function in render.js from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  ba74d45c_147c_f921_2c51_faf3d4a148e1["printResult()"]
  3c790668_be1c_58e1_f783_4e3a5b4e3a0d["render.js"]
  ba74d45c_147c_f921_2c51_faf3d4a148e1 -->|defined in| 3c790668_be1c_58e1_f783_4e3a5b4e3a0d
  5859bb26_4e70_6d53_da16_27fa6a682cb2["run()"]
  5859bb26_4e70_6d53_da16_27fa6a682cb2 -->|calls| ba74d45c_147c_f921_2c51_faf3d4a148e1
  style ba74d45c_147c_f921_2c51_faf3d4a148e1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

benchmark/bench/render.js lines 87–102

function printResult(result) {
	return markdownTable(
		[
			['Page', 'Avg (ms)', 'Stdev (ms)', 'Max (ms)'],
			...Object.entries(result).map(([pathname, { avg, stdev, max }]) => [
				pathname,
				avg.toFixed(2),
				stdev.toFixed(2),
				max.toFixed(2),
			]),
		],
		{
			align: ['l', 'r', 'r', 'r'],
		},
	);
}

Subdomains

Called By

Frequently Asked Questions

What does printResult() do?
printResult() is a function in the astro codebase, defined in benchmark/bench/render.js.
Where is printResult() defined?
printResult() is defined in benchmark/bench/render.js at line 87.
What calls printResult()?
printResult() is called by 1 function(s): run.

Analyze Your Own Codebase

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

Try Supermodel Free