test(tests): R4.3a browser re-measure of large files, leak series, WebKit repetition (stream sink, BYOB)
Streaming into FileBytes removes the file's JavaScript copy in Chromium and Firefox (50 MiB: 65 and 67 MiB summed growth against 56 and 79 for the TypeScript); WebKit keeps about 180 MiB for any file read inside a worker (272 against 76), a main-thread BYOB read feeding the worker's sink measured at 106. Corpus 666/678 on the stream path. Leak series (3 engines × 3 documents × 3 repetitions): Chromium ≤ 0.5 MiB over the last 5, Firefox within ±3 (idle only), WebKit copy +13 then level (12-import series −2.3). 20 dense imports in WebKit: no worker error event.
This commit is contained in:
1 parent
8924d50edf
commit
49591c53cd
14 files changed
+3002
-387
No files matched your search
@@ -0,0 +1,92 @@
|
||||
{
|
||||
"harness": "scripts/browser/r4-leak-series.mjs",
|
||||
"startedAt": "2026-10-18T16:46:09.204Z",
|
||||
"watchdog": {
|
||||
"ceilingBytes": 4294967296,
|
||||
"sampleIntervalMs": 50,
|
||||
"measure": "summed VmRSS (/proc/<pid>/status) of the browser process tree; content = renderer / Web Content / WPEWebProcess processes only",
|
||||
"onCeiling": "SIGKILL of the tree, run recorded as stopped_by_ceiling",
|
||||
"caveat": "The 4 GiB RSS watchdog is not a guaranteed memory limit: it samples every 50 ms, so a faster allocation can overshoot it before the kill; summed VmRSS counts shared pages once per process; a process outside the browser's tree is not seen."
|
||||
},
|
||||
"host": {
|
||||
"cpuModel": "11th Gen Intel(R) Core(TM) i7-11700B @ 3.20GHz",
|
||||
"logicalCpus": 16,
|
||||
"ramBytes": 15815053312,
|
||||
"memAvailableBytesAtStart": 10103877632,
|
||||
"kernel": "7.0.0-38-generic",
|
||||
"arch": "x64",
|
||||
"node": "v24.21.0",
|
||||
"memAvailableBytesAtEnd": 10105147392
|
||||
},
|
||||
"module": {
|
||||
"pkg": {
|
||||
"dir": "packages/core-wasm/pkg",
|
||||
"servedFrom": "a copy made at the start of the run",
|
||||
"wasmBytes": 1261265,
|
||||
"wasmSha256": "dd10306572ef8a7d75c097800a78449990ec82488b11763d39f7a0b7ee8910a4",
|
||||
"glueSha256": "a086e39e061244dbf33fc59854732250baa10637b9ec1fc81af65e000ba7a11a",
|
||||
"buildStamp": "f6c50ae2940b312ed5f94cee1b6b61ae90006d73b0be734497b570800c432d13",
|
||||
"memory": {
|
||||
"initialPages": 19,
|
||||
"maximumPages": 16384,
|
||||
"maximumBytes": 1073741824
|
||||
}
|
||||
},
|
||||
"proofs": {
|
||||
"dir": "packages/core-wasm/pkg-proofs",
|
||||
"servedFrom": "a copy made at the start of the run",
|
||||
"wasmBytes": 1271063,
|
||||
"wasmSha256": "060f51241c04a182c0014eaf0e5bd10c0b3e19eb113883792a8a2399680ba1c5",
|
||||
"glueSha256": "82b33a0155f1187a92ff07157f787d42fc0f469bc4b97022309f90a745d6297d",
|
||||
"buildStamp": "f6c50ae2940b312ed5f94cee1b6b61ae90006d73b0be734497b570800c432d13",
|
||||
"memory": {
|
||||
"initialPages": 19,
|
||||
"maximumPages": 16384,
|
||||
"maximumBytes": 1073741824
|
||||
}
|
||||
},
|
||||
"sourcesStamp": "f6c50ae2940b312ed5f94cee1b6b61ae90006d73b0be734497b570800c432d13",
|
||||
"pkgStampCurrent": true,
|
||||
"proofsStampCurrent": true,
|
||||
"note": "sourcesStamp is scripts/wasm-stamp.mjs on the working tree; a stamp that differs means the sources changed after the module was built",
|
||||
"headCommit": "8924d50"
|
||||
},
|
||||
"server": {
|
||||
"bind": "127.0.0.1",
|
||||
"csp": "default-src 'self'; img-src 'self' data: blob:; style-src 'self' 'unsafe-inline'; script-src 'self' 'wasm-unsafe-eval'; font-src 'self' data:; object-src 'none'; base-uri 'self'; frame-ancestors 'none'",
|
||||
"mounts": [
|
||||
"/r4/",
|
||||
"/pkg/",
|
||||
"/pkg-proofs/"
|
||||
],
|
||||
"page": "/r4/ (scripts/browser/r4-import-page)"
|
||||
},
|
||||
"playwrightCore": "1.64.0",
|
||||
"page": {
|
||||
"worker": "module worker /r4/worker.js, one per import, terminated",
|
||||
"readPath": "stream",
|
||||
"imports": {
|
||||
"init": 1,
|
||||
"then": 12,
|
||||
"reps": 1
|
||||
},
|
||||
"betweenMs": 2000,
|
||||
"finalIdleMs": 5000,
|
||||
"webkitImports": 20
|
||||
},
|
||||
"readings": "Readings: content RSS of the browser tree after each import, 2 s idle after the worker is terminated; Chromium adds a forced GC (CDP HeapProfiler.collectGarbage) + 1 s before each reading, Firefox and WebKit are read after idle only (no forced GC: indicative). Start = after the file is set (GC + 1 s, or 5 s idle); final = after 5 s more idle. Init Δ = L1 − L0; recurring = L7 − L2 (the last 5 imports).",
|
||||
"endedAt": "2026-10-18T16:48:02.145Z",
|
||||
"engines": {
|
||||
"webkit": "27.2"
|
||||
},
|
||||
"leak": {
|
||||
"runs": [
|
||||
{"engine":"webkit","engineVersion":"27.2","section":"leak","class":"L-envelope","fileBytes":403247,"readPath":"stream","rep":1,"outcome":"series","reading":"idle only","outcomes":["ok","ok","ok","ok","ok","ok","ok","ok","ok","ok","ok","ok","ok"],"pageMs":[49,45,32,29,46,39,29,46,35,31,35,36,26],"workerEvents":[],"levels":{"content":[257142784,278634496,279764992,279121920,279404544,280113152,279724032,279937024,278626304,278454272,279080960,280436736,280666112,281272320,281010176],"summed":[487469056,509325312,510554112,509984768,510255104,510976000,510713856,510910464,509673472,509489152,510185472,511578112,511827968,512458752,512196608]},"deltas":{"content":{"init":21491712,"perImport":[1130496,-643072,282624,708608,-389120,212992,-1310720,-172032,626688,1355776,229376,606208],"last5":2646016,"finalIdle":-262144,"last5AtFinal":2383872},"summed":{"init":21856256,"perImport":[1228800,-569344,270336,720896,-262144,196608,-1236992,-184320,696320,1392640,249856,630784],"last5":2785280,"finalIdle":-262144,"last5AtFinal":2523136}},"peakBytes":527749120,"peakContentBytes":295723008},
|
||||
{"engine":"webkit","engineVersion":"27.2","section":"leak","class":"dense-numbers-16mib","fileBytes":16777384,"readPath":"stream","rep":1,"outcome":"series","reading":"idle only","outcomes":["refused attachment_stripped","refused attachment_stripped","refused attachment_stripped","refused attachment_stripped","refused attachment_stripped","refused attachment_stripped","refused attachment_stripped","refused attachment_stripped","refused attachment_stripped","refused attachment_stripped","refused attachment_stripped","refused attachment_stripped","refused attachment_stripped"],"pageMs":[135,136,124,124,128,128,128,134,120,124,124,134,127],"workerEvents":[],"levels":{"content":[256962560,298262528,319193088,320016384,321708032,320827392,314339328,314630144,314773504,313610240,314064896,313356288,313532416,313409536,313188352],"summed":[487718912,529301504,550281216,551108608,552869888,552062976,545599488,545923072,546029568,544903168,545292288,544645120,544854016,544755712,544534528]},"deltas":{"content":{"init":41299968,"perImport":[20930560,823296,1691648,-880640,-6488064,290816,143360,-1163264,454656,-708608,176128,-122880],"last5":-1363968,"finalIdle":-221184,"last5AtFinal":-1585152},"summed":{"init":41582592,"perImport":[20979712,827392,1761280,-806912,-6463488,323584,106496,-1126400,389120,-647168,208896,-98304],"last5":-1273856,"finalIdle":-221184,"last5AtFinal":-1495040}},"peakBytes":619933696,"peakContentBytes":380936192},
|
||||
{"engine":"webkit","engineVersion":"27.2","section":"leak","class":"dense-numbers-copy-16mib","fileBytes":16777151,"readPath":"stream","rep":1,"outcome":"series","reading":"idle only","outcomes":["refused invalid","refused invalid","refused invalid","refused invalid","refused invalid","refused invalid","refused invalid","refused invalid","refused invalid","refused invalid","refused invalid","refused invalid","refused invalid"],"pageMs":[143,101,114,109,114,100,98,112,113,112,113,104,98],"workerEvents":[],"levels":{"content":[257040384,292769792,306499584,325971968,326844416,324005888,321024000,321863680,321683456,320643072,319561728,319348736,319119360,319225856,319057920],"summed":[487305216,523325440,537153536,556666880,557621248,554815488,551956480,552800256,552611840,551583744,550518784,550330368,550105088,550248448,550080512]},"deltas":{"content":{"init":35729408,"perImport":[13729792,19472384,872448,-2838528,-2981888,839680,-180224,-1040384,-1081344,-212992,-229376,106496],"last5":-2457600,"finalIdle":-167936,"last5AtFinal":-2625536},"summed":{"init":36020224,"perImport":[13828096,19513344,954368,-2805760,-2859008,843776,-188416,-1028096,-1064960,-188416,-225280,143360],"last5":-2363392,"finalIdle":-167936,"last5AtFinal":-2531328}},"peakBytes":642936832,"peakContentBytes":405258240}
|
||||
]
|
||||
},
|
||||
"webkitRepeat": {
|
||||
"runs": []
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user