• 陈泽健's avatar
    feat(performance): 批量执行合并报告实现(数据持久化 + 聚合算法 + API) · f38a23f1
    陈泽健 提交于
    - PerformanceBatchExecution / PerformanceProjectReport 模型实现(表已建立)
    - _aggregate_task_results 聚合算法: 求和/重算错误率与TPS/加权平均响应时间/
      取极值/加权近似分位数(p50/p90/p95/p99)/聚合标准差重算, 排除失败任务
    - 批量执行完成后自动生成合并报告并持久化, 返回 report_id
    - GET /api/performance/reports 按 project_id/batch_id 查询, ?latest=1 取最新
    - ProjectReportResponse/ProjectReportListResponse/TaskSummaryItem schema,
      BatchRunResponse 增加 report_id 字段
    Co-Authored-By: 's avatarClaude <noreply@anthropic.com>
    f38a23f1
performance.py 19.5 KB