Files
edict/docs/performance-baseline-plan.md
cft0808 66630203a4 docs: 补充项目设计文档、计划文档与截图资产
- 新增 docs/design-*.md:Docker 一键体验、御批模式、移动端响应式三个功能详细设计
- 新增 docs/dashboard-upgrade-plan.md、docs/performance-baseline-plan.md:看板升级和性能基线计划
- 新增 docs/screenshots/:看板界面全套截图(任务看板、官员总览、派发、新闻等共 28 张)
- 新增 edict/朝堂议政_开发规格.md:多 Agent 协作分析系统 Copilot 开发规格 v1.0
- .gitignore:排除 dashboard/dist/ 构建产物
2026-04-27 22:44:39 +08:00

27 lines
958 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 性能基线测量计划
> 任务IDJJC-20260303-001 · 门下省修订要求
> 执行:户部
## 测量指标
| 指标 | 工具 | 方法 |
|------|------|------|
| 首屏加载 (LCP) | Lighthouse CLI | `npx lighthouse http://localhost:3926 --output=json` |
| 首次可交互 (TTI) | Lighthouse CLI | 同上 |
| Bundle 大小 | `npm run build` | 记录 `dist/` 总体积及各 chunk |
| API P95 响应时间 | autocannon / k6 | `GET /api/tasks` 1000次请求 |
| 内存占用 | Chrome DevTools / `process.memoryUsage()` | 稳态 + 50任务负载 |
## 执行步骤
1. **升级前**(当前版本)执行全量测量,输出 `docs/baseline-before.json`
2. 第一批功能全部合并后,同条件再测,输出 `docs/baseline-after.json`
3. 生成对比报告 `docs/performance-comparison.md`
## 通过标准
- LCP 不超过基线 +20%(目标 < 2s
- API P95 不超过基线 +15%(目标 < 200ms
- Bundle 大小不超过基线 +15%