Repository navigation
v1.4.2 — Measured, not claimed · 实测,不是口号
English · 中文
English
The README's comparison table described behaviour. It now carries measurements — and the suite that produces them fails the day they stop being true.
A reproducible benchmark
npm run bench (tests/bench.mjs, no dependencies) drives a fixed 60-module fixture through the real /flow-import command and the real undo manager, then prints:
| measured | value |
|---|---|
| import (cold / warm) | ≈90 ms / ≈70 ms (65–120 ms across runs) |
| agent wakeups during import | 0 |
| prompt tokens spent on import | 0 |
| tasks / module nodes produced | 9 / 39 |
| tasks derived from TODO / FIXME / HACK | 5 |
| two independent imports agree on analysis fields | 48 / 48 |
| undo checks (byte-exact restore, added file removed, report accurate) | 4 / 4 |
The fixture is generated by a pure function, so it is identical on every machine. The run exits non-zero if determinism or undo stops holding — that is what keeps the published table from rotting.
What it deliberately does not measure
What a model would spend writing the same plan in the transcript. Nobody measured that here, so the README states a labelled lower bound (source bytes ÷ 4 ≈ 3.5k tokens) instead of inventing a saving percentage. A claim without evidence is the exact thing this plugin exists to avoid — the benchmark follows the same rule as the product.
Also in this release
- Timings are published as a range (65–120 ms), not one run's number, because repeat runs vary while the zeros and the agreement counts do not.
benchruns as the 18th suite innpm testand in CI on all three platforms, so a regression in determinism or undo shows up as a red build rather than as a stale README.
Full changelog: v1.4.1...v1.4.2
中文
README 里的对比表原先只是在描述行为,现在它带着测量结果——而且产生这些结果的套件,会在数字不再成立的那天变红。
可复现的基准
npm run bench(tests/bench.mjs,零依赖)把一份固定的 60 模块夹具喂给真实的 /flow-import 命令与真实的撤销管理器,然后输出:
| 实测项 | 数值 |
|---|---|
| 导入(冷 / 热) | ≈90 ms / ≈70 ms(多次运行 65–120 ms) |
| 导入期间唤醒 agent 次数 | 0 |
| 导入消耗的 prompt token | 0 |
| 产出的任务 / 模块节点数 | 9 / 39 |
| 由 TODO / FIXME / HACK 生成的任务 | 5 |
| 两次独立导入的分析字段一致数 | 48 / 48 |
| 撤销校验(逐字节还原、新增文件移除、报告准确) | 4 / 4 |
夹具由纯函数生成,在任何机器上都完全一致。只要确定性或撤销不再成立,这次运行就返回非零——这就是这张表不会悄悄过期的原因。
它刻意不测什么
模型在对话里写同样计划会花多少 token。这里没人测过,所以 README 只给出一个标明来源的下界(源码字节 ÷ 4 ≈ 3.5k token),而不是编一个节省百分比。没有证据的声明,正是这个插件想避免的东西——基准遵循和产品同一条规则。
本版还包括
- 耗时以区间形式发布(65–120 ms),而不是单次数字:重复运行会浮动,但两个 0 和一致计数不会。
bench作为第 18 个套件进入npm test与三平台 CI,所以确定性或撤销一旦退化,是一条红灯,而不是一段过期的 README。
完整变更:v1.4.1...v1.4.2