Skip to content

Commit ab8f793

Browse files
committed
Automatic rebaseline of codesize expectations. NFC
This is an automatic change generated by tools/maint/rebaseline_tests.py. The following (4) test expectation files were updated by running the tests with `--rebaseline`: ``` codesize/test_codesize_hello_O0.json: 39332 => 39358 [+26 bytes / +0.07%] test/codesize/test_codesize_minimal_O0.expected.js updated codesize/test_codesize_minimal_O0.json: 20603 => 20629 [+26 bytes / +0.13%] codesize/test_unoptimized_code_size.json: 180926 => 180997 [+71 bytes / +0.04%] Average change: +0.08% (+0.04% - +0.13%) ```
1 parent 2279bcf commit ab8f793

File tree

4 files changed

+18
-17
lines changed

4 files changed

+18
-17
lines changed

test/codesize/test_codesize_hello_O0.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"a.out.js": 24194,
3-
"a.out.js.gz": 8693,
2+
"a.out.js": 24220,
3+
"a.out.js.gz": 8700,
44
"a.out.nodebug.wasm": 15138,
55
"a.out.nodebug.wasm.gz": 7455,
6-
"total": 39332,
7-
"total_gz": 16148,
6+
"total": 39358,
7+
"total_gz": 16155,
88
"sent": [
99
"fd_write"
1010
],

test/codesize/test_codesize_minimal_O0.expected.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
return;
2929
}
3030

31-
var currentSafariVersion = userAgent.includes("Safari/") && userAgent.match(/Version\/(\d+\.?\d*\.?\d*)/) ? humanReadableVersionToPacked(userAgent.match(/Version\/(\d+\.?\d*\.?\d*)/)[1]) : TARGET_NOT_SUPPORTED;
31+
var currentSafariVersion = userAgent.includes("Safari/") && !userAgent.includes("Chrome/") && userAgent.match(/Version\/(\d+\.?\d*\.?\d*)/) ? humanReadableVersionToPacked(userAgent.match(/Version\/(\d+\.?\d*\.?\d*)/)[1]) : TARGET_NOT_SUPPORTED;
3232
if (currentSafariVersion < 150000) {
3333
throw new Error(`This emscripten-generated code requires Safari v${ packedVersionToHumanReadable(150000) } (detected v${currentSafariVersion})`);
3434
}
@@ -709,6 +709,7 @@ async function createWasm() {
709709
var info = getWasmImports();
710710

711711
wasmBinaryFile ??= findWasmBinary();
712+
712713
var result = await instantiateAsync(wasmBinary, wasmBinaryFile, info);
713714
var exports = receiveInstantiationResult(result);
714715
return exports;

test/codesize/test_codesize_minimal_O0.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"a.out.js": 19467,
3-
"a.out.js.gz": 7003,
2+
"a.out.js": 19493,
3+
"a.out.js.gz": 7010,
44
"a.out.nodebug.wasm": 1136,
55
"a.out.nodebug.wasm.gz": 659,
6-
"total": 20603,
7-
"total_gz": 7662,
6+
"total": 20629,
7+
"total_gz": 7669,
88
"sent": [],
99
"imports": [],
1010
"exports": [
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
2-
"hello_world.js": 56928,
3-
"hello_world.js.gz": 17707,
2+
"hello_world.js": 56963,
3+
"hello_world.js.gz": 17715,
44
"hello_world.wasm": 15138,
55
"hello_world.wasm.gz": 7455,
6-
"no_asserts.js": 26632,
7-
"no_asserts.js.gz": 8884,
6+
"no_asserts.js": 26633,
7+
"no_asserts.js.gz": 8887,
88
"no_asserts.wasm": 12187,
99
"no_asserts.wasm.gz": 5984,
10-
"strict.js": 54903,
11-
"strict.js.gz": 17041,
10+
"strict.js": 54938,
11+
"strict.js.gz": 17049,
1212
"strict.wasm": 15138,
1313
"strict.wasm.gz": 7450,
14-
"total": 180926,
15-
"total_gz": 64521
14+
"total": 180997,
15+
"total_gz": 64540
1616
}

0 commit comments

Comments
 (0)