Files
geMoldInsight/docs/archive/topics/performance/PERFORMANCE_BENCHMARKS.md
T
2026-09-02 18:18:42 +08:00

33 lines
1.2 KiB
Markdown
Raw 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.
# 性能基准定义(建议)
> 文档定位:**性能基准与压测口径的专题参考文档**。
> 本文给出建议性性能指标与测试数据口径,不作为当前实现状态的权威说明。当前状态见 [../../../STATUS.md](../../../STATUS.md),后续路线见 [../../../ROADMAP.md](../../../ROADMAP.md)。
## 1. 核心接口基准
| 场景 | 接口 | 指标 |
|---|---|---|
| 单订单创建 | POST /api/sales-orders | RT <= 300ms;P95 <= 500ms |
| 单订单修改 | PUT /api/sales-orders/{id} | RT <= 300ms;P95 <= 500ms |
| 采购收货入库 | POST /api/purchase-orders/{id}/receive | RT <= 300ms;P95 <= 500ms |
| 物料计划计算 | GET /api/sales-orders/{id}/production-plan | RT <= 300ms;P95 <= 500ms |
## 2. 压测资源与容量门槛
| 并发/吞吐 | CPU | 内存 | 错误率 |
|---|---|---|---|
| 200 TPS(持续) | <= 60% | <= 70% | <= 0.1% |
## 3. 测试数据要求
- 物料数 >= 10万
- 客户订单量 >= 1000万(或等比例分区仿真数据)
- 采购单量 >= 1000万
- 库存流水量 >= 1亿(用于验证索引与分区收益)
## 4. 报告产出
- pg_stat_statements TopN
- 接口 RT 分布(P50/P95/P99)
- 锁等待与死锁统计
- 索引命中率与缓存命中率