Skip to content

perf(style): share inline source text backing - #389

Open
ldm0 wants to merge 1 commit into
mainfrom
perf/share-inline-css-backing
Open

perf(style): share inline source text backing#389
ldm0 wants to merge 1 commit into
mainfrom
perf/share-inline-css-backing

Conversation

@ldm0

@ldm0 ldm0 commented Sep 5, 2026

Copy link
Copy Markdown
Member

Retain inline stylesheet text through shared DOM text backing instead of copying it into the source cache. Fold in the necessary SmolStr Text storage and shared_text_content interface so this branch is one self-contained commit on main.

Derived from 6b163b921 and the DOM text prerequisites of 3d324c596. Excludes parser script internal-slot changes, lazy cascade data, import metadata reuse, and diagnostics.

Retain inline stylesheet text through shared DOM text backing instead of copying it into the source cache. Fold in the necessary SmolStr Text storage and shared_text_content interface so this branch is one self-contained commit on main.

Derived from 6b163b921 and the DOM text prerequisites of 3d324c596. Excludes parser script internal-slot changes, lazy cascade data, import metadata reuse, and diagnostics.
@github-actions

github-actions Bot commented Sep 5, 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 9464837d57 → HEAD 0cf6619ce0; benchmark order: head-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 251.9 s 250.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 226.3 MiB 209.4 MiB -16.9 MiB
Periodic peak PSS 223.3 MiB 206.3 MiB -17.1 MiB
RSS · first 10 avg 165.7 MiB 166.6 MiB +0.8 MiB
RSS · last 10 avg 162.2 MiB 159.7 MiB -2.5 MiB
RSS · last − first window -3.5 MiB -6.9 MiB -3.3 MiB
RSS · warm slope / 100 nav +2.1 MiB +2.0 MiB -0.1 MiB
PSS · first 10 avg 162.2 MiB 163.2 MiB +1.0 MiB
PSS · last 10 avg 158.9 MiB 156.1 MiB -2.7 MiB
PSS · last − first window -3.3 MiB -7.0 MiB -3.7 MiB
PSS · warm slope / 100 nav +2.1 MiB +2.1 MiB -0.0 MiB
Peak file descriptors 60 62 2
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 160.3 MiB 153.8 MiB 206.4 MiB 156.7 MiB 150.1 MiB 49
51–100 162.2 MiB 145.1 MiB 181.9 MiB 158.6 MiB 141.5 MiB 51
101–150 163.1 MiB 156.2 MiB 203.1 MiB 159.6 MiB 152.6 MiB 49
151–200 162.9 MiB 145.0 MiB 207.1 MiB 159.3 MiB 141.4 MiB 49

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 5, 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 9464837d57a9 → HEAD 0cf6619ce0f9; benchmark order: head-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: 37; HTTP error + rows: 1; empty: 7; HTTP error + empty: 1; snapshot error + empty: 2 extracted: 36; HTTP error + rows: 2; empty: 7; HTTP error + empty: 1; snapshot error + empty: 2
Observed duration 45.92 s 51.88 s +5.96 s (+12.98%)
Estimated CPU 44.09 s 43.76 s -0.33 s (-0.75%)
Peak PSS 219.25 MiB 208.86 MiB -10.39 MiB (-4.74%)
Peak RSS 222.72 MiB 211.94 MiB -10.79 MiB (-4.84%)
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.035, 1.536, 2.538, 3.539, 4.041, 4.541, 5.042, 6.542, 7.545, 9.047, 10.049, 11.55, 13.051, 14.051, 15.555, 16.556, 18.058, 19.058, 20.558, 21.558, 23.059, 24.56, 25.562, 27.063, 28.064, 29.565, 30.567, 32.069, 33.071, 34.573, 36.076, 37.076, 38.578, 39.58, 41.082, 42.084, 43.586, 44.588]
    y-axis "CPU percent" 0 --> 200
    line [0, 15.97, 123.64, 135.83, 97.71, 133.93, 129.84, 145.9, 143.67, 189.47, 115.68, 130.04, 149.9, 107.94, 55.88, 75.95, 4, 28, 4, 70, 99.94, 135.89, 141.75, 101.86, 133.91, 127.91, 111.85, 95.88, 61.85, 57.85, 65.84, 129.95, 17.98, 7.98, 113.88, 109.74, 57.94, 145.69]
Loading
xychart-beta
    title "Base memory: RSS then PSS"
    x-axis "Elapsed seconds" [0.034, 1.035, 1.536, 2.538, 3.539, 4.041, 4.541, 5.042, 6.542, 7.545, 9.047, 10.049, 11.55, 13.051, 14.051, 15.555, 16.556, 18.058, 19.058, 20.558, 21.558, 23.059, 24.56, 25.562, 27.063, 28.064, 29.565, 30.567, 32.069, 33.071, 34.573, 36.076, 37.076, 38.578, 39.58, 41.082, 42.084, 43.586, 44.588, 45.917]
    y-axis "Memory MiB" 0 --> 500
    line [11.81, 52.9, 69.03, 110.5, 133.38, 139.56, 144.59, 160.16, 189.22, 163.79, 197.8, 175.91, 182.77, 179.61, 169.45, 165.43, 155.1, 145.69, 145.88, 146.15, 148.43, 171.79, 176.51, 191.87, 222.72, 176.77, 177.7, 175.11, 154.21, 153.55, 156.91, 164.88, 179.01, 179.06, 170.96, 198, 181.55, 169.82, 175.25, 0]
    line [8.65, 49.37, 65.49, 106.99, 129.87, 136.32, 140.65, 156.23, 185.6, 160.16, 194.2, 172.34, 179.35, 176.06, 165.79, 161.76, 151.45, 142.14, 142.33, 142.6, 144.89, 168.28, 173.04, 188.09, 219.25, 173.29, 175.34, 169.47, 150.86, 150.04, 153.33, 161.29, 175.49, 175.54, 167.45, 194.12, 178.04, 166.3, 171.76, 0]
Loading

HEAD

xychart-beta
    title "HEAD CPU"
    x-axis "Elapsed seconds" [1.537, 2.539, 3.04, 4.543, 5.544, 6.045, 7.046, 8.548, 10.05, 11.551, 13.053, 14.556, 16.059, 17.561, 19.063, 20.064, 21.566, 23.067, 24.57, 26.071, 27.573, 29.073, 30.574, 32.077, 32.577, 33.078, 34.58, 36.081, 37.583, 39.086, 40.587, 42.09, 43.59, 45.092, 46.093, 47.594, 49.095, 50.597]
    y-axis "CPU percent" 0 --> 500
    line [125.84, 143.77, 105.86, 123.7, 233.74, 179.55, 165.81, 77.94, 161.84, 125.9, 135.88, 0, 31.97, 4, 103.91, 87.76, 5.98, 47.96, 59.91, 76.05, 113.81, 109.96, 143.84, 153.81, 115.88, 101.88, 13.96, 73.98, 7.98, 5.98, 101.94, 67.95, 4, 2, 101.86, 171.87, 89.9, 109.89]
Loading
xychart-beta
    title "HEAD memory: RSS then PSS"
    x-axis "Elapsed seconds" [0.035, 1.537, 2.539, 3.04, 4.543, 5.544, 6.045, 7.046, 8.548, 10.05, 11.551, 13.053, 14.556, 16.059, 17.561, 19.063, 20.064, 21.566, 23.067, 24.57, 26.071, 27.573, 29.073, 30.574, 32.077, 32.577, 33.078, 34.58, 36.081, 37.583, 39.086, 40.587, 42.09, 43.59, 45.092, 46.093, 47.594, 49.095, 50.597, 51.878]
    y-axis "Memory MiB" 0 --> 500
    line [12.08, 106.91, 115.21, 125.98, 164.89, 171.56, 186.26, 174.51, 171.89, 184.45, 189.21, 178.13, 163.62, 143.5, 146.03, 148.99, 152.16, 155.33, 148.4, 144.53, 160.9, 162.69, 188.36, 174.25, 178.05, 211.94, 159.6, 153.46, 149.51, 161.39, 155.25, 205.46, 185.23, 166.23, 158.3, 180.5, 178.15, 168.87, 177.52, 0]
    line [8.77, 103.25, 111.54, 122.32, 161.27, 167.93, 180.23, 170.85, 168.66, 180.29, 185.55, 177, 159.95, 139.83, 142.36, 145.33, 148.5, 151.67, 144.74, 140.86, 157.24, 158.36, 184.72, 170.23, 174.51, 208.86, 155.94, 149.8, 145.84, 157.73, 151.58, 204, 181.59, 162.57, 154.65, 176.74, 175.09, 164.37, 174.11, 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.88 s 19.88 s -0.00 s (-0.01%)
Estimated CPU 0.44 s 0.42 s -0.02 s (-4.54%)
Peak PSS 57.31 MiB 57.57 MiB +0.26 MiB (+0.46%)
Peak RSS 60.96 MiB 61.21 MiB +0.25 MiB (+0.42%)
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 5, 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.005993%
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 42/43 groups passed; 441 scenarios
Release regression — ✅ HEAD/base failures 0/0; raw binary +0.005993%

Package and image size

Metric Base HEAD Delta Delta %
Raw binary 149.08 MiB 149.09 MiB +9.15 KiB +0.005993%
Stripped binary 103.35 MiB 103.36 MiB +8.00 KiB +0.007559%
gzip binary 50.15 MiB 50.15 MiB +7.14 KiB +0.013904%
Rootfs 155.99 MiB 156.00 MiB +10.00 KiB +0.006261%
gzip rootfs 58.97 MiB 58.98 MiB +11.79 KiB +0.019528%

Startup latency and PSS

Case Base p50 HEAD p50 Delta Base PSS HEAD PSS Delta
Serve ready 27.09 ms 27.30 ms +0.21 ms 4.75 MiB 4.62 MiB −133.50 KiB
CDP first page 49.84 ms 50.89 ms +1.05 ms 4.50 MiB 4.43 MiB −74.00 KiB
CDP warm page 12.83 ms 13.74 ms +0.91 ms 48.99 MiB 49.05 MiB +65.50 KiB
CLI about:blank 13.28 ms 14.02 ms +0.74 ms 2.39 MiB 3.19 MiB +817.00 KiB
CLI local JS 17.50 ms 17.62 ms +0.11 ms 3.69 MiB 2.14 MiB −1.55 MiB

Concurrency matrix

Concurrency Base p50 HEAD p50 Delta Base PSS HEAD PSS Delta HEAD failures Unstable B/H
1 16.56 ms 16.65 ms +0.09 ms 563.00 KiB 570.00 KiB +7.00 KiB 0 0/0
5 19.80 ms 19.82 ms +0.02 ms 13.35 MiB 13.49 MiB +148.00 KiB 0 0/0
10 21.24 ms 19.66 ms −1.58 ms 15.73 MiB 16.93 MiB +1.20 MiB 0 0/0
25 19.99 ms 20.68 ms +0.70 ms 25.24 MiB 26.62 MiB +1.38 MiB 0 0/0
100 18.80 ms 19.64 ms +0.85 ms 13.42 MiB 12.20 MiB −1.21 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.01s
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.91 ms 24.10 ms
Chromium 8 8 47/47 250.94 ms 85.44 ms
Operation p50 Chromium Moli Delta Delta %
navigate 37.69 ms 6.70 ms −30.99 ms −82.23%
observe 0.72 ms 0.74 ms +0.02 ms +2.65%
fill 3.48 ms 2.94 ms −0.54 ms −15.49%
click 4.51 ms 3.28 ms −1.23 ms −27.29%
Idle-resource episode Peak RSS Peak PSS Average CPU Peak CPU Peak processes Sampler
Moli 63.62 MiB 60.78 MiB 0.69% 10.00% 1
Chromium 1291.87 MiB 414.77 MiB 1.83% 84.40% 13
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.98 ms 16.88 ms 732.00 KiB
Long-lived CDP session 13 0 19.53 ms 19.78 ms
CDP smoke — ❌ 42/43 groups passed; 441 scenarios

Workers: 4 · cumulative group time: 236.12 s · failed groups: 1

Slowest group Scenarios Duration Status
classic-scrollbar 0 120.05 s
chromium-cdp 56 12.20 s
multi-page 45 10.48 s
dom-input 26 10.19 s
layout-screenshot 5 7.66 s

Failed groups

  • classic-scrollbartimed_out · worker exceeded 120s

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

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