From 8938aa6f15315a3c2bd1d4bfcff7976d39c17908 Mon Sep 17 00:00:00 2001 From: Alexander Karan <47707063+AlexanderKaran@users.noreply.github.com> Date: Sat, 31 Oct 2026 07:18:26 +0800 Subject: [PATCH 1/5] Bar Charts in Run Time --- .../docs/src/components/StackedBarChart.astro | 341 ++++++++++++++++++ .../benchmarks/initial-load/Compare.astro | 38 ++ .../benchmarks/initial-load/Description.mdx | 4 + .../docs/src/content/docs/all-results.mdx | 5 + packages/docs/src/content/docs/methodology.md | 16 + packages/docs/src/content/docs/run-time.mdx | 5 + packages/docs/src/lib/initial-load.ts | 17 + packages/docs/src/lib/prepare-chart.ts | 24 ++ packages/docs/src/lib/prepare-table.ts | 22 ++ packages/docs/src/lib/result-content.ts | 4 + 10 files changed, 476 insertions(+) create mode 100644 packages/docs/src/components/StackedBarChart.astro create mode 100644 packages/docs/src/components/benchmarks/initial-load/Compare.astro create mode 100644 packages/docs/src/components/benchmarks/initial-load/Description.mdx create mode 100644 packages/docs/src/lib/initial-load.ts diff --git a/packages/docs/src/components/StackedBarChart.astro b/packages/docs/src/components/StackedBarChart.astro new file mode 100644 index 000000000..e690ecd77 --- /dev/null +++ b/packages/docs/src/components/StackedBarChart.astro @@ -0,0 +1,341 @@ +--- +import { formatChartValue } from '../lib/chart' +interface Series { + key: string + label: string + color: string +} +interface Datum { + name: string + focused: boolean + values: Record +} +interface Props { + title: string + series: Series[] + data: Datum[] +} +const { title, series, data } = Astro.props +--- + +
+
{title}
+ +
+
+ + +
+
+ + + { + series.map((item) => ) + } + { + data.map((row) => ( + + + {series.map((item) => ( + + ))} + + )) + } +
{title} data (KB)
Framework{item.label}
{row.name}{formatChartValue(row.values[item.key]!, 'kb')}
+
+
+ + diff --git a/packages/docs/src/components/benchmarks/initial-load/Compare.astro b/packages/docs/src/components/benchmarks/initial-load/Compare.astro new file mode 100644 index 000000000..5f15376de --- /dev/null +++ b/packages/docs/src/components/benchmarks/initial-load/Compare.astro @@ -0,0 +1,38 @@ +--- +import { Content as Description } from './Description.mdx' +import { + initialLoadChartData, + initialLoadSeries, +} from '../../../lib/prepare-chart' +import { initialLoadTableData } from '../../../lib/prepare-table' +import StackedBarChart from '../../StackedBarChart.astro' +import StatsTable from '../../StatsTable.astro' + +const columns = [ + { key: 'name', header: 'Framework', nameCell: true }, + { key: 'requests', header: 'Requests' }, + ...initialLoadSeries.map(({ key, label }) => ({ key, header: label })), + { key: 'total', header: 'Total' }, +] +--- + + + + +

+ The chart below excludes JavaScript transfers and uses a separate scale. + JavaScript still runs during the test. Sizes use 1 KB = 1,024 bytes. +

+ item.key !== 'js')} + data={initialLoadChartData} +/> diff --git a/packages/docs/src/components/benchmarks/initial-load/Description.mdx b/packages/docs/src/components/benchmarks/initial-load/Description.mdx new file mode 100644 index 000000000..fd4fa3c2f --- /dev/null +++ b/packages/docs/src/components/benchmarks/initial-load/Description.mdx @@ -0,0 +1,4 @@ +Compare the resources transferred on a first visit to the same small, styled +landing page. Sizes include response headers; lower is better. Inline CSS and +JavaScript count toward HTML. Other includes images, media, fonts, and remaining +resources. See [Methodology](/methodology/#initial-load) for collection details. diff --git a/packages/docs/src/content/docs/all-results.mdx b/packages/docs/src/content/docs/all-results.mdx index ece3009f5..d33b5f9d0 100644 --- a/packages/docs/src/content/docs/all-results.mdx +++ b/packages/docs/src/content/docs/all-results.mdx @@ -19,6 +19,7 @@ import BrowserBaselineCompare from '../../components/benchmarks/browser-baseline import MinimumNodeVersionCompare from '../../components/benchmarks/minimum-node-version/Compare.astro' import LighthouseClientSideRenderedCompare from '../../components/benchmarks/lighthouse-client-side-rendered-tests/Compare.astro' import LighthouseServerSideRenderedCompare from '../../components/benchmarks/lighthouse-server-side-rendered-tests/Compare.astro' +import InitialLoadCompare from '../../components/benchmarks/initial-load/Compare.astro' import SSRThroughputCompare from '../../components/benchmarks/server-side-throughput-tests/Compare.astro' import SSRLoadStatsTable from '../../components/SSRLoadStatsTable.astro' import SSRLoadP99Charts from '../../components/SSRLoadP99Charts.astro' @@ -93,6 +94,10 @@ All results for every tracked framework, including the featured frameworks shown +### Initial Load + + + ### Server Side Throughput Tests diff --git a/packages/docs/src/content/docs/methodology.md b/packages/docs/src/content/docs/methodology.md index 88e35e9f6..ef2aa821a 100644 --- a/packages/docs/src/content/docs/methodology.md +++ b/packages/docs/src/content/docs/methodology.md @@ -471,6 +471,22 @@ Current pinned dependencies are listed in each project's `package.json`: production server instead of measured as prerendered static HTML. - Solid does not use its native `A` navigation element as it is being deprecated and only kept in currently as a convenience. Their docs have been updated to reflect this [GitHub PR](https://github.com/solidjs/solid-docs/pull/1620). Note update to docs page once this PR has been merged. +### Initial Load + +- Each production app serves the same small, styled landing page at + `/initial-load`, using shared copy, layout, and CSS with system fonts. +- A fresh headless Chrome process navigates to the route once. Lighthouse flow + collects only the `resource-summary` audit using the default browser setup + above, without simulated CPU or network throttling. +- Results record transferred bytes (including response headers) and request + counts, rather than uncompressed source size, build output size, or load time. + This is a single navigation, not a median across repeated runs. +- HTML means Lighthouse's document category, CSS means stylesheet, and JavaScript + means script. Inline styles and scripts remain part of the HTML transfer. + Other combines images, media, fonts, and the remaining resource category. +- The total includes each resource category once. Lighthouse's third-party row + overlaps those categories and is excluded from the stacks. + ### Server Side Throughput Tests - Each framework renders the dedicated `/ssr-throughput` route with a table of diff --git a/packages/docs/src/content/docs/run-time.mdx b/packages/docs/src/content/docs/run-time.mdx index c9f8ac5a9..061d8f962 100644 --- a/packages/docs/src/content/docs/run-time.mdx +++ b/packages/docs/src/content/docs/run-time.mdx @@ -6,6 +6,7 @@ description: Focused framework browser and server runtime metrics. import { Content as RunTimeSetup } from '../../components/setup/RunTimeSetup.mdx' import LighthouseClientSideRenderedCompare from '../../components/benchmarks/lighthouse-client-side-rendered-tests/Compare.astro' import LighthouseServerSideRenderedCompare from '../../components/benchmarks/lighthouse-server-side-rendered-tests/Compare.astro' +import InitialLoadCompare from '../../components/benchmarks/initial-load/Compare.astro' import SSRThroughputCompare from '../../components/benchmarks/server-side-throughput-tests/Compare.astro' import SSRLoadStatsTable from '../../components/SSRLoadStatsTable.astro' import SSRLoadP99Charts from '../../components/SSRLoadP99Charts.astro' @@ -28,6 +29,10 @@ import { Content as SSRRouterLinkLoadDescription } from '../../components/benchm +## Initial Load + + + ## Server Side Throughput Tests diff --git a/packages/docs/src/lib/initial-load.ts b/packages/docs/src/lib/initial-load.ts new file mode 100644 index 000000000..a22203209 --- /dev/null +++ b/packages/docs/src/lib/initial-load.ts @@ -0,0 +1,17 @@ +import type { InitialLoadStats } from '@framework-tracker/results' + +export function prepareInitialLoadResources( + resources: InitialLoadStats['resources'], +) { + return { + html: resources.document.transferSize / 1024, + css: resources.stylesheet.transferSize / 1024, + js: resources.script.transferSize / 1024, + other: + (resources.image.transferSize + + resources.media.transferSize + + resources.font.transferSize + + resources.other.transferSize) / + 1024, + } +} diff --git a/packages/docs/src/lib/prepare-chart.ts b/packages/docs/src/lib/prepare-chart.ts index cd08dc442..507ef3f21 100644 --- a/packages/docs/src/lib/prepare-chart.ts +++ b/packages/docs/src/lib/prepare-chart.ts @@ -1,3 +1,4 @@ +import { prepareInitialLoadResources } from './initial-load' import { getCollection } from 'astro:content' import { frameworks } from '@framework-tracker/results/frameworks' export * from './chart-measurements' @@ -116,3 +117,26 @@ export function getCWVStatsChartData(cwv: CWV, device: Device) { const cwvEntries = await getCollection('cwv') export type Device = 'desktop' | 'mobile' + +export const initialLoadSeries = [ + { key: 'html', label: 'HTML', color: '#e34c26' }, + { key: 'css', label: 'CSS', color: '#1572b6' }, + { key: 'js', label: 'JavaScript', color: '#f7df1e' }, + { key: 'other', label: 'Other', color: 'var(--ft-muted)' }, +] + +export const initialLoadChartData = ssrRequestThroughputStats.flatMap( + (framework) => { + const resources = framework.initialLoadTests?.resources + if (!resources) return [] + return [ + { + name: framework.name, + focused: framework.isFocused, + requests: resources.total.requestCount, + total: resources.total.transferSize / 1024, + values: prepareInitialLoadResources(resources), + }, + ] + }, +) diff --git a/packages/docs/src/lib/prepare-table.ts b/packages/docs/src/lib/prepare-table.ts index aeb250951..9eb72ea38 100644 --- a/packages/docs/src/lib/prepare-table.ts +++ b/packages/docs/src/lib/prepare-table.ts @@ -1,3 +1,5 @@ +import { prepareInitialLoadResources } from './initial-load' +import { formatChartValue } from './chart' import { frameworks } from '@framework-tracker/results/frameworks' import { getCollection } from 'astro:content' import { formatBytesToMB, formatTimeMs, getFrameworkSlug } from './utils' @@ -336,3 +338,23 @@ export const requestThroughputTableData = ssrRequestThroughputStats.flatMap( ] }, ) + +export const initialLoadTableData = ssrRequestThroughputStats.flatMap( + (framework) => { + const resources = framework.initialLoadTests?.resources + if (!resources) return [] + return [ + { + name: framework.name, + isFocused: framework.isFocused, + requests: resources.total.requestCount, + total: formatChartValue(resources.total.transferSize / 1024, 'kb'), + ...Object.fromEntries( + Object.entries(prepareInitialLoadResources(resources)).map( + ([key, value]) => [key, formatChartValue(value, 'kb')], + ), + ), + }, + ] + }, +) diff --git a/packages/docs/src/lib/result-content.ts b/packages/docs/src/lib/result-content.ts index 7b37d2fa6..0d14ff038 100644 --- a/packages/docs/src/lib/result-content.ts +++ b/packages/docs/src/lib/result-content.ts @@ -128,6 +128,10 @@ export function prepareRuntimeResult(result: CombinedResult) { result.tests.clientSideRenderedTests?.project === 'app' ? result.tests.clientSideRenderedTests.result : undefined, + initialLoadTests: + result.tests.initialLoadTests?.project === 'app' + ? result.tests.initialLoadTests.result + : undefined, serverSideRenderedTests: result.tests.serverSideRenderedTests?.project === 'app' ? result.tests.serverSideRenderedTests.result From f06aceb6d41170fa3e263e89a5ba05230ab0bcee Mon Sep 17 00:00:00 2001 From: Alexander Karan <47707063+AlexanderKaran@users.noreply.github.com> Date: Sat, 31 Oct 2026 07:22:27 +0800 Subject: [PATCH 2/5] Added Stacked Area Charts to the Details Page --- .../components/InteractionHistoryChart.astro | 96 ++++++++++++++----- .../benchmarks/initial-load/Details.astro | 50 ++++++++++ .../docs/src/content/docs/framework/astro.mdx | 5 + .../src/content/docs/framework/next-js.mdx | 5 + .../docs/src/content/docs/framework/nuxt.mdx | 5 + .../src/content/docs/framework/pracht.mdx | 5 + .../content/docs/framework/react-router.mdx | 5 + .../content/docs/framework/solid-start.mdx | 5 + .../src/content/docs/framework/sveltekit.mdx | 5 + .../docs/framework/tanstack-start-react.mdx | 5 + 10 files changed, 163 insertions(+), 23 deletions(-) create mode 100644 packages/docs/src/components/benchmarks/initial-load/Details.astro diff --git a/packages/docs/src/components/InteractionHistoryChart.astro b/packages/docs/src/components/InteractionHistoryChart.astro index 9a3b9f2ff..15516fb98 100644 --- a/packages/docs/src/components/InteractionHistoryChart.astro +++ b/packages/docs/src/components/InteractionHistoryChart.astro @@ -7,10 +7,25 @@ import InteractionChartCaption from './InteractionChartCaption.astro' interface Props { title: string data: InteractionHistoryDatum[] + series?: readonly { key: string; label: string; colorVar?: string; color?: string }[] + valueFormat?: 'ms' | 'kb' + yAxisLabel?: string } -const { title, data } = Astro.props -const chartPayload = JSON.stringify({ title, data }) +const { + title, + data, + series = INTERACTION_PHASES as NonNullable, + valueFormat = 'ms', + yAxisLabel = 'Interaction latency (ms)', +} = Astro.props +const chartPayload = JSON.stringify({ + title, + data, + series, + valueFormat, + yAxisLabel, +}) --- { @@ -23,7 +38,14 @@ const chartPayload = JSON.stringify({ title, data }) ) : (
- + {valueFormat === 'ms' ? ( + + ) : ( +
+

{title}

+

{series.map(({ label }) => label).join(' ยท ')} (KB)

+
+ )}
Framework version - Interaction latency - {INTERACTION_PHASES.map(({ label }) => ( + Total + {series.map(({ label }) => ( {label} ))} @@ -45,9 +67,16 @@ const chartPayload = JSON.stringify({ title, data }) {data.map((datum) => ( {datum.name} - {formatChartValue(datum.interactionLatencyMs, 'ms')} - {INTERACTION_PHASES.map(({ key }) => ( - {formatChartValue(datum[key], 'ms')} + + {formatChartValue(datum.interactionLatencyMs, valueFormat)} + + {series.map(({ key }) => ( + + {formatChartValue( + Number(Reflect.get(datum, key)), + valueFormat, + )} + ))} ))} @@ -114,6 +143,9 @@ const chartPayload = JSON.stringify({ title, data }) interface Payload { title: string data: InteractionHistoryDatum[] + series?: readonly { key: string; label: string; colorVar?: string; color?: string }[] + valueFormat?: 'ms' | 'kb' + yAxisLabel?: string } interface PhaseRow { version: string @@ -147,24 +179,34 @@ const chartPayload = JSON.stringify({ title, data }) const payload = getPayload(wrapper) if (!payload) return - const { data } = payload - const phaseLabels = INTERACTION_PHASES.map(({ label }) => label) - const phaseColors = INTERACTION_PHASES.map(({ colorVar }, index) => - getCssVar(colorVar, PHASE_FALLBACKS[index]!), + const { + data, + series = INTERACTION_PHASES as NonNullable, + valueFormat = 'ms', + yAxisLabel, + } = payload + const phaseLabels = series.map(({ label }) => label) + const phaseColors = series.map( + ({ colorVar, color }, index) => + color ?? + getCssVar( + colorVar ?? '--ft-muted', + PHASE_FALLBACKS[index % PHASE_FALLBACKS.length]!, + ), ) const rows: PhaseRow[] = data.flatMap((datum) => - INTERACTION_PHASES.map(({ key, label }) => ({ + series.map(({ key, label }) => ({ version: datum.name, phase: label, - ms: datum[key], + ms: Number(Reflect.get(datum, key)), })), ) const topEdges: PhaseRow[] = data.flatMap((datum) => { let total = 0 - return INTERACTION_PHASES.map(({ key, label }) => ({ + return series.map(({ key, label }) => ({ version: datum.name, phase: label, - ms: (total += datum[key]), + ms: (total += Number(Reflect.get(datum, key))), })) }) const byVersion = new Map(data.map((datum) => [datum.name, datum])) @@ -204,7 +246,7 @@ const chartPayload = JSON.stringify({ title, data }) y: { scale: scaleLinear, grid: true, - axis: { label: 'Interaction latency (ms)' }, + axis: { label: yAxisLabel }, }, }, color: { domain: phaseLabels, range: phaseColors }, @@ -221,14 +263,22 @@ const chartPayload = JSON.stringify({ title, data }) return { title: datum.name, rows: [ - ...INTERACTION_PHASES.map(({ key, label }, index) => ({ - label, - value: formatChartValue(datum[key], 'ms'), - color: phaseColors[index]!, - })).reverse(), + ...series + .map(({ key, label }, index) => ({ + label, + value: formatChartValue( + Number(Reflect.get(datum, key)), + valueFormat, + ), + color: phaseColors[index]!, + })) + .reverse(), { label: 'Total', - value: formatChartValue(datum.interactionLatencyMs, 'ms'), + value: formatChartValue( + datum.interactionLatencyMs, + valueFormat, + ), active: true, }, ], diff --git a/packages/docs/src/components/benchmarks/initial-load/Details.astro b/packages/docs/src/components/benchmarks/initial-load/Details.astro new file mode 100644 index 000000000..6df457522 --- /dev/null +++ b/packages/docs/src/components/benchmarks/initial-load/Details.astro @@ -0,0 +1,50 @@ +--- +import type { InitialLoadStats } from '@framework-tracker/results' +import { Content as Description } from './Description.mdx' +import Chart from '../../InteractionHistoryChart.astro' +import { initialLoadSeries } from '../../../lib/prepare-chart' +import { prepareInitialLoadResources } from '../../../lib/initial-load' +interface Props { + versions: { frameworkVersion?: string; initialLoadTests?: InitialLoadStats }[] +} +const data = Astro.props.versions.flatMap((version) => { + const resources = version.initialLoadTests?.resources + if (!resources) return [] + const values = prepareInitialLoadResources(resources) + return [ + { + id: version.frameworkVersion ?? '', + name: version.frameworkVersion ?? '', + ...values, + inputDelayMs: 0, + processingDurationMs: 0, + presentationDelayMs: 0, + interactionLatencyMs: Object.values(values).reduce((a, b) => a + b, 0), + }, + ] +}) +const withoutJs = data.map((datum) => ({ + ...datum, + interactionLatencyMs: datum.interactionLatencyMs - datum.js, +})) +--- + + + +

+ The chart below excludes JavaScript transfers and uses a separate scale. + JavaScript still runs during the test. Sizes use 1 KB = 1,024 bytes. +

+ key !== 'js')} + valueFormat="kb" + yAxisLabel="Transfer size (KB)" +/> diff --git a/packages/docs/src/content/docs/framework/astro.mdx b/packages/docs/src/content/docs/framework/astro.mdx index 8c9b7a796..9bfc2d538 100644 --- a/packages/docs/src/content/docs/framework/astro.mdx +++ b/packages/docs/src/content/docs/framework/astro.mdx @@ -14,6 +14,7 @@ import BrowserBaselineDetails from '../../../components/benchmarks/browser-basel import LighthouseClientSideRenderedDetails from '../../../components/benchmarks/lighthouse-client-side-rendered-tests/Details.astro' import LighthouseServerSideRenderedDetails from '../../../components/benchmarks/lighthouse-server-side-rendered-tests/Details.astro' import SSRThroughputDetails from '../../../components/benchmarks/server-side-throughput-tests/Details.astro' +import InitialLoadDetails from '../../../components/benchmarks/initial-load/Details.astro' import SSRLoadDetails from '../../../components/benchmarks/ssr-load-test/Details.astro' import { @@ -60,6 +61,10 @@ export const astroRuntimeVersions = getRuntimeVersionStats('app-astro') +### Initial Load + + + ### Client Side Rendered Tests (Lighthouse) diff --git a/packages/docs/src/content/docs/framework/next-js.mdx b/packages/docs/src/content/docs/framework/next-js.mdx index 899445d17..f5ff599c0 100644 --- a/packages/docs/src/content/docs/framework/next-js.mdx +++ b/packages/docs/src/content/docs/framework/next-js.mdx @@ -14,6 +14,7 @@ import BrowserBaselineDetails from '../../../components/benchmarks/browser-basel import LighthouseClientSideRenderedDetails from '../../../components/benchmarks/lighthouse-client-side-rendered-tests/Details.astro' import LighthouseServerSideRenderedDetails from '../../../components/benchmarks/lighthouse-server-side-rendered-tests/Details.astro' import SSRThroughputDetails from '../../../components/benchmarks/server-side-throughput-tests/Details.astro' +import InitialLoadDetails from '../../../components/benchmarks/initial-load/Details.astro' import SSRLoadDetails from '../../../components/benchmarks/ssr-load-test/Details.astro' import SSRRouterLinkLoadDetails from '../../../components/benchmarks/ssr-router-link-load-test/Details.astro' @@ -61,6 +62,10 @@ export const nextJsRuntimeVersions = getRuntimeVersionStats('app-next-js') +### Initial Load + + + ### Client Side Rendered Tests (Lighthouse) diff --git a/packages/docs/src/content/docs/framework/nuxt.mdx b/packages/docs/src/content/docs/framework/nuxt.mdx index 6856f142c..95974a03f 100644 --- a/packages/docs/src/content/docs/framework/nuxt.mdx +++ b/packages/docs/src/content/docs/framework/nuxt.mdx @@ -14,6 +14,7 @@ import BrowserBaselineDetails from '../../../components/benchmarks/browser-basel import LighthouseClientSideRenderedDetails from '../../../components/benchmarks/lighthouse-client-side-rendered-tests/Details.astro' import LighthouseServerSideRenderedDetails from '../../../components/benchmarks/lighthouse-server-side-rendered-tests/Details.astro' import SSRThroughputDetails from '../../../components/benchmarks/server-side-throughput-tests/Details.astro' +import InitialLoadDetails from '../../../components/benchmarks/initial-load/Details.astro' import SSRLoadDetails from '../../../components/benchmarks/ssr-load-test/Details.astro' import SSRRouterLinkLoadDetails from '../../../components/benchmarks/ssr-router-link-load-test/Details.astro' @@ -61,6 +62,10 @@ export const nuxtRuntimeVersions = getRuntimeVersionStats('app-nuxt') +### Initial Load + + + ### Client Side Rendered Tests (Lighthouse) diff --git a/packages/docs/src/content/docs/framework/pracht.mdx b/packages/docs/src/content/docs/framework/pracht.mdx index 7c1af0e6b..4caf418c8 100644 --- a/packages/docs/src/content/docs/framework/pracht.mdx +++ b/packages/docs/src/content/docs/framework/pracht.mdx @@ -14,6 +14,7 @@ import BrowserBaselineDetails from '../../../components/benchmarks/browser-basel import LighthouseClientSideRenderedDetails from '../../../components/benchmarks/lighthouse-client-side-rendered-tests/Details.astro' import LighthouseServerSideRenderedDetails from '../../../components/benchmarks/lighthouse-server-side-rendered-tests/Details.astro' import SSRThroughputDetails from '../../../components/benchmarks/server-side-throughput-tests/Details.astro' +import InitialLoadDetails from '../../../components/benchmarks/initial-load/Details.astro' import SSRLoadDetails from '../../../components/benchmarks/ssr-load-test/Details.astro' import SSRRouterLinkLoadDetails from '../../../components/benchmarks/ssr-router-link-load-test/Details.astro' @@ -68,6 +69,10 @@ prachtStarterVersions.length === 0 && prachtRuntimeVersions.length === 0 ? ( +### Initial Load + + + ### Client Side Rendered Tests (Lighthouse) diff --git a/packages/docs/src/content/docs/framework/react-router.mdx b/packages/docs/src/content/docs/framework/react-router.mdx index edbb1778d..3de1d28ea 100644 --- a/packages/docs/src/content/docs/framework/react-router.mdx +++ b/packages/docs/src/content/docs/framework/react-router.mdx @@ -14,6 +14,7 @@ import BrowserBaselineDetails from '../../../components/benchmarks/browser-basel import LighthouseClientSideRenderedDetails from '../../../components/benchmarks/lighthouse-client-side-rendered-tests/Details.astro' import LighthouseServerSideRenderedDetails from '../../../components/benchmarks/lighthouse-server-side-rendered-tests/Details.astro' import SSRThroughputDetails from '../../../components/benchmarks/server-side-throughput-tests/Details.astro' +import InitialLoadDetails from '../../../components/benchmarks/initial-load/Details.astro' import SSRLoadDetails from '../../../components/benchmarks/ssr-load-test/Details.astro' import SSRRouterLinkLoadDetails from '../../../components/benchmarks/ssr-router-link-load-test/Details.astro' @@ -64,6 +65,10 @@ export const reactRouterRuntimeVersions = +### Initial Load + + + ### Client Side Rendered Tests (Lighthouse) diff --git a/packages/docs/src/content/docs/framework/solid-start.mdx b/packages/docs/src/content/docs/framework/solid-start.mdx index 61376f746..2a7265d09 100644 --- a/packages/docs/src/content/docs/framework/solid-start.mdx +++ b/packages/docs/src/content/docs/framework/solid-start.mdx @@ -14,6 +14,7 @@ import BrowserBaselineDetails from '../../../components/benchmarks/browser-basel import LighthouseClientSideRenderedDetails from '../../../components/benchmarks/lighthouse-client-side-rendered-tests/Details.astro' import LighthouseServerSideRenderedDetails from '../../../components/benchmarks/lighthouse-server-side-rendered-tests/Details.astro' import SSRThroughputDetails from '../../../components/benchmarks/server-side-throughput-tests/Details.astro' +import InitialLoadDetails from '../../../components/benchmarks/initial-load/Details.astro' import SSRLoadDetails from '../../../components/benchmarks/ssr-load-test/Details.astro' import { @@ -63,6 +64,10 @@ export const solidStartRuntimeVersions = +### Initial Load + + + ### Client Side Rendered Tests (Lighthouse) diff --git a/packages/docs/src/content/docs/framework/sveltekit.mdx b/packages/docs/src/content/docs/framework/sveltekit.mdx index eb539831c..f31299c67 100644 --- a/packages/docs/src/content/docs/framework/sveltekit.mdx +++ b/packages/docs/src/content/docs/framework/sveltekit.mdx @@ -14,6 +14,7 @@ import BrowserBaselineDetails from '../../../components/benchmarks/browser-basel import LighthouseClientSideRenderedDetails from '../../../components/benchmarks/lighthouse-client-side-rendered-tests/Details.astro' import LighthouseServerSideRenderedDetails from '../../../components/benchmarks/lighthouse-server-side-rendered-tests/Details.astro' import SSRThroughputDetails from '../../../components/benchmarks/server-side-throughput-tests/Details.astro' +import InitialLoadDetails from '../../../components/benchmarks/initial-load/Details.astro' import SSRLoadDetails from '../../../components/benchmarks/ssr-load-test/Details.astro' import { @@ -61,6 +62,10 @@ export const sveltekitRuntimeVersions = getRuntimeVersionStats('app-sveltekit') +### Initial Load + + + ### Client Side Rendered Tests (Lighthouse) diff --git a/packages/docs/src/content/docs/framework/tanstack-start-react.mdx b/packages/docs/src/content/docs/framework/tanstack-start-react.mdx index d6d108036..88766523a 100644 --- a/packages/docs/src/content/docs/framework/tanstack-start-react.mdx +++ b/packages/docs/src/content/docs/framework/tanstack-start-react.mdx @@ -14,6 +14,7 @@ import BrowserBaselineDetails from '../../../components/benchmarks/browser-basel import LighthouseClientSideRenderedDetails from '../../../components/benchmarks/lighthouse-client-side-rendered-tests/Details.astro' import LighthouseServerSideRenderedDetails from '../../../components/benchmarks/lighthouse-server-side-rendered-tests/Details.astro' import SSRThroughputDetails from '../../../components/benchmarks/server-side-throughput-tests/Details.astro' +import InitialLoadDetails from '../../../components/benchmarks/initial-load/Details.astro' import SSRLoadDetails from '../../../components/benchmarks/ssr-load-test/Details.astro' import SSRRouterLinkLoadDetails from '../../../components/benchmarks/ssr-router-link-load-test/Details.astro' @@ -65,6 +66,10 @@ export const tanstackStartRuntimeVersions = getRuntimeVersionStats( +### Initial Load + + + ### Client Side Rendered Tests (Lighthouse) From 4bd09c62d961ef9d6f5d7f45591a1ace4844db55 Mon Sep 17 00:00:00 2001 From: Alexander Karan <47707063+AlexanderKaran@users.noreply.github.com> Date: Sat, 31 Oct 2026 07:23:40 +0800 Subject: [PATCH 3/5] Added Links To Table --- .../components/benchmarks/initial-load/Compare.astro | 11 ++++++++++- packages/docs/src/lib/prepare-table.ts | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/docs/src/components/benchmarks/initial-load/Compare.astro b/packages/docs/src/components/benchmarks/initial-load/Compare.astro index 5f15376de..7f9ed53ca 100644 --- a/packages/docs/src/components/benchmarks/initial-load/Compare.astro +++ b/packages/docs/src/components/benchmarks/initial-load/Compare.astro @@ -7,9 +7,18 @@ import { import { initialLoadTableData } from '../../../lib/prepare-table' import StackedBarChart from '../../StackedBarChart.astro' import StatsTable from '../../StatsTable.astro' +import { getFrameworkSlug } from '../../../lib/utils' const columns = [ - { key: 'name', header: 'Framework', nameCell: true }, + { + key: 'name', + header: 'Framework', + nameCell: true, + href: (row: Record) => + row.package !== 'app-baseline-html' + ? `/framework/${getFrameworkSlug(row.package as string)}/#initial-load` + : null, + }, { key: 'requests', header: 'Requests' }, ...initialLoadSeries.map(({ key, label }) => ({ key, header: label })), { key: 'total', header: 'Total' }, diff --git a/packages/docs/src/lib/prepare-table.ts b/packages/docs/src/lib/prepare-table.ts index 9eb72ea38..d50b6c410 100644 --- a/packages/docs/src/lib/prepare-table.ts +++ b/packages/docs/src/lib/prepare-table.ts @@ -346,6 +346,7 @@ export const initialLoadTableData = ssrRequestThroughputStats.flatMap( return [ { name: framework.name, + package: framework.package, isFocused: framework.isFocused, requests: resources.total.requestCount, total: formatChartValue(resources.total.transferSize / 1024, 'kb'), From c9975e448050ce2db12caeab0c143c34a6c4dbc0 Mon Sep 17 00:00:00 2001 From: Alexander Karan <47707063+AlexanderKaran@users.noreply.github.com> Date: Sat, 31 Oct 2026 07:25:52 +0800 Subject: [PATCH 4/5] Removed unnecessary description --- .../docs/src/components/benchmarks/initial-load/Compare.astro | 4 ---- .../docs/src/components/benchmarks/initial-load/Details.astro | 4 ---- 2 files changed, 8 deletions(-) diff --git a/packages/docs/src/components/benchmarks/initial-load/Compare.astro b/packages/docs/src/components/benchmarks/initial-load/Compare.astro index 7f9ed53ca..8a43122a8 100644 --- a/packages/docs/src/components/benchmarks/initial-load/Compare.astro +++ b/packages/docs/src/components/benchmarks/initial-load/Compare.astro @@ -36,10 +36,6 @@ const columns = [ series={initialLoadSeries} data={initialLoadChartData} /> -

- The chart below excludes JavaScript transfers and uses a separate scale. - JavaScript still runs during the test. Sizes use 1 KB = 1,024 bytes. -

item.key !== 'js')} diff --git a/packages/docs/src/components/benchmarks/initial-load/Details.astro b/packages/docs/src/components/benchmarks/initial-load/Details.astro index 6df457522..ecac7482f 100644 --- a/packages/docs/src/components/benchmarks/initial-load/Details.astro +++ b/packages/docs/src/components/benchmarks/initial-load/Details.astro @@ -37,10 +37,6 @@ const withoutJs = data.map((datum) => ({ valueFormat="kb" yAxisLabel="Transfer size (KB)" /> -

- The chart below excludes JavaScript transfers and uses a separate scale. - JavaScript still runs during the test. Sizes use 1 KB = 1,024 bytes. -

Date: Sat, 31 Oct 2026 07:29:15 +0800 Subject: [PATCH 5/5] Fprmat --- .../src/components/InteractionHistoryChart.astro | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/docs/src/components/InteractionHistoryChart.astro b/packages/docs/src/components/InteractionHistoryChart.astro index 15516fb98..6df262f19 100644 --- a/packages/docs/src/components/InteractionHistoryChart.astro +++ b/packages/docs/src/components/InteractionHistoryChart.astro @@ -7,7 +7,12 @@ import InteractionChartCaption from './InteractionChartCaption.astro' interface Props { title: string data: InteractionHistoryDatum[] - series?: readonly { key: string; label: string; colorVar?: string; color?: string }[] + series?: readonly { + key: string + label: string + colorVar?: string + color?: string + }[] valueFormat?: 'ms' | 'kb' yAxisLabel?: string } @@ -143,7 +148,12 @@ const chartPayload = JSON.stringify({ interface Payload { title: string data: InteractionHistoryDatum[] - series?: readonly { key: string; label: string; colorVar?: string; color?: string }[] + series?: readonly { + key: string + label: string + colorVar?: string + color?: string + }[] valueFormat?: 'ms' | 'kb' yAxisLabel?: string }