Repository navigation
ci: comment nuxt.com preview links on docs pull requests - #1618
Conversation
commit: |
CLI benchmark
Full report
|
| Setting | Value |
|---|---|
| Baseline | ref:bb805cd1513a5bb16dcf6a710d084363e58ec2a8 (v4.0.1) |
| Head | local packages/nuxt-cli at 42bad14 (v4.0.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.97, 0.30, 0.10 |
| Run started | 2026-10-12T13:21:51.013Z |
Cold CLI startup
Median of 15 interleaved runs per command, one warmup discarded.
| Command | baseline v4.0.1 median | head v4.0.1 median | Delta | baseline v4.0.1 min / p95 | head v4.0.1 min / p95 |
|---|---|---|---|---|---|
nuxt --version |
67 ms | 66 ms | -1.7% | 64 ms / 70 ms | 64 ms / 72 ms |
nuxt --version (first output byte) |
63 ms | 62 ms | -1.5% | 60 ms / 66 ms | 59 ms / 67 ms |
nuxt --help |
145 ms | 144 ms | -0.4% | 139 ms / 153 ms | 141 ms / 154 ms |
nuxt --help (first output byte) |
139 ms | 138 ms | -0.8% | 134 ms / 147 ms | 136 ms / 148 ms |
nuxt dev --help |
105 ms | 108 ms | +2.5% | 103 ms / 111 ms | 104 ms / 110 ms |
nuxt dev --help (first output byte) |
100 ms | 103 ms | +2.3% | 98 ms / 106 ms | 98 ms / 105 ms |
nuxt <unknown-command> (no-op) |
152 ms | 155 ms | +1.4% | 149 ms / 156 ms | 147 ms / 159 ms |
nuxt <unknown-command> (no-op) (first output byte) |
146 ms | 148 ms | +1.3% | 143 ms / 150 ms | 141 ms / 153 ms |
Module load cost
Counted with a module.registerHooks load hook, compile cache disabled. Counts every JS module actually evaluated on that code path (native addons excluded). Built-ins loaded after bootstrap are counted separately, including the internal modules they load.
| Command | baseline v4.0.1 modules | head v4.0.1 modules | Delta | baseline v4.0.1 source bytes | head v4.0.1 source bytes | Delta | baseline v4.0.1 built-ins | head v4.0.1 built-ins | Delta |
|---|---|---|---|---|---|---|---|---|---|
nuxt --version |
35 | 35 | 0.0% | 298.0 kB | 298.0 kB | 0.0% | 27 | 27 | 0.0% |
nuxt --help |
135 | 135 | 0.0% | 847.3 kB | 847.3 kB | 0.0% | 87 | 87 | 0.0% |
nuxt dev --help |
64 | 64 | 0.0% | 455.5 kB | 455.5 kB | 0.0% | 87 | 87 | 0.0% |
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.1 | head v4.0.1 | Delta |
|---|---|---|---|
Direct dependencies of @nuxt/cli |
23 | 23 | 0.0% |
| Packages in the installed tree (unique name@version) | 39 | 39 | 0.0% |
| Unique package names | 39 | 39 | 0.0% |
| Package directories on disk (cross-check) | 32 | 32 | 0.0% |
Installed node_modules on disk |
2.46 MB | 2.46 MB | -0.0% |
| Installed files | 436 | 436 | 0.0% |
| Install wall time (warm npm cache, median of 3) | 1.33 s | 1.33 s | -0.2% |
| Published tarball (packed) | 241.4 kB | 241.4 kB | 0.0% |
| Published tarball (unpacked) | 783.7 kB | 783.7 kB | 0.0% |
| Files in tarball | 101 | 101 | 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.
Merging this PR will not alter performance
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to The preview-comment workflow can post on supported fork pull requests, and no merge-blocking issue was identified. Pre-merge checks |
|
Adds a
pull-previewworkflow that calls nuxt.com's reusablepull-preview-commentworkflow on docs pull requests.Adding the
preview:enabledlabel posts the preview link as comment (ie: https://nuxt.com/pull/cli/1608).Removing the label remove the link and disabled the preview.
🤖 Generated with Claude Code, reviewed by @larbish before opening.