perf-baseline-manager

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

perf-baseline-manager

perf-baseline-manager

性能基线管理器

Manage baseline storage and comparison.
Follow
docs/perf-requirements.md
as the canonical contract.
管理基线存储与对比。
请以
docs/perf-requirements.md
作为标准约定。

Required Rules

强制规则

  • One baseline JSON per version.
  • Store under
    {state-dir}/perf/baselines/<version>.json
    .
  • Record metrics + environment metadata.
  • 每个版本对应一份基线JSON文件。
  • 存储路径为
    {state-dir}/perf/baselines/<version>.json
  • 记录指标数据 + 环境元数据。

Output Format

输出格式

baseline_version: <version>
metrics: <summary>
file: <path>
baseline_version: <version>
metrics: <summary>
file: <path>

Constraints

约束条件

  • Overwrite older baseline for the same version.
  • Do not create multiple files for one version.
  • 同一版本的旧基线将被覆盖。
  • 不得为同一版本创建多个文件。