Instatic — Benchmark Report

Instatic — Benchmark Report Instatic — Benchmark Report【免费下载链接】InstaticThe open-source alternative to Webflow, Framer and WordPress. Agentic self-hosted visual CMS outputting clean static pages. Users, roles, plugins, content, database, its all there.项目地址: https://gitcode.com/GitHub_Trending/in/InstaticRun at: 2026-05-20T18:55:32.123Z Host: darwin arm64 Apple M2 Pro Bun: 1.3.11 Total wall time: 142.3sHeadline numbersBenchMetricValueBundle compositionJS total (gz)909.8 KBEager (gz)209.6 KBPublisher render pipeline100-node page40.2µs...Bundle compositionRan in 0.3s.Totalslabelfilesrawgzipbrotli...报告头部由编排器注入运行时间、宿主机信息与 Bun 版本每个基准章节以 _Ran in X.Xs._ 标注单基准耗时Headline 表把每个基准 headline 里的键值对平铺同一基准的多行仅首行显示标题之后是各基准的深度明细每个 BenchSection 可选携带 intro 段落与 highlights 要点表格支持 notes 注释行。所有数据均由各基准模块自述标签与单位渲染器对任何单个基准保持零领域知识。 ## 八、扩展添加一个新基准 三步即可接入套件 1. 创建 scripts/bench/benches/name.ts导出 BenchModule 2. 把它加入 scripts/bench/index.ts 的 ALL_BENCHES若希望进默认集则同时加进 DEFAULT_BENCHES 3. 可选在 package.json 中加 bench:name 快捷脚本。 基准的 run(ctx) 应返回 BenchResult其中 headline 提供 2-4 组冒泡到顶层汇总表的键值对sections 提供 BenchRow 明细表每行含 inputs 与 metrics 列。README 中给出了最小实现示例 ts import type { BenchModule } from ../lib/types export const myBench: BenchModule { name: my-bench, title: My benchmark, description: Does something useful., async run(ctx) { // ... measure ... return { name: this.name, title: this.title, headline: { key metric: 42 ms }, sections: [ { title: Detailed results, rows: [ { label: thing A, metrics: { mean: 0.5ms, p95: 1.2ms } }, ], }, ], } }, }【免费下载链接】InstaticThe open-source alternative to Webflow, Framer and WordPress. Agentic self-hosted visual CMS outputting clean static pages. Users, roles, plugins, content, database, its all there.项目地址: https://gitcode.com/GitHub_Trending/in/Instatic创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考