Files
iAOP/tests/perf/__init__.py
T
bot_dev1 c4a3c2d04e feat(#87,#88): 采集/总线/LLM 路由 DLP NFR 压测套件
新增 tests/perf/ NFR 压测套件,对应 PRD 第 9 章 SLA 全量压测:

#88 LLM 路由/DLP 压测:
- DLP 敏感拦截率 100%(2000 样本,含 PII/凭证/工艺词,零漏拦)
- DLP 清洁零误报(1000 样本),单条 0.033ms / 30097 qps
- 路由敏感不泄漏云端 100%(1500 样本,≥96.5% 基线达标)
- 安全指令(停机)100% 转 block/人工

#87 采集/总线 NFR 压测:
- 采集 P99=312ms(≤1.8s,600 点位 30 轮),可用性 100%(≥99.8%),丢失率 0%(≤0.02%)
- 总线 6000 样本不丢不重(幂等去重)

合成数据集固定随机种子可重复,零外部依赖,CI 可直接执行。
运行:python -m unittest discover -s tests/perf -v
2026-08-04 18:43:39 +08:00

13 lines
632 B
Python
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.
# -*- coding: utf-8 -*-
"""iAOP NFR 压测套件(Issue #88 / #87)。
对应 PRD 第 9 章 NFR 压测:
- #88 LLM 路由 / DLP 压测(路由敏感命中率 ≥ 96.5% / DLP 拦截率 100%);
- #87 采集 / 总线 NFR 压测(P99 ≤ 1.8s / 丢失率 ≤ 0.02% / 可用性 ≥ 99.8%)。
本套件以**可重复的合成数据集**对内核组件做规模化压测,输出 SLA 达标结论。
全部基于各模块可注入接口运行,零外部依赖,CI 可直接执行。
运行:在仓库根目录执行 `python -m unittest discover -s tests/perf -v`
(_bootstrap.py 会自动加载四个 core 模块)。
"""