Repository navigation
Commit 7cf001f
* bench: run each section in its own process (#231)
jsdom permanently retains memory on every string-path DOMPurify sanitize
call, so in one process the bench's string-path fixtures table (~3.5 GB
retained) carried into every later section and kept the job at a heap
cliff. The bench is now a runner that spawns one child per section,
sequentially, and collects each child's memory over IPC.
- Each section prints a `memory [...]` line (rss / heapUsed / peak RSS).
- The runner ends with a per-section summary (result, wall time, peak RSS)
and names any section that failed; other sections still run.
- `--section <name>` runs one section in-process; `--in-process` keeps
the old single-process behaviour for comparison.
- Docs: ARCHITECTURE bench section, a jsdom SSR note in SECURITY, and an
updated ci.yml comment.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F6vooHKVSXCabQW89yiiDs
* bench: settle child on 'close' and 'error'; fix OOM comment
Resolve on 'close' so the last IPC memory message is always delivered,
record a failed spawn as a failed section instead of hanging, and correct
the comment: an OOM abort shows as 'killed SIGABRT', not exit 134.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01F6vooHKVSXCabQW89yiiDs
---------
Co-authored-by: Claude <noreply@anthropic.com>
1 parent 730c382 commit 7cf001f
4 files changed
Lines changed: 624 additions & 388 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
222 | | - | |
223 | 221 | | |
224 | 222 | | |
225 | 223 | | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
673 | 673 | | |
674 | 674 | | |
675 | 675 | | |
| 676 | + | |
| 677 | + | |
676 | 678 | | |
677 | 679 | | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
678 | 690 | | |
679 | 691 | | |
680 | 692 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
89 | 97 | | |
90 | 98 | | |
91 | 99 | | |
| |||
0 commit comments