Skip to content

perf: sysbench random_ranges_1000 TPS 暴跌 97%,二分定位到 PR #26850 (cost encoded regular index access) #26971

Description

@Ariznawlll

问题描述

08-09 nightly 回归发现 sysbench1000w random_ranges_1000 TPS 严重退化,自动二分定位到 PR #26850。

二分结果

Field Value
First bad commit f9a3184c3ae2
PR #26850 — perf(plan): cost encoded regular index access
Author @XuPeng-SH
Last good commit df49b097935c — fix(plan): reject invalid ALTER COLUMN defaults (#26880)
退化指标 sysbench_random_ranges_10_10000000 | vuser=1000
Baseline TPS 41,167
Bad commit TPS 886
Delta -97.85%

二分过程

轮次 Commit 判定 TPS Delta
Baseline 54303518d good 41,167 —
Suspect bad 00cb7ef31 bad 1,373 -96.66%
Round 1 866517223 bad 1,131 -97.25%
Round 2 8be242b25 good 36,639 -11.00%
Round 3 bc74d70da bad 1,105 -97.32%
Round 4 df49b0979 good 38,710 -5.97%
Round 5 f9a3184c3 bad 1,063 -97.42%
Round 6 f9a3184c3 found 886 -97.85%

分析

PR #26850 修改了优化器对 encoded regular index access 的代价估算模型,导致 random_ranges 查询选择了更差的执行计划,TPS 从 41,167 暴跌到 ~1,000。

参考

Activity

  1. added
    kind/bug
    on Aug 11, 2026
  2. added theissue type on Aug 11, 2026
  3. added this to the MO-202608 milestone on Aug 11, 2026
  4. added a commit that references this issue on Aug 11, 2026
    3f2ed9b
  5. Ariznawlll commented on Aug 13, 2026

    @Ariznawlll
    CollaboratorAuthor

    昨天晚上的性能还没有恢复:

    commit: 6a29b7d

    Image
  6. added a commit that references this issue on Aug 13, 2026
    600db02
  7. XuPeng-SH commented on Aug 14, 2026

    @XuPeng-SH
    Contributor

    fixed

  8. Ariznawlll commented on Aug 15, 2026

    @Ariznawlll
    CollaboratorAuthor
    Image

    最新main random_ranges性能已恢复

  9. added 6 commits that reference this issue on Sep 17, 2026
    5c00c2f
    4fa18a2
    65ee36b
    213269e
    9f91029
    f8bd119
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugseverity/s-1

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions