cloudflare/vinext

Public

mirrored from https://github.com/cloudflare/vinextAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v0.0.9

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

examples/benchmarks/migrations/0001_init.sql

48lines · modecode

1-- Benchmark results: one row per runner per commit.
2-- Three rows per benchmark run (nextjs, vinext, vinext_rolldown).
3CREATE TABLE IF NOT EXISTS benchmark_results (
4 id INTEGER PRIMARY KEY AUTOINCREMENT,
5
6 -- Commit info
7 commit_sha TEXT NOT NULL,
8 commit_short TEXT NOT NULL,
9 commit_message TEXT,
10 commit_date TEXT NOT NULL,
11
12 -- Run metadata
13 run_date TEXT NOT NULL,
14 runner TEXT NOT NULL CHECK(runner IN ('nextjs', 'vinext', 'vinext_rolldown')),
15
16 -- Build time (ms)
17 build_time_mean REAL,
18 build_time_stddev REAL,
19 build_time_min REAL,
20 build_time_max REAL,
21
22 -- Bundle size (bytes)
23 bundle_size_raw INTEGER,
24 bundle_size_gzip INTEGER,
25 bundle_file_count INTEGER,
26
27 -- Dev server cold start
28 dev_cold_start_ms REAL,
29 dev_peak_rss_kb REAL,
30
31 -- SSR throughput (future)
32 ssr_rps REAL,
33 ssr_ttfb_ms REAL,
34
35 -- System info
36 platform TEXT,
37 arch TEXT,
38 node_version TEXT,
39 cpu_count INTEGER,
40 run_count INTEGER,
41
42 created_at TEXT DEFAULT (datetime('now'))
43);
44
45CREATE INDEX IF NOT EXISTS idx_commit_sha ON benchmark_results(commit_sha);
46CREATE INDEX IF NOT EXISTS idx_run_date ON benchmark_results(run_date);
47CREATE INDEX IF NOT EXISTS idx_runner ON benchmark_results(runner);
48CREATE INDEX IF NOT EXISTS idx_commit_date ON benchmark_results(commit_date);
49