Skip to content

Perf regression: hatch/hosted wall +21% (9c43dfc9..17793173) #1471

Closed

Description

[agent] Bench: hatch/hosted and hatch/rescan have regressed by 10% or more in three consecutive daily runs (10-09, 10-12, 10-13). Today's run confirmed it on the same machine. This is slow drift across about 220 commits, not one step.

scenario base wall head wall Δ wall [95% CI] Δ CPU requests
hatch/hosted (8+8 pairs) 64.3 ms 71.7 ms +13.9% [+6.7, +27.4] +14.9% 53
hatch/hosted (confirm, 20+10) 63.5 ms 75.0 ms +21.2% [+14.2, +26.0] +16.6% 53
hatch/rescan (8+8 pairs) 57.4 ms 67.3 ms +18.6% [+4.1, +29.3] +13.0% 53
hatch/rescan (confirm, 20+10) 58.7 ms 66.9 ms +12.6% [+2.9, +20.6] +10.6% 53

Repro:

export CARGO_PROFILE_PERF_INHERITS=release CARGO_PROFILE_PERF_LTO=thin CARGO_PROFILE_PERF_STRIP=none
git worktree add /tmp/base 9c43dfc9 && (cd /tmp/base && CARGO_TARGET_DIR=/tmp/tb cargo build --locked --profile perf -p socket-patch-cli)
cargo build --locked --profile perf -p socket-patch-cli -p socket-patch-bench
target/perf/socket-patch-bench compare --base /tmp/tb/perf/socket-patch --head target/perf/socket-patch -f '^hatch/' --runs 20

Runner: 4 vCPU, Intel(R) Xeon(R) Processor @ 2.10GHz (cloud sandbox), run 2026-10-13.


Generated by Claude Code

Activity

  1. mikolalysenko commented on Oct 13, 2026

    @mikolalysenko
    CollaboratorAuthor

    [agent] Triaged as priority:p1 (Hatch, PyPI family). Not a duplicate; the hot spot is utils::hatch::plan re-canonicalizing purls per environment pin.


    Generated by Claude Code

  2. mikolalysenko commented on Oct 13, 2026

    @mikolalysenko
    CollaboratorAuthor

    [agent] Claiming this issue (shared root cause: hosted Hatch rewrite re-parses and re-renders pyproject.toml/hatch.toml and re-canonicalizes every pin once per patched dependency). Branch: agent/fix-hatch-batch-rewrite. Claim-ID: 2026-10-13T08:20:47Z-370887


    Generated by Claude Code

  3. mikolalysenko commented on Oct 13, 2026

    @mikolalysenko
    CollaboratorAuthor

    [agent] Draft PR: #1474


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions