{title}
Card number {index}, rendering static content around expressions.
import fs from 'node:fs/promises';
import { loremIpsumHtml } from './_util.js';
/**
* Generates a benchmark project targeting specific rendering hot paths
* identified in RENDERING_PERF_PLAN.md. Each page isolates a different
* performance-sensitive pattern so we can measure the impact of optimizations.
*/
// ---------------------------------------------------------------------------
// Components
// ---------------------------------------------------------------------------
const components = {
// A leaf component with ~4 static HTML parts and a few expressions.
// Used by many-components to stress markHTMLString + isHTMLString (#1, #2).
'components/Card.astro': `\
---
const { title, href, index } = Astro.props;
---
Card number {index}, rendering static content around expressions.{title}
{heading}
{subtitle}
| Name | Value | Label |
|---|---|---|
| {item.name} | {item.value} | {item.label} |
{s.content}
${loremIpsumHtml}
${loremIpsumHtml}