codspeed-setup.js — astro Source File
Architecture documentation for codspeed-setup.js, a javascript file in the astro codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 4855f18f_6cc0_6561_6bbb_0ad232d1f185["codspeed-setup.js"] 4265c711_d908_961d_b7f8_d10af2c1c59b["_util.js"] 4855f18f_6cc0_6561_6bbb_0ad232d1f185 --> 4265c711_d908_961d_b7f8_d10af2c1c59b f1feebfd_7bf6_a301_7fce_29c4c8bbc773["makeProject"] 4855f18f_6cc0_6561_6bbb_0ad232d1f185 --> f1feebfd_7bf6_a301_7fce_29c4c8bbc773 d9a92db9_c95e_9165_13ac_24b3d859d946["node:url"] 4855f18f_6cc0_6561_6bbb_0ad232d1f185 --> d9a92db9_c95e_9165_13ac_24b3d859d946 015e2115_00b7_8619_a3f3_dc6eceb4c058["tinyexec"] 4855f18f_6cc0_6561_6bbb_0ad232d1f185 --> 015e2115_00b7_8619_a3f3_dc6eceb4c058 style 4855f18f_6cc0_6561_6bbb_0ad232d1f185 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { fileURLToPath } from 'node:url';
import { exec } from 'tinyexec';
import { astroBin, makeProject } from './_util.js';
/**
* Setup script for codspeed benchmarks.
* This builds the render-bench project which is required for the rendering benchmarks.
* This is separated out so it can run in a separate CI job since it takes a long time.
*/
async function setup() {
console.log('Setting up render-bench project...');
const render = await makeProject('render-bench');
const root = fileURLToPath(render);
console.log(`Building project at ${root}...`);
await exec(astroBin, ['build'], {
nodeOptions: {
cwd: root,
stdio: 'inherit',
},
});
}
setup().catch((error) => {
console.error('Setup failed:', error);
process.exit(1);
});
Domain
Subdomains
Functions
Dependencies
- _util.js
- makeProject
- node:url
- tinyexec
Source
Frequently Asked Questions
What does codspeed-setup.js do?
codspeed-setup.js is a source file in the astro codebase, written in javascript. It belongs to the PerformanceBenchmarking domain, MetricsCalculator subdomain.
What functions are defined in codspeed-setup.js?
codspeed-setup.js defines 1 function(s): setup.
What does codspeed-setup.js depend on?
codspeed-setup.js imports 4 module(s): _util.js, makeProject, node:url, tinyexec.
Where is codspeed-setup.js in the architecture?
codspeed-setup.js is located at benchmark/bench/codspeed-setup.js (domain: PerformanceBenchmarking, subdomain: MetricsCalculator, directory: benchmark/bench).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free