Skip to content

[重构] 抽取批量性能报表的展示辅助函数 #699

Open

Description

@Libotry

需求背景 / 当前现状

ais_bench/benchmark/summarizers/perf_batch.py 中数值格式化、可比性分组、最佳配置挑选、表格与 HTML 渲染等展示逻辑与数据收集逻辑混在同一文件,职责过重,新增报表格式时容易误改数据收集路径。

期望实现的功能内容

  • 将纯展示辅助函数原样抽取到 ais_bench/benchmark/summarizers/_perf_batch_presentation.py。
  • 报表格式、对外接口与评测运行逻辑完全不变(抽取后 43 个函数定义的 AST 对比一致)。
  • 补充 2 个回归测试,覆盖格式化与分组行为。

测试方案

  • 执行 pytest tests/UT/summarizers/test_perf_batch.py,期望全部通过。

该 Issue 对应一个纯重构 PR([refactor][summarizers]),不改变报表输出格式。

Activity

  1. github-actions commented on Nov 23, 2026

    @github-actions

    🌟欢迎给AISBench benchmark测评工具提issue,我们会尽快处理您的诉求~

  2. github-actions commented on Nov 23, 2026

    @github-actions

    🤖 基于AI机器人的issue内容完整性检查结果:

    问题内容检查结果

    检查状态

    FAIL

    详细检查

    • 问题/痛点描述: COMPLETE
    • 建议方案: COMPLETE
    • 预期价值: IN

    👉 如果想重新检查,在评论区@issue_checker即可。

    【强烈推荐❤️‍🔥】确保issue描述完整后,可以试着将issue交给Ask DeepWiki回答,deepwiki包含了和工具相关的所有知识库

  3. added
    content_check_failed
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    content_check_failedfeaturerefactor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions