Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 61 additions & 49 deletions .github/frameworks.json
Original file line number Diff line number Diff line change
@@ -1,67 +1,79 @@
[
{
"name": "next",
"displayName": "Next.js",
"frameworkPackage": "next",
"name": "baseline-html",
"displayName": "Baseline HTML",
"frameworkPackage": "node",
"focusedFramework": false,
"app": {
"package": "app-baseline-html",
"buildScript": "build",
"buildOutputDir": ".",
"measurements": [{ "type": "ssr" }]
}
},
{
"name": "astro",
"displayName": "Astro",
"frameworkPackage": "astro",
"focusedFramework": true,
"starter": {
"package": "starter-next-js",
"package": "starter-astro",
"buildScript": "build",
"buildOutputDir": ".next",
"buildOutputDir": "dist",
"measurements": [
{ "type": "install", "runFrequency": 5 },
{ "type": "build", "runFrequency": 5 },
{ "type": "dependencies" }
]
},
"app": {
"package": "app-next-js",
"package": "app-astro",
"buildScript": "build",
"buildOutputDir": ".next",
"buildOutputDir": "dist",
"measurements": [{ "type": "ssr" }]
}
},
{
"name": "react-router",
"displayName": "React Router",
"frameworkPackage": "@react-router/dev",
"focusedFramework": true,
"name": "mastro",
"displayName": "Mastro",
"frameworkPackage": "jsr:@mastrojs/mastro",
"focusedFramework": false,
"starter": {
"package": "starter-react-router",
"buildScript": "build",
"buildOutputDir": "build",
"package": "starter-mastro",
"buildScript": "generate",
"buildOutputDir": "generated",
"measurements": [
{ "type": "install", "runFrequency": 5 },
{ "type": "build", "runFrequency": 5 },
{ "type": "dependencies" }
]
},
"app": {
"package": "app-react-router",
"package": "app-mastro",
"buildScript": "build",
"buildOutputDir": "build",
"buildOutputDir": "generated",
"measurements": [{ "type": "ssr" }]
}
},
{
"name": "tanstack",
"displayName": "TanStack Start",
"frameworkPackage": "@tanstack/react-start",
"name": "next",
"displayName": "Next.js",
"frameworkPackage": "next",
"focusedFramework": true,
"starter": {
"package": "starter-tanstack-start-react",
"package": "starter-next-js",
"buildScript": "build",
"buildOutputDir": ".output",
"buildOutputDir": ".next",
"measurements": [
{ "type": "install", "runFrequency": 5 },
{ "type": "build", "runFrequency": 5 },
{ "type": "dependencies" }
]
},
"app": {
"package": "app-tanstack-start-react",
"package": "app-next-js",
"buildScript": "build",
"buildOutputDir": ".output",
"buildOutputDir": ".next",
"measurements": [{ "type": "ssr" }]
}
},
Expand All @@ -88,12 +100,12 @@
}
},
{
"name": "sveltekit",
"displayName": "SvelteKit",
"frameworkPackage": "@sveltejs/kit",
"name": "react-router",
"displayName": "React Router",
"frameworkPackage": "@react-router/dev",
"focusedFramework": true,
"starter": {
"package": "starter-sveltekit",
"package": "starter-react-router",
"buildScript": "build",
"buildOutputDir": "build",
"measurements": [
Expand All @@ -103,63 +115,63 @@
]
},
"app": {
"package": "app-sveltekit",
"package": "app-react-router",
"buildScript": "build",
"buildOutputDir": "build",
"measurements": [{ "type": "ssr" }]
}
},
{
"name": "astro",
"displayName": "Astro",
"frameworkPackage": "astro",
"name": "solid-start",
"displayName": "SolidStart",
"frameworkPackage": "@solidjs/start",
"focusedFramework": true,
"starter": {
"package": "starter-astro",
"package": "starter-solid-start",
"buildScript": "build",
"buildOutputDir": "dist",
"buildOutputDir": ".output",
"measurements": [
{ "type": "install", "runFrequency": 5 },
{ "type": "build", "runFrequency": 5 },
{ "type": "dependencies" }
]
},
"app": {
"package": "app-astro",
"package": "app-solid-start",
"buildScript": "build",
"buildOutputDir": "dist",
"buildOutputDir": ".output",
"measurements": [{ "type": "ssr" }]
}
},
{
"name": "mastro",
"displayName": "Mastro",
"frameworkPackage": "jsr:@mastrojs/mastro",
"focusedFramework": false,
"name": "sveltekit",
"displayName": "SvelteKit",
"frameworkPackage": "@sveltejs/kit",
"focusedFramework": true,
"starter": {
"package": "starter-mastro",
"buildScript": "generate",
"buildOutputDir": "generated",
"package": "starter-sveltekit",
"buildScript": "build",
"buildOutputDir": "build",
"measurements": [
{ "type": "install", "runFrequency": 5 },
{ "type": "build", "runFrequency": 5 },
{ "type": "dependencies" }
]
},
"app": {
"package": "app-mastro",
"package": "app-sveltekit",
"buildScript": "build",
"buildOutputDir": "generated",
"buildOutputDir": "build",
"measurements": [{ "type": "ssr" }]
}
},
{
"name": "solid-start",
"displayName": "SolidStart",
"frameworkPackage": "@solidjs/start",
"name": "tanstack",
"displayName": "TanStack Start",
"frameworkPackage": "@tanstack/react-start",
"focusedFramework": true,
"starter": {
"package": "starter-solid-start",
"package": "starter-tanstack-start-react",
"buildScript": "build",
"buildOutputDir": ".output",
"measurements": [
Expand All @@ -169,7 +181,7 @@
]
},
"app": {
"package": "app-solid-start",
"package": "app-tanstack-start-react",
"buildScript": "build",
"buildOutputDir": ".output",
"measurements": [{ "type": "ssr" }]
Expand Down
9 changes: 9 additions & 0 deletions packages/app-baseline-html/ci-stats.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"timingMeasuredAt": "",
"runner": "",
"ssrOpsPerSec": 0,
"ssrAvgLatencyMs": 0,
"ssrSamples": 0,
"ssrBodySizeKb": 0,
"ssrDuplicationFactor": 0
}
9 changes: 9 additions & 0 deletions packages/app-baseline-html/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "app-baseline-html",
"private": true,
"type": "module",
"version": "0.0.1",
"scripts": {
"build": "echo 'No build step needed'"
}
}
24 changes: 16 additions & 8 deletions packages/docs/src/components/DependencyStats.astro
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ import ComparisonBarChart from './ComparisonBarChart.astro'
const devtimeEntries = await getCollection('devtime')
const runtimeEntries = await getCollection('runtime')

const starterStats = devtimeEntries.map((entry) => entry.data)
const ssrStats = runtimeEntries.map((entry) => entry.data)
const starterStats = devtimeEntries
.map((entry) => entry.data)
.sort((a, b) => a.order - b.order)
const ssrStats = runtimeEntries
.map((entry) => entry.data)
.sort((a, b) => a.order - b.order)

const validForCharts = starterStats.filter(
(f) =>
Expand Down Expand Up @@ -296,12 +300,16 @@ const buildSizeProdData = validForCharts.map((f) => ({
ssrStats.map((framework) => (
<tr>
<td class="framework-name">
<a
href={`/framework/${getFrameworkSlug(framework.package)}`}
class="framework-link"
>
{framework.name}
</a>
{framework.package === 'app-baseline-html' ? (
<span>{framework.name}</span>
) : (
<a
href={`/framework/${getFrameworkSlug(framework.package)}`}
class="framework-link"
>
{framework.name}
</a>
)}
</td>
<td>{framework.ssrOpsPerSec?.toLocaleString()}</td>
<td>{framework.ssrAvgLatencyMs}ms</td>
Expand Down
14 changes: 13 additions & 1 deletion packages/docs/src/components/FrameworkDetail.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import '../styles/shared.css'
interface Props {
devtime: CollectionEntry<'devtime'>['data']
runtime?: CollectionEntry<'runtime'>['data']
baseline?: CollectionEntry<'runtime'>['data']
}

const { devtime, runtime } = Astro.props
const { devtime, runtime, baseline } = Astro.props

const measuredDateDisplay = (() => {
const d = new Date(devtime.timingMeasuredAt)
Expand Down Expand Up @@ -136,14 +137,25 @@ const measuredDateDisplay = (() => {
<table aria-label="SSR performance">
<thead>
<tr>
<th scope="col">Framework</th>
<th scope="col">Ops/sec</th>
<th scope="col">Avg Latency</th>
<th scope="col">Body Size</th>
<th scope="col">Duplication</th>
</tr>
</thead>
<tbody>
{baseline && (
<tr>
<td class="metric-name">{baseline.name}</td>
<td>{baseline.ssrOpsPerSec?.toLocaleString()}</td>
<td>{baseline.ssrAvgLatencyMs}ms</td>
<td>{baseline.ssrBodySizeKb}kb</td>
<td>{baseline.ssrDuplicationFactor}x</td>
</tr>
)}
<tr>
<td class="metric-name">{runtime.name}</td>
<td>{runtime.ssrOpsPerSec?.toLocaleString()}</td>
<td>{runtime.ssrAvgLatencyMs}ms</td>
<td>{runtime.ssrBodySizeKb}kb</td>
Expand Down
2 changes: 2 additions & 0 deletions packages/docs/src/content/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const devtimeCollection = defineCollection({
name: z.string(),
type: z.string(),
package: z.string(),
order: z.number(),
prodDependencies: z.number(),
devDependencies: z.number(),
installTime: timeSchema,
Expand All @@ -32,6 +33,7 @@ const runtimeCollection = defineCollection({
name: z.string(),
type: z.string(),
package: z.string(),
order: z.number(),
ssrOpsPerSec: z.number(),
ssrAvgLatencyMs: z.number(),
ssrSamples: z.number(),
Expand Down
3 changes: 2 additions & 1 deletion packages/docs/src/content/devtime/starter-astro.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@
"avgMs": 2068,
"minMs": 1946,
"maxMs": 2255
}
},
"order": 1
}
3 changes: 2 additions & 1 deletion packages/docs/src/content/devtime/starter-mastro.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@
"minMs": 431,
"maxMs": 481
},
"buildOutputSize": 12288
"buildOutputSize": 12288,
"order": 2
}
3 changes: 2 additions & 1 deletion packages/docs/src/content/devtime/starter-next-js.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@
"avgMs": 2044.6,
"minMs": 1865,
"maxMs": 2332
}
},
"order": 3
}
3 changes: 2 additions & 1 deletion packages/docs/src/content/devtime/starter-nuxt.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@
"avgMs": 4164,
"minMs": 3911,
"maxMs": 4970
}
},
"order": 4
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@
"avgMs": 1365,
"minMs": 1287,
"maxMs": 1570
}
},
"order": 5
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@
"avgMs": 2480.8,
"minMs": 2381,
"maxMs": 2805
}
},
"order": 6
}
3 changes: 2 additions & 1 deletion packages/docs/src/content/devtime/starter-sveltekit.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@
"avgMs": 1847,
"minMs": 1787,
"maxMs": 1963
}
},
"order": 7
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@
"avgMs": 2485.4,
"minMs": 2360,
"maxMs": 2896
}
},
"order": 8
}
3 changes: 2 additions & 1 deletion packages/docs/src/content/runtime/app-astro.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"ssrDuplicationFactor": 1,
"timingMeasuredAt": "2026-02-18T08:33:24.137Z",
"runner": "ubuntu-latest",
"frameworkVersion": "5.16.15"
"frameworkVersion": "5.16.15",
"order": 1
}
Loading
Loading