Repository navigation
fix(dev): require a loopback peer for the error channel - #1547
Conversation
commit: |
CLI benchmark
Full report
|
| Setting | Value |
|---|---|
| Baseline | ref:000c43c8afdd98f00f276980daef27202e0b8200 (v4.0.0-alpha.1) |
| Head | local packages/nuxt-cli at e0701e8 (v4.0.0-alpha.1) |
| Node | v24.21.0 |
| OS | Linux 6.17.0 (kernel 6.17.0-1022-azure) |
| CPU | AMD EPYC 7763 64-Core Processor x 4 |
| Memory | 15.6 GB |
| Load average at start | 0.48, 0.13, 0.04 |
| Run started | 2026-09-21T22:11:15.883Z |
Cold CLI startup
Median of 15 interleaved runs per command, one warmup discarded.
| Command | baseline v4.0.0-alpha.1 median | head v4.0.0-alpha.1 median | Delta | baseline v4.0.0-alpha.1 min / p95 | head v4.0.0-alpha.1 min / p95 |
|---|---|---|---|---|---|
nuxt --version |
65 ms | 65 ms | -0.1% | 62 ms / 69 ms | 63 ms / 68 ms |
nuxt --version (first output byte) |
60 ms | 60 ms | -0.5% | 58 ms / 65 ms | 59 ms / 64 ms |
nuxt --help |
144 ms | 144 ms | -0.2% | 139 ms / 146 ms | 141 ms / 146 ms |
nuxt --help (first output byte) |
139 ms | 138 ms | -0.1% | 134 ms / 140 ms | 136 ms / 141 ms |
nuxt dev --help |
108 ms | 107 ms | -0.8% | 105 ms / 110 ms | 103 ms / 110 ms |
nuxt dev --help (first output byte) |
103 ms | 102 ms | -1.3% | 100 ms / 105 ms | 99 ms / 105 ms |
nuxt <unknown-command> (no-op) |
153 ms | 152 ms | -0.7% | 149 ms / 156 ms | 149 ms / 157 ms |
nuxt <unknown-command> (no-op) (first output byte) |
147 ms | 147 ms | -0.6% | 144 ms / 150 ms | 144 ms / 151 ms |
Module load cost
Counted with a module.registerHooks load hook, compile cache disabled. Counts every JS module actually evaluated on that code path (built-ins excluded, native addons excluded).
| Command | baseline v4.0.0-alpha.1 modules | head v4.0.0-alpha.1 modules | Delta | baseline v4.0.0-alpha.1 source bytes | head v4.0.0-alpha.1 source bytes | Delta |
|---|---|---|---|---|---|---|
nuxt --version |
37 | 37 | 0.0% | 302.3 kB | 302.3 kB | 0.0% |
nuxt --help |
139 | 139 | 0.0% | 1.03 MB | 1.03 MB | +0.1% |
nuxt dev --help |
82 | 82 | 0.0% | 643.0 kB | 644.4 kB | +0.2% |
Install footprint and published tarball
Each version installed on its own into an empty project with nothing but @nuxt/cli as a dependency, so the tree is exactly the CLI and its transitive dependencies. npm cache is warm and the registry is only consulted for metadata, so install wall time is indicative, not a network benchmark.
| Metric | baseline v4.0.0-alpha.1 | head v4.0.0-alpha.1 | Delta |
|---|---|---|---|
Direct dependencies of @nuxt/cli |
22 | 22 | 0.0% |
| Packages in the installed tree (unique name@version) | 38 | 38 | 0.0% |
| Unique package names | 38 | 38 | 0.0% |
| Package directories on disk (cross-check) | 31 | 31 | 0.0% |
Installed node_modules on disk |
2.37 MB | 2.37 MB | +0.1% |
| Installed files | 407 | 407 | 0.0% |
| Install wall time (warm npm cache, median of 3) | 1.27 s | 1.26 s | -0.5% |
| Published tarball (packed) | 228.7 kB | 229.0 kB | +0.2% |
| Published tarball (unpacked) | 746.9 kB | 748.3 kB | +0.2% |
| Files in tarball | 84 | 84 | 0.0% |
Interleaved runs on a shared runner: trust the deltas, not the absolute timings. The dev, restart and build suites run locally via pnpm bench:cli.
|
Understand this PRβs impact Explore downstream dependencies and potential security impact with Blast Radius. No actionable comments were generated in the recent review. π βΉοΈ Recent review infoβοΈ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: π Files selected for processing (4)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. π WalkthroughWalkthroughThe change adds Priority: β¬οΈ Low Estimated code review effort: 3 (Moderate) | ~20 minutes π₯ Pre-merge checks | β 4 | β 1β Failed checks (1 warning)
β Passed checks (4 passed)
β¨ Finishing Touches π‘ 1π Generate docstrings π‘
π§ͺ Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
π Linked issue
π Description
linked to nuxt/nuxt#36258, which gates the copies of the dev error channel that nuxt itself serves; this adds a similar
isLoopbackAddresscheck to nuxt/cli, which is what actually governs most nuxt sessions