Skip to content

perf: apm audit at least 2x #4940

Done
Done

Description

Part of #4942.

Goal: at least 2x on apm audit / apm audit --ci.

Approach (research lane): replay drift from the recorded deployment state instead of re-deriving it, plus an exact-equivalence indexed scan. Measured ceiling ~2.1x-2.3x (paired CPU, CI runners); the indexed scan alone is worth 16%-32%.

Done when: a PR lands enabled by default with a 3-OS CI-bench run at its final head and parity tests green. Follows the fresh-install work.

Activity

  1. added
    performance
    on Nov 23, 2026
  2. moved this from Todo to In Progress in APM Roadmapon Nov 23, 2026
  3. danielmeppiel commented on Nov 23, 2026

    @danielmeppiel
    CollaboratorAuthor

    Shipped in #5018 (merged c2e3ea8). apm audit now replays byte-copy packages from verified install records instead of re-reading them.

    Measured CPU (user+sys, p50) for apm audit on a 50-package project, 15 interleaved pairs per OS on CI runners, before -> after:

    OS before after removed
    Linux 9.31 s 5.22 s 43.9%
    Windows 10.92 s 6.81 s 37.6%
    macOS 8.77 s 5.00 s 43.0%

    APM_AUDIT_RECORDS=0 turns the replay off. Closing as done.

  4. moved this from In Progress to Done in APM Roadmapon 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

    performancestatus/triage-pendingtype/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions