Skip to content

fix(canvas): expose branded readonly TextMetrics width - #447

Merged
ldm0 merged 1 commit into
mainfrom
wpt/text-metrics-width
Sep 8, 2026
Merged

fix(canvas): expose branded readonly TextMetrics width#447
ldm0 merged 1 commit into
mainfrom
wpt/text-metrics-width

Conversation

@ldm0

@ldm0 ldm0 commented Sep 8, 2026

Copy link
Copy Markdown
Member

No description provided.

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

Sequential Navigation Soak A/B

✅ HEAD completed the 200-navigation resilience and memory observation.

One browser process, one target, and one CDP session navigate CSDN → SegmentFault → Huaban → example.com repeatedly. This run issued 200 Page.navigate commands per binary.

Common ancestor 4c00e6dab6 → HEAD 2439ebcbba; benchmark order: base-first; workflow: success.

Session resilience

Metric Base HEAD
Attempted / planned 200 / 200 200 / 200
Direct observable pass 200 / 200 200 / 200
Failures / recovered 0 / 0 0 / 0
Recovery failures 0 0
Lifecycle order violations 0 0
Network order violations 0 0
Wall time 272.2 s 270.9 s

A public-page failure is reported separately from an unrecoverable session. The soak requires all navigation attempts, zero failed recovery, zero lifecycle/network ordering violations, and complete resource evidence.

Process-tree memory

Metric Base HEAD Δ
Boundary samples 200 200 0
Boundary RSS samples 200 200 0
Boundary PSS samples 200 200 0
Periodic peak RSS 219.8 MiB 211.1 MiB -8.7 MiB
Periodic peak PSS 216.8 MiB 207.5 MiB -9.2 MiB
RSS · first 10 avg 163.5 MiB 146.2 MiB -17.3 MiB
RSS · last 10 avg 156.6 MiB 157.8 MiB +1.2 MiB
RSS · last − first window -6.9 MiB +11.6 MiB +18.5 MiB
RSS · warm slope / 100 nav +3.8 MiB -0.5 MiB -4.3 MiB
PSS · first 10 avg 160.1 MiB 142.5 MiB -17.6 MiB
PSS · last 10 avg 153.0 MiB 154.1 MiB +1.2 MiB
PSS · last − first window -7.1 MiB +11.6 MiB +18.8 MiB
PSS · warm slope / 100 nav +3.7 MiB -0.5 MiB -4.2 MiB
Peak file descriptors 60 60 0
Peak threads 31 31 0

HEAD memory by 50-navigation quarter

HEAD range Avg RSS Final RSS Peak RSS Avg PSS Final PSS Peak FD
1–50 157.9 MiB 150.0 MiB 212.2 MiB 154.2 MiB 146.4 MiB 50
51–100 158.2 MiB 140.9 MiB 194.1 MiB 154.7 MiB 137.3 MiB 56
101–150 158.2 MiB 153.0 MiB 194.3 MiB 154.7 MiB 149.4 MiB 50
151–200 159.3 MiB 143.0 MiB 198.3 MiB 155.7 MiB 139.4 MiB 50

Raw reports and per-navigation boundary samples: workflow run and full sequential-navigation-soak-results artifact.

Public-site timing and memory are observational. Use the A/B deltas and trend shape as evidence, not as a deterministic performance threshold.

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

Spider Bench A/B

✅ All benchmark browser service runs completed; results are informational.

Public HEAD: 184 / 240 rows; 38 / 48 sites produced rows; 10 unexpected empty sites.

✅ Deterministic fixture contract is clean.

Common ancestor 4c00e6dab6ae → HEAD 2439ebcbbae7; benchmark order: base-first; workflow: success.

Public 48-site run · informational

Metric Base HEAD Δ
Run status success success
Extracted rows / contract 184 / 240 184 / 240 0 (0.00%)
Contract fill 76.67% 76.67% 0.00 pp (0.00%)
Sites with rows 38 / 48 38 / 48 0 (0.00%)
Sites meeting row contract 36 / 48 36 / 48 0 (0.00%)
Unexpected empty sites 10 10 0 (0.00%)
Partial-row sites 2 2 0 (0.00%)
Site outcomes extracted: 36; HTTP error + rows: 2; empty: 7; HTTP error + empty: 1; snapshot error + empty: 2 extracted: 37; HTTP error + rows: 1; empty: 7; HTTP error + empty: 1; snapshot error + empty: 2
Observed duration 47.50 s 45.25 s -2.25 s (-4.73%)
Estimated CPU 46.06 s 43.94 s -2.11 s (-4.59%)
Peak PSS 188.29 MiB 205.39 MiB +17.09 MiB (+9.08%)
Peak RSS 192.51 MiB 209.15 MiB +16.64 MiB (+8.64%)
Peak threads 27 27 0 (0.00%)
Mismatched sites 0 0 0
Timeout with items 0 0 0
Category rows Base HEAD Δ
news 35 / 40 35 / 40 0
stocks 20 / 40 20 / 40 0
tech 35 / 40 35 / 40 0
sports 27 / 40 27 / 40 0
games 37 / 40 37 / 40 0
life 30 / 40 30 / 40 0

Public-site content, timing, and memory are noisy. This single A/B run reports evidence only; site outcome counts explain missing rows without treating them as a deterministic regression.

CPU and memory timelines

These are bounded 40-point views of the same complete process-tree samples used by the HTML report. CPU uses 100% per occupied logical core; memory lines are RSS first and PSS second when complete PSS samples are available.

Base

xychart-beta
    title "Base CPU"
    x-axis "Elapsed seconds" [1.033, 1.535, 2.535, 4.037, 5.541, 6.041, 6.542, 8.044, 9.046, 10.046, 10.547, 12.048, 13.05, 14.551, 16.052, 17.054, 18.556, 20.059, 21.06, 22.562, 24.062, 25.063, 26.566, 27.567, 29.071, 30.573, 31.575, 33.077, 34.578, 35.58, 37.082, 38.584, 39.585, 41.086, 42.086, 43.589, 45.091, 46.092]
    y-axis "CPU percent" 0 --> 500
    line [59.99, 109.7, 93.9, 109.88, 211.52, 271.75, 159.6, 147.9, 95.82, 181.82, 197.8, 75.94, 129.9, 140.03, 0, 51.91, 51.89, 23.95, 34, 67.92, 115.95, 233.72, 103.91, 115.75, 59.85, 135.6, 169.54, 51.94, 79.81, 23.98, 119.83, 15.99, 4, 10, 131.89, 181.84, 75.93, 101.85]
Loading
xychart-beta
    title "Base memory: RSS then PSS"
    x-axis "Elapsed seconds" [0.033, 1.033, 1.535, 2.535, 4.037, 5.541, 6.041, 6.542, 8.044, 9.046, 10.046, 10.547, 12.048, 13.05, 14.551, 16.052, 17.054, 18.556, 20.059, 21.06, 22.562, 24.062, 25.063, 26.566, 27.567, 29.071, 30.573, 31.575, 33.077, 34.578, 35.58, 37.082, 38.584, 39.585, 41.086, 42.086, 43.589, 45.091, 46.092, 47.5]
    y-axis "Memory MiB" 0 --> 500
    line [12.3, 90.98, 105.06, 112.86, 141.16, 174.34, 164.45, 159.31, 169.12, 165.07, 192.51, 168.96, 157.9, 179.42, 174.39, 155.98, 140.98, 136.38, 149.55, 140.52, 154.43, 165.13, 165.5, 187.88, 172.43, 145.2, 168.16, 167.14, 149.89, 154.95, 152.54, 162.4, 159.46, 152.55, 147.2, 180.76, 165.11, 162.51, 173.29, 0]
    line [9.16, 87.26, 101.35, 109.14, 137.55, 170.88, 160.83, 155.69, 165.46, 161.43, 188.29, 165.34, 154.27, 175.8, 170.57, 152.21, 137.29, 132.59, 145.76, 136.72, 150.49, 161.37, 161.44, 184.16, 168.76, 141.43, 163.53, 163.4, 146.13, 151.13, 148.68, 158.65, 155.72, 148.71, 143.15, 177.21, 161.27, 158.55, 170.08, 0]
Loading

HEAD

xychart-beta
    title "HEAD CPU"
    x-axis "Elapsed seconds" [1.035, 1.536, 2.537, 3.538, 4.038, 5.039, 6.542, 7.543, 9.044, 10.045, 11.547, 12.549, 14.05, 15.052, 16.554, 17.554, 19.056, 20.058, 21.561, 23.063, 24.064, 25.564, 26.065, 26.566, 28.067, 29.069, 30.57, 31.571, 33.072, 34.074, 35.575, 36.577, 38.079, 39.08, 40.583, 41.584, 43.086, 44.088]
    y-axis "CPU percent" 0 --> 500
    line [59.95, 107.85, 2, 126.01, 142.01, 115.74, 241.81, 5.99, 175.81, 161.92, 213.82, 135.92, 101.92, 125.94, 63.97, 79.98, 67.87, 25.94, 147.69, 127.9, 147.92, 109.86, 107.79, 121.85, 115.93, 97.95, 95.89, 27.99, 107.89, 8, 117.7, 91.76, 6, 0, 137.83, 115.73, 61.9, 109.73]
Loading
xychart-beta
    title "HEAD memory: RSS then PSS"
    x-axis "Elapsed seconds" [0.035, 1.035, 1.536, 2.537, 3.538, 4.038, 5.039, 6.542, 7.543, 9.044, 10.045, 11.547, 12.549, 14.05, 15.052, 16.554, 17.554, 19.056, 20.058, 21.561, 23.063, 24.064, 25.564, 26.065, 26.566, 28.067, 29.069, 30.57, 31.571, 33.072, 34.074, 35.575, 36.577, 38.079, 39.08, 40.583, 41.584, 43.086, 44.088, 45.253]
    y-axis "Memory MiB" 0 --> 500
    line [12.27, 90.66, 103.85, 93.98, 123.53, 136.05, 144.26, 159.24, 165.45, 163.61, 151.56, 182.36, 168.2, 182.11, 170.64, 157.62, 165.36, 147.96, 137.29, 165.87, 165.9, 156.64, 177.21, 209.15, 150.12, 154.06, 191.74, 148.55, 146.74, 153.17, 153.52, 191.33, 165.37, 150.37, 142.16, 159.78, 151.77, 154.96, 172.51, 0]
    line [8.91, 86.96, 100.16, 90.27, 119.76, 131.89, 139.86, 155.53, 161.75, 159.88, 148.31, 178.6, 164.49, 178.37, 166.88, 154.33, 159.07, 144.37, 133.57, 162.32, 162.14, 152.92, 173.54, 205.39, 146.86, 150.33, 188.09, 144.81, 143, 149.42, 149.84, 187.46, 161.77, 146.67, 138.47, 156.11, 148.21, 151.27, 168.81, 0]
Loading

Deterministic fixture · required contract

The fixture exercises 15 routes: 8 are expected to emit rows and 7 intentionally exercise empty, loading, or timeout behavior.

Metric Base HEAD Δ
Run status success success
Extracted rows / contract 40 / 40 40 / 40 0 (0.00%)
Contract fill 100.00% 100.00% 0.00 pp (0.00%)
Sites with rows 8 / 15 8 / 15 0 (0.00%)
Sites meeting row contract 15 / 15 15 / 15 0 (0.00%)
Unexpected empty sites 0 0 0
Partial-row sites 0 0 0
Site outcomes extracted: 7; HTTP error + rows: 1; empty: 3; timeout + empty: 4 extracted: 7; HTTP error + rows: 1; empty: 3; timeout + empty: 4
Observed duration 19.87 s 19.88 s +0.01 s (+0.07%)
Estimated CPU 0.40 s 0.42 s +0.02 s (+4.99%)
Peak PSS 57.34 MiB 57.40 MiB +0.06 MiB (+0.10%)
Peak RSS 61.05 MiB 60.86 MiB -0.18 MiB (-0.30%)
Peak threads 18 18 0 (0.00%)
Mismatched sites 0 0 0
Timeout with items 0 0 0

Full HTML, JSON, CSV, logs, and page snapshots: workflow run and full spider-bench-results artifact.

The public-web A/B is informational. The exact HEAD fixture contract runs as a separate required CI check; timing and public-site content deltas remain non-blocking.

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

CI Regression Report

Source CI run · source state at render: in_progress · artifacts: 5/5

Check Status Signal
Release regression HEAD/base failures 0/0; raw binary +0.002737%
Frontend differential 1,020/1,020 cases matched; 0 issues
Agent episodes 8/8 Moli episodes passed; 0 failures
Runtime/CDP contracts 26 contract cases; 0 failures
CDP smoke 44/44 groups passed; 457 scenarios
Release regression — ✅ HEAD/base failures 0/0; raw binary +0.002737%

Package and image size

Metric Base HEAD Delta Delta %
Raw binary 149.13 MiB 149.14 MiB +4.18 KiB +0.002737%
Stripped binary 103.39 MiB 103.39 MiB +4.00 KiB +0.003778%
gzip binary 50.17 MiB 50.17 MiB −113 B −0.000215%
Rootfs 156.04 MiB 156.04 MiB 0 B 0.00%
gzip rootfs 58.99 MiB 58.99 MiB −593 B −0.000959%

Startup latency and PSS

Case Base p50 HEAD p50 Delta Base PSS HEAD PSS Delta
Serve ready 27.16 ms 27.19 ms +0.03 ms 4.02 MiB 4.64 MiB +637.00 KiB
CDP first page 50.31 ms 51.75 ms +1.44 ms 3.49 MiB 3.86 MiB +386.00 KiB
CDP warm page 13.10 ms 13.70 ms +0.60 ms 48.59 MiB 49.05 MiB +473.00 KiB
CLI about:blank 13.43 ms 13.94 ms +0.51 ms 3.47 MiB 3.88 MiB +422.00 KiB
CLI local JS 17.22 ms 17.90 ms +0.69 ms 3.60 MiB 5.28 MiB +1.68 MiB

Concurrency matrix

Concurrency Base p50 HEAD p50 Delta Base PSS HEAD PSS Delta HEAD failures Unstable B/H
1 16.07 ms 16.18 ms +0.11 ms 1.06 MiB 1.11 MiB +48.00 KiB 0 0/0
5 18.19 ms 19.38 ms +1.19 ms 27.91 MiB 12.68 MiB −15.23 MiB 0 0/0
10 18.33 ms 19.85 ms +1.51 ms 13.84 MiB 13.60 MiB −249.00 KiB 0 0/0
25 18.18 ms 18.37 ms +0.19 ms 15.31 MiB 27.39 MiB +12.07 MiB 0 0/0
100 18.45 ms 19.71 ms +1.26 ms 14.76 MiB 27.31 MiB +12.56 MiB 0 0/0
Frontend differential — ✅ 1,020/1,020 cases matched; 0 issues
Match DOM mismatch Diagnostic mismatch Moli error Reference error Infrastructure error Mismatched frames Duration
1,020 0 0 0 0 0 0 6m 20.42s
Agent episodes · Moli vs Chromium — ✅ 8/8 Moli episodes passed; 0 failures
Fast contract Episodes Passed Assertions Ready p50 Episode p50
Moli 8 8 47/47 3.14 ms 25.73 ms
Chromium 8 8 47/47 230.56 ms 78.77 ms
Operation p50 Chromium Moli Delta Delta %
navigate 38.93 ms 7.29 ms −31.65 ms −81.28%
observe 0.89 ms 0.98 ms +0.09 ms +10.04%
fill 3.36 ms 3.09 ms −0.27 ms −8.02%
click 4.39 ms 3.57 ms −0.82 ms −18.73%
Idle-resource episode Peak RSS Peak PSS Average CPU Peak CPU Peak processes Sampler
Moli 63.39 MiB 60.70 MiB 0.63% 10.01% 1
Chromium 1284.73 MiB 331.96 MiB 1.76% 89.67% 13 ⚠️ PSS partial
Runtime and CDP session contracts — ✅ 26 contract cases; 0 failures
Suite Cases Failures Median case p50 Median case p95 Median peak PSS p50
Synthetic fetch 13 0 15.85 ms 16.73 ms 678.00 KiB
Long-lived CDP session 13 0 19.29 ms 19.78 ms
CDP smoke — ✅ 44/44 groups passed; 457 scenarios

Workers: 4 · cumulative group time: 126.25 s · failed groups: 0

Slowest group Scenarios Duration Status
chromium-cdp 56 12.57 s
multi-page 45 10.94 s
dom-input 26 10.55 s
layout-screenshot 5 7.50 s
core 35 7.24 s

All artifact fields are parsed by the trusted default-branch renderer; missing or invalid inputs remain visible as unavailable.

@ldm0
ldm0 merged commit b714cdd into main Sep 8, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant