You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ac223be
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: benchmarks/bundle-size/README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -114,6 +114,8 @@ Without `--name`, runs replace `current.json` and the logs for the steps they ru
114
114
Emitted bundles still use the shared `dist/` directory. To retain emitted bundles for a candidate, pass a separate `--dist-dir`.
115
115
116
116
`--baseline` accepts a run name or a JSON file path, such as `--baseline ./baseline.json`.
117
+
With `--scenario`, the comparison reports only the scenarios measured in the current run, even when the baseline contains more scenarios. Selected scenarios missing from the baseline remain visible with `n/a` for their baseline and deltas.
118
+
Without `--scenario`, comparisons include scenarios from either result file.
117
119
`--results-dir <dir>` changes the results root, including the location of named runs.
118
120
Use the same scenario selection and measurement flags for the baseline and candidate.
Use `pnpm benchmark:bundle-size:diff --baseline /tmp/base-current.json --current-only` to compare only scenarios present in the current results. This applies to both text and `--json` output; an explicit `--id` takes precedence.
137
+
134
138
For source attribution, run an analysis build. This uses hidden source maps and writes source estimates into `current.json`; those estimates are for investigation only, not tracking.
0 commit comments