Files
cloudflare__vinext/examples/benchmarks/migrations/0001_init.sql
Steve Faulkner a62e5c4901 chore(benchmarks): remove Vite 7 runner, update Next.js to 16.2.1 (#699)
* chore(benchmarks): remove Vite 7 runner, update Next.js to 16.2.1

The vinext-rolldown benchmark runner was identical to the vinext runner
(both resolved to the same Vite version via catalog), producing
duplicate results on the dashboard. Remove it entirely and simplify
to a two-runner comparison: Next.js (Turbopack) vs vinext (Vite 8).

Also bump the Next.js benchmark dependency from 16.1.7 to 16.2.1 to
pick up recent performance improvements.

* fix: remove vinext-rolldown from pnpm-workspace.yaml, fix migration comment
2026-03-27 19:23:50 -05:00

49 lines
1.2 KiB
SQL

-- Benchmark results: one row per runner per commit.
-- Two rows per benchmark run (nextjs, vinext).
CREATE TABLE IF NOT EXISTS benchmark_results (
id INTEGER PRIMARY KEY AUTOINCREMENT,
-- Commit info
commit_sha TEXT NOT NULL,
commit_short TEXT NOT NULL,
commit_message TEXT,
commit_date TEXT NOT NULL,
-- Run metadata
run_date TEXT NOT NULL,
runner TEXT NOT NULL CHECK(runner IN ('nextjs', 'vinext')),
-- Build time (ms)
build_time_mean REAL,
build_time_stddev REAL,
build_time_min REAL,
build_time_max REAL,
-- Bundle size (bytes)
bundle_size_raw INTEGER,
bundle_size_gzip INTEGER,
bundle_file_count INTEGER,
-- Dev server cold start
dev_cold_start_ms REAL,
dev_peak_rss_kb REAL,
-- SSR throughput (future)
ssr_rps REAL,
ssr_ttfb_ms REAL,
-- System info
platform TEXT,
arch TEXT,
node_version TEXT,
cpu_count INTEGER,
run_count INTEGER,
created_at TEXT DEFAULT (datetime('now'))
);
CREATE INDEX IF NOT EXISTS idx_commit_sha ON benchmark_results(commit_sha);
CREATE INDEX IF NOT EXISTS idx_run_date ON benchmark_results(run_date);
CREATE INDEX IF NOT EXISTS idx_runner ON benchmark_results(runner);
CREATE INDEX IF NOT EXISTS idx_commit_date ON benchmark_results(commit_date);