Skip to content

Commit 1f0f83e

Browse files
committed
[test] Measure gzip sizes without metadata. NFC
Writing to a temporary gzip file, measuring and then deleting is both inefficient, but also results in a slightly larger reported size because it then also writes extra metadata like the original filename. That metadata is not something we care about measuring, as more often than not compression on the Web happens on the fly anyway.
1 parent d0460ec commit 1f0f83e

File tree

57 files changed

+94
-99
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+94
-99
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"a.html": 519,
3-
"a.html.gz": 364,
3+
"a.html.gz": 357,
44
"a.js": 3853,
5-
"a.js.gz": 2050,
5+
"a.js.gz": 2045,
66
"a.wasm": 1294,
7-
"a.wasm.gz": 864,
7+
"a.wasm.gz": 857,
88
"total": 5666,
9-
"total_gz": 3278
9+
"total_gz": 3259
1010
}

test/code_size/embind_hello_wasm.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"a.html": 552,
3-
"a.html.gz": 380,
3+
"a.html.gz": 373,
44
"a.js": 7680,
5-
"a.js.gz": 3363,
5+
"a.js.gz": 3358,
66
"a.wasm": 7300,
7-
"a.wasm.gz": 3348,
7+
"a.wasm.gz": 3341,
88
"total": 15532,
9-
"total_gz": 7091
9+
"total_gz": 7072
1010
}

test/code_size/embind_val_wasm.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"a.html": 552,
3-
"a.html.gz": 380,
3+
"a.html.gz": 373,
44
"a.js": 5748,
5-
"a.js.gz": 2563,
5+
"a.js.gz": 2558,
66
"a.wasm": 9101,
7-
"a.wasm.gz": 4698,
7+
"a.wasm.gz": 4691,
88
"total": 15401,
9-
"total_gz": 7641
9+
"total_gz": 7622
1010
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"a.html": 519,
3-
"a.html.gz": 364,
3+
"a.html.gz": 357,
44
"a.js": 830,
5-
"a.js.gz": 530,
5+
"a.js.gz": 525,
66
"a.wasm": 1891,
7-
"a.wasm.gz": 1082,
7+
"a.wasm.gz": 1075,
88
"total": 3240,
9-
"total_gz": 1976
9+
"total_gz": 1957
1010
}

test/code_size/hello_webgl2_wasm.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"a.html": 454,
3-
"a.html.gz": 328,
3+
"a.html.gz": 321,
44
"a.js": 4386,
5-
"a.js.gz": 2252,
5+
"a.js.gz": 2247,
66
"a.wasm": 8286,
7-
"a.wasm.gz": 5617,
7+
"a.wasm.gz": 5610,
88
"total": 13126,
9-
"total_gz": 8197
9+
"total_gz": 8178
1010
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"a.html": 346,
3-
"a.html.gz": 262,
3+
"a.html.gz": 255,
44
"a.js": 18078,
5-
"a.js.gz": 9781,
5+
"a.js.gz": 9776,
66
"total": 18424,
7-
"total_gz": 10043
7+
"total_gz": 10031
88
}

test/code_size/hello_webgl_wasm.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"a.html": 454,
3-
"a.html.gz": 328,
3+
"a.html.gz": 321,
44
"a.js": 3924,
5-
"a.js.gz": 2092,
5+
"a.js.gz": 2087,
66
"a.wasm": 8286,
7-
"a.wasm.gz": 5617,
7+
"a.wasm.gz": 5610,
88
"total": 12664,
9-
"total_gz": 8037
9+
"total_gz": 8018
1010
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"a.html": 346,
3-
"a.html.gz": 262,
3+
"a.html.gz": 255,
44
"a.js": 17605,
5-
"a.js.gz": 9614,
5+
"a.js.gz": 9609,
66
"total": 17951,
7-
"total_gz": 9876
7+
"total_gz": 9864
88
}

test/code_size/hello_world_wasm.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"a.html": 552,
3-
"a.html.gz": 380,
3+
"a.html.gz": 373,
44
"a.js": 287,
5-
"a.js.gz": 247,
5+
"a.js.gz": 242,
66
"a.wasm": 95,
7-
"a.wasm.gz": 108,
7+
"a.wasm.gz": 101,
88
"total": 934,
9-
"total_gz": 735
9+
"total_gz": 716
1010
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"a.html": 323,
3-
"a.html.gz": 253,
3+
"a.html.gz": 246,
44
"a.js": 965,
5-
"a.js.gz": 593,
5+
"a.js.gz": 588,
66
"total": 1288,
7-
"total_gz": 846
7+
"total_gz": 834
88
}

0 commit comments

Comments
 (0)