Skip to content
Open
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
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
"check:all:ci": "pnpm install:all:frozen && pnpm format:check && pnpm lint:all && pnpm type-check:all"
},
"devDependencies": {
"@eslint/js": "^9.39.2",
"eslint": "^9.39.2",
"prettier": "^3.7.4",
"@eslint/js": "^10.0.1",
"eslint": "^10.0.1",
"prettier": "^3.8.1",
"prettier-plugin-astro": "^0.14.1",
"typescript": "^5.9.3",
"typescript-eslint": "^8.51.0"
"typescript-eslint": "^8.56.0"
}
}
4 changes: 2 additions & 2 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
"type-check": "astro check"
},
"dependencies": {
"astro": "^5.16.6",
"astro": "^5.17.3",
"d3": "^7.9.0"
},
"devDependencies": {
"@astrojs/check": "^0.9.6",
"@types/d3": "^7.4.3",
"eslint-plugin-astro": "^1.5.0"
"eslint-plugin-astro": "^1.6.0"
}
}
6 changes: 4 additions & 2 deletions packages/docs/src/components/DependencyStats.astro
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ const chartBuildSizeProdData = validForCharts.map((f) => ({
tab.addEventListener('click', () => setActive(index))

tab.addEventListener('keydown', (e: KeyboardEvent) => {
let newIndex = index
let newIndex
if (e.key === 'ArrowLeft' || e.key === 'ArrowUp') {
e.preventDefault()
newIndex = index === 0 ? tabs.length - 1 : index - 1
Expand All @@ -417,7 +417,9 @@ const chartBuildSizeProdData = validForCharts.map((f) => ({
} else if (e.key === 'End') {
e.preventDefault()
newIndex = tabs.length - 1
} else return
} else {
return
}
;(tabs[newIndex] as HTMLButtonElement).focus()
setActive(newIndex)
})
Expand Down
1 change: 0 additions & 1 deletion packages/docs/src/components/FrameworkDetail.astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type { CollectionEntry } from 'astro:content'
import { formatBytesToMB, formatTimeMs } from '../lib/utils'
import DevTimeChart from './DevTimeChart.astro'
import MethodologyTag from './MethodologyTag.astro'
import MethodologyNotes from './MethodologyNotes.astro'
import '../styles/shared.css'
import PageHeader from './PageHeader.astro'
import SSRStatsMethodologyNotes from './SSRStatsMethodologyNotes.astro'
Expand Down
12 changes: 6 additions & 6 deletions packages/stats-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
"type-check": "tsc --noEmit"
},
"dependencies": {
"react-router": "7.10.1",
"next": "16.1.1",
"react": "19.2.3",
"react-dom": "19.2.3",
"tinybench": "^2.6.0",
"react-router": "7.13.0",
"next": "16.1.6",
"react": "19.2.4",
"react-dom": "19.2.4",
"tinybench": "^6.0.0",
"zod": "^4.3.6"
},
"devDependencies": {
"@types/node": "^25.0.3"
"@types/node": "^25.3.0"
}
}
12 changes: 6 additions & 6 deletions packages/stats-generator/src/ssr/run-benchmark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export async function runBenchmark(
time: 10_000,
setup: async (task, mode) => {
if (mode === 'run') {
console.log(`Running ${task.name} benchmark...`)
console.log(`Running ${task?.name} benchmark...`)
}
},
})
Expand All @@ -86,14 +86,13 @@ export async function runBenchmark(
})
}

await bench.warmup()
await bench.run()

const results: SSRBenchmarkResult[] = []

for (const config of handlers) {
const task = bench.getTask(config.name)
if (!task || !task.result) continue
if (!task || !task.result || task.result.state !== 'completed') continue

const { body, length } = await runHandler(config.handler, true)
const duplicationFactor = getDuplicationFactor(body)
Expand All @@ -102,9 +101,10 @@ export async function runBenchmark(
name: config.name,
displayName: config.displayName,
package: config.package,
opsPerSec: Math.round(task.result.hz),
avgLatencyMs: Number(task.result.mean.toFixed(3)),
samples: task.result.samples.length,
// TODO (jg): what is this meant to be?
opsPerSec: Math.round(task.result.latency.mean),
avgLatencyMs: Number(task.result.latency.mean.toFixed(3)),
samples: task.result.latency.samples?.length ?? 0,
bodySizeKb: Number((length / 1024).toFixed(2)),
duplicationFactor: Number(duplicationFactor.toFixed(2)),
})
Expand Down
Loading
Loading