Instatic — Benchmark Report
2026/9/16 15:20:19 网站建设 项目流程

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, it's all there.项目地址: https://gitcode.com/GitHub_Trending/in/Instatic

Run at: 2026-05-20T18:55:32.123Z Host: darwin arm64 Apple M2 Pro Bun: 1.3.11 Total wall time: 142.3s

Headline numbers

BenchMetricValue
Bundle compositionJS total (gz)909.8 KB
Eager (gz)209.6 KB
Publisher render pipeline100-node page40.2µs

...

Bundle composition

Ran in 0.3s.

Totals

labelfilesrawgzipbrotli

...

报告头部由编排器注入运行时间、宿主机信息与 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, it's all there.项目地址: https://gitcode.com/GitHub_Trending/in/Instatic

创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考

需要专业的网站建设服务?

联系我们获取免费的网站建设咨询和方案报价,让我们帮助您实现业务目标

立即咨询