w-perf

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
Find performance issues with a measured baseline. Do not invent SLOs or impact percentages. Report-only unless the user asked to implement.
  1. Read testing docs for budgets if present. Capture a baseline with the repo profiler, traces, tests, or
    gh
    job timing — not estimates.
  2. Locate the owning hot path (query, render, allocation) with that evidence.
  3. Recommend the smallest change. Implement only when authorized. Re-measure after a change.
  4. If a new budget is required, document it in existing testing docs instead of inventing an SLO here.
  5. Docs:
    /w-docs
    if behavior or commands changed.
在已有测量基准的情况下发现性能问题。不要臆造 SLO 或影响百分比。除非用户要求实施,否则仅进行报告。
  1. 阅读测试文档以了解现有预算(如有)。使用 repo profiler、traces、tests 或
    gh
    job timing 捕获基准数据,而不是使用估算值。
  2. 根据这些证据定位所属的 hot path(query、render、allocation)。
  3. 推荐最小改动。仅在获得授权时实施。改动后重新测量。
  4. 如果需要设置新预算,将其记录在现有测试文档中,而不是在此臆造 SLO。
  5. 文档:如果行为或命令发生变化,请更新
    /w-docs
    。