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
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.3",
"prettier": "^3.8.1",
"prettier-plugin-astro": "^0.14.1",
"typescript": "^5.9.3",
"typescript-eslint": "^8.51.0"
"typescript-eslint": "^8.57.0"
}
}
2 changes: 1 addition & 1 deletion packages/cwv-stats/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"type": "module",
"devDependencies": {
"@types/node": "^25.0.3"
"@types/node": "^25.5.0"
},
"dependencies": {
"@google-cloud/bigquery": "^8.1.1",
Expand Down
6 changes: 3 additions & 3 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": "^6.0.4",
"d3": "^7.9.0"
},
"devDependencies": {
"@astrojs/check": "^0.9.6",
"@astrojs/check": "^0.9.7",
"@types/d3": "^7.4.3",
"eslint-plugin-astro": "^1.5.0"
"eslint-plugin-astro": "^1.6.0"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import { buildInstallData, depsStats } from '../lib/collections'
import { buildInstallData } from '../lib/collections'
import { getFrameworkSlug } from '../lib/utils'
import StatsTable from './StatsTable.astro'

Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/components/ChartTabs.astro
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ const panel3Id = `${sectionId}-panel-3`
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 Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { defineCollection, z } from 'astro:content'
import { defineCollection } from 'astro:content'
import { glob } from 'astro/loaders'
import { z } from 'astro/zod'

const timeSchema = z.object({
avgMs: z.number(),
Expand All @@ -7,7 +9,7 @@ const timeSchema = z.object({
})

const devtimeCollection = defineCollection({
type: 'data',
loader: glob({ pattern: '*.json', base: './src/content/devtime' }),
schema: z.object({
name: z.string(),
type: z.string(),
Expand All @@ -29,7 +31,7 @@ const devtimeCollection = defineCollection({
})

const runtimeCollection = defineCollection({
type: 'data',
loader: glob({ pattern: '*.json', base: './src/content/runtime' }),
schema: z.object({
name: z.string(),
type: z.string(),
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.1",
"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.5.0"
}
}
11 changes: 5 additions & 6 deletions packages/stats-generator/src/ssr/run-benchmark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export async function runBenchmark(
const bench = new Bench({
time: 10_000,
setup: async (task, mode) => {
if (mode === 'run') {
if (mode === 'run' && task !== undefined) {
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,9 @@ 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,
opsPerSec: Math.round(task.result.throughput.mean),
avgLatencyMs: Number(task.result.latency.mean.toFixed(3)),
samples: task.result.throughput.samplesCount,
bodySizeKb: Number((length / 1024).toFixed(2)),
duplicationFactor: Number(duplicationFactor.toFixed(2)),
})
Expand Down
Loading
Loading