Home / File/ build-static.bench.js — astro Source File

build-static.bench.js — astro Source File

Architecture documentation for build-static.bench.js, a javascript file in the astro codebase. 3 imports, 0 dependents.

File javascript 3 imports

Entity Profile

Dependency Diagram

graph LR
  c39d20ab_879f_d621_623d_93401be8178b["build-static.bench.js"]
  d9a92db9_c95e_9165_13ac_24b3d859d946["node:url"]
  c39d20ab_879f_d621_623d_93401be8178b --> d9a92db9_c95e_9165_13ac_24b3d859d946
  f16d8c76_2866_6150_bd14_0347b59abfe9["astro"]
  c39d20ab_879f_d621_623d_93401be8178b --> f16d8c76_2866_6150_bd14_0347b59abfe9
  3e3298c2_86dd_c820_c444_b15ecaad6b48["vitest"]
  c39d20ab_879f_d621_623d_93401be8178b --> 3e3298c2_86dd_c820_c444_b15ecaad6b48
  style c39d20ab_879f_d621_623d_93401be8178b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { fileURLToPath } from 'node:url';
import { build } from 'astro';
import { bench, describe } from 'vitest';

const staticRoot = fileURLToPath(new URL('../static-projects/build-static', import.meta.url));

describe('Bench build time', () => {
	bench(
		'Build: full static site',
		async () => {
			await build({
				root: staticRoot,
				logLevel: 'error',
			});
		},
		{ timeout: 300000, iterations: 3 },
	);
});

Dependencies

  • astro
  • node:url
  • vitest

Frequently Asked Questions

What does build-static.bench.js do?
build-static.bench.js is a source file in the astro codebase, written in javascript.
What does build-static.bench.js depend on?
build-static.bench.js imports 3 module(s): astro, node:url, vitest.
Where is build-static.bench.js in the architecture?
build-static.bench.js is located at benchmark/bench/build-static.bench.js (directory: benchmark/bench).

Analyze Your Own Codebase

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

Try Supermodel Free