Skip to content

pacquet: build / build-cache / run benchmark cells DNF because pacquet run / exec are not ported #17

Closed

Description

@zkochan

Problem

On benchmarks.vlt.sh, three variations show pacquet: DNF:

Variation pacquet pnpm bun vlt npm
build DNF 20.81 s 17.38 s 19.69 s 17.01 s
build-cache DNF 14.79 s 12.24 s 13.46 s 12.38 s
run DNF 0.52 s 0.004 s 0.17 s 0.10 s

These DNF for a real reason: pnpm run and the script-running infrastructure aren't ported in pacquet yet. From the pacquet roadmap scope note in pnpm/pnpm#11902:

pacquet's current surface area is the dependency-management commands — install, add, update, and remove. Every other command (publish, exec, run, dlx, audit, etc.) lives only in the TypeScript code…

These cells aren't a perf regression; they're a feature gap. But they show up as red on the public chart, which makes "pacquet vs the field" comparisons noisier than they should be.

Two ways forward

A. Port pacquet run (and its prerequisites). Brings pacquet onto the public chart for the script-running variations. Significant scope:

  • pnpm run <script> — execute a package.json script with PATH-prepended node_modules/.bin/.
  • pnpm run --recursive / workspace script execution — for the build variations against monorepos.
  • Lifecycle script execution (already partially in pacquet via the patches/postinstall plumbing in Command dedupe incorrectly fails on ERR_PNPM_MISSING_TIME pnpm#11629, but the user-facing run entry point isn't there).
  • pnpm exec — adjacent and likely shares most of the code.
  • pnpm dlx — temporary tree + run.

Largest port is the script runner itself (currently exec/lifecycle/). Pacquet has the lifecycle-script execution primitives (it runs postinstall hooks during install), so this is mostly wiring a CLI entry point on top.

B. Get vlt to exclude DNF cells from charts when the gap is feature-not-yet-ported, not failure. vlt's --ignore-failure flag captures non-zero exits as DNF without distinguishing "command doesn't exist" from "command crashed." If vlt exposed a way to opt out of variations a pkg manager doesn't claim to implement (or just marked the cell n/a instead of DNF for missing commands), the comparison would be cleaner without porting work in pacquet.

(A) is the larger but more useful follow-up — pacquet run is a real feature gap users hit. (B) is a low-cost ask on vlt's side that would help in the meantime.

Suggested split

Treat (A) as a roadmap item under #11633 (Rust Roadmap) rather than a perf issue. This issue is just the placeholder so the tracker (#11902) can note that the build / build-cache / run rows are out of scope for install perf parity.

Scope

Documentation only — point pnpm/pnpm#11902 at this issue for the DNF cells. Concrete pacquet run work happens elsewhere.

Tracker: pnpm/pnpm#11902 · Roadmap: pnpm/pnpm#11633


Written by an agent (Claude Code, claude-opus-4-7).

Activity

  1. transferred this issue frompnpm/pnpmon Sep 26, 2026
  2. zkochan commented on Nov 8, 2026

    @zkochan
    MemberAuthor

    run, exec and dlx were ported (pnpm/pnpm#11938) and --filter works in recursive runs (pnpm/pnpm#12712), so the benchmark failures described here no longer have a cause.

    Written by an agent (Claude Code, claude-opus-5-5).

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