import Link from "next/link"; import { notFound } from "next/navigation"; import type { ReactNode } from "react"; import type { Metadata } from "next"; import { contentMetadata } from "@/lib/page-meta"; import { docTitle, readDoc } from "@/lib/docs"; import { hasReports, listReports, REPORTED_SPECS } from "@/lib/reports"; import { SiteShell } from "@/components/site-shell"; // One reports index per spec that has one. Kept under the dynamic /docs/[slug] // tree so it never shadows the spec's own doc page. export function generateStaticParams(): Array<{ slug: string }> { return REPORTED_SPECS.map((slug) => ({ slug })); } export const dynamicParams = false; export async function generateMetadata({ params, }: { params: Promise<{ slug: string }>; }): Promise { const { slug } = await params; const md = readDoc(slug); const name = md ? docTitle(md, slug) : slug; return contentMetadata({ title: `${name} benchmark reports`, description: `Reproducible benchmark reports published with each release of the ${name} reference implementation.`, path: `/docs/${slug}/reports`, }); } export default async function ReportsIndex({ params, }: { params: Promise<{ slug: string }>; }): Promise { const { slug } = await params; if (!hasReports(slug)) notFound(); const md = readDoc(slug); const specTitle = md ? docTitle(md, slug) : slug; const reports = listReports(slug); return (

← {specTitle}

Benchmark reports

Each report is a reproducible run of the {specTitle} benchmark over a defined corpus, published with a release so the standard's claims rest on a measurement rather than an assertion. Anyone can reproduce one; the machine-readable JSON and the run's environment travel with every report.

{reports.length === 0 ? (

No reports published yet.

) : (
    {reports.map((r) => (
  • {r.implementation}

    {new Date(r.generatedAt).toISOString().slice(0, 10)} · {r.headline}

  • ))}
)}
); }