Skip to content

fix(devtools): unify synchronous Page IO responses - #129

Merged
ldm0 merged 2 commits into
mainfrom
cdp-inspector-routing
Aug 20, 2026
Merged

fix(devtools): unify synchronous Page IO responses#129
ldm0 merged 2 commits into
mainfrom
cdp-inspector-routing

Conversation

@ldm0

@ldm0 ldm0 commented Aug 20, 2026

Copy link
Copy Markdown
Member

No description provided.

@github-actions

Copy link
Copy Markdown

Spider Bench A/B

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

Public HEAD: 179 / 240 rows; 37 / 48 sites produced rows; 11 unexpected empty sites.

✅ Deterministic fixture diagnostic is clean.

Common ancestor 912101e9dde2 → HEAD d84933395b56; benchmark order: head-first; workflow: success.

Public 48-site run · informational

Metric Base HEAD Δ
Run status success success
Extracted rows / contract 179 / 240 179 / 240 0 (0.00%)
Contract fill 74.58% 74.58% 0.00 pp (0.00%)
Sites with rows 37 / 48 37 / 48 0 (0.00%)
Sites meeting row contract 35 / 48 35 / 48 0 (0.00%)
Unexpected empty sites 11 11 0 (0.00%)
Partial-row sites 2 2 0 (0.00%)
Site outcomes extracted: 36; HTTP error + rows: 1; empty: 7; HTTP error + empty: 1; snapshot error + empty: 3 extracted: 35; HTTP error + rows: 2; empty: 7; HTTP error + empty: 1; snapshot error + empty: 3
Observed duration 40.95 s 39.92 s -1.03 s (-2.51%)
Estimated CPU 32.11 s 31.03 s -1.07 s (-3.34%)
Peak PSS 345.52 MiB 251.23 MiB -94.29 MiB (-27.29%)
Peak RSS 349.36 MiB 254.08 MiB -95.29 MiB (-27.27%)
Peak threads 26 27 +1 (+3.85%)
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 25 / 40 25 / 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.056, 2.558, 3.558, 4.559, 5.559, 7.06, 8.063, 8.563, 9.069, 10.571, 11.574, 12.577, 13.579, 14.079, 15.082, 16.086, 17.087, 18.087, 19.59, 20.591, 21.593, 23.095, 24.095, 25.096, 26.097, 27.603, 28.603, 29.605, 31.107, 32.113, 32.614, 33.114, 34.114, 35.616, 36.617, 37.619, 38.621, 40.124]
    y-axis "CPU percent" 0 --> 200
    line [21.98, 60.01, 94, 87.89, 137.92, 121.92, 97.74, 161.95, 126.36, 105.82, 129.54, 69.89, 33.91, 2, 5.99, 103.77, 113.97, 49.98, 111.88, 29.97, 77.8, 103.85, 102.03, 101.89, 113.81, 93.83, 65.92, 91.9, 57.92, 123.84, 103.93, 97.92, 77.98, 7.98, 59.94, 73.76, 43.94, 111.86]
Loading
xychart-beta
    title "Base memory: RSS then PSS"
    x-axis "Elapsed seconds" [0.057, 1.056, 2.558, 3.558, 4.559, 5.559, 7.06, 8.063, 8.563, 9.069, 10.571, 11.574, 12.577, 13.579, 14.079, 15.082, 16.086, 17.087, 18.087, 19.59, 20.591, 21.593, 23.095, 24.095, 25.096, 26.097, 27.603, 28.603, 29.605, 31.107, 32.113, 32.614, 33.114, 34.114, 35.616, 36.617, 37.619, 38.621, 40.124, 40.945]
    y-axis "Memory MiB" 0 --> 500
    line [22.75, 106.09, 161.55, 169.41, 170.24, 220.27, 213.8, 226.25, 247.92, 240.88, 236.16, 233.84, 209.24, 191.95, 191.61, 192.57, 200.29, 196.24, 190.55, 225.69, 178.58, 197.57, 276.63, 205.65, 181, 193.76, 207.38, 203.27, 200.28, 210.39, 280.87, 349.36, 339.09, 216.33, 222.09, 207.45, 204.41, 193.08, 236.79, 0]
    line [20.48, 103.41, 158.87, 166.79, 167.56, 218.5, 211.47, 224.05, 245.11, 238.07, 233.36, 231.03, 206.43, 189.13, 188.78, 189.75, 197.18, 193.42, 187.73, 222.86, 175.76, 194.13, 270.47, 202.82, 178.17, 190.95, 204.55, 200.44, 197.45, 207.58, 278.02, 345.52, 336.22, 213.5, 219.27, 204.62, 201.59, 190.26, 233.96, 0]
Loading

HEAD

xychart-beta
    title "HEAD CPU"
    x-axis "Elapsed seconds" [1.038, 2.039, 3.043, 3.544, 4.044, 4.545, 5.545, 6.546, 8.047, 9.048, 10.048, 11.049, 12.054, 13.056, 13.556, 14.556, 15.557, 16.559, 18.061, 19.063, 20.067, 21.068, 22.069, 23.57, 24.573, 25.578, 26.581, 28.085, 29.085, 30.086, 31.089, 32.09, 33.592, 34.594, 35.598, 36.598, 38.1, 39.101]
    y-axis "CPU percent" 0 --> 200
    line [41.95, 97.94, 101.78, 95.75, 65.96, 167.81, 158.06, 121.84, 118.03, 37.95, 100.07, 93.9, 99.9, 0, 2, 61.97, 25.95, 5.99, 35.96, 111.68, 71.83, 91.92, 117.88, 125.73, 127.49, 87.91, 84.06, 45.76, 68.05, 15.98, 33.78, 103.88, 55.91, 4, 1.99, 61.96, 65.97, 105.88]
Loading
xychart-beta
    title "HEAD memory: RSS then PSS"
    x-axis "Elapsed seconds" [0.037, 1.038, 2.039, 3.043, 3.544, 4.044, 4.545, 5.545, 6.546, 8.047, 9.048, 10.048, 11.049, 12.054, 13.056, 13.556, 14.556, 15.557, 16.559, 18.061, 19.063, 20.067, 21.068, 22.069, 23.57, 24.573, 25.578, 26.581, 28.085, 29.085, 30.086, 31.089, 32.09, 33.592, 34.594, 35.598, 36.598, 38.1, 39.101, 39.917]
    y-axis "Memory MiB" 0 --> 500
    line [23.03, 123.4, 158.09, 194.3, 188.21, 199.45, 238.62, 249.33, 223.08, 244.27, 222.45, 238.11, 235.61, 220.75, 189.8, 179.66, 186.67, 197.58, 191.16, 186.73, 234.21, 197.6, 213.34, 234.84, 254.08, 216.23, 207.54, 249.79, 208.29, 194.96, 196.16, 207.25, 240.11, 203.1, 185.98, 205.85, 197.2, 199.18, 233.03, 0]
    line [20.72, 120.73, 155.42, 191.63, 185.54, 196.79, 236.08, 246.64, 220.39, 241.57, 220, 235.42, 232.93, 218.02, 187.07, 176.93, 183.94, 194.86, 188.43, 183.98, 231.51, 194.86, 210.58, 232.08, 251.23, 213.48, 204.78, 247.03, 205.53, 192.21, 193.4, 204.49, 237.36, 200.34, 183.23, 203.09, 194.46, 196.44, 230.31, 0]
Loading

Deterministic fixture · diagnostic

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 20.03 s 19.93 s -0.10 s (-0.52%)
Estimated CPU 0.48 s 0.42 s -0.06 s (-12.45%)
Peak PSS 86.24 MiB 81.92 MiB -4.32 MiB (-5.01%)
Peak RSS 88.37 MiB 83.95 MiB -4.42 MiB (-5.00%)
Peak threads 20 18 -2 (-10.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.

Spider Bench is informational: site failures, missing benchmark reports, failed browser service runs, fixture diagnostics, timing, and performance deltas do not fail the workflow. Build, runner, and artifact infrastructure errors can still fail it.

@github-actions

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 912101e9dd → HEAD d84933395b; 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 279.7 s 264.7 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 278.2 MiB 297.2 MiB +19.0 MiB
Periodic peak PSS 276.1 MiB 294.9 MiB +18.8 MiB
RSS · first 10 avg 225.5 MiB 226.3 MiB +0.8 MiB
RSS · last 10 avg 221.9 MiB 190.0 MiB -31.9 MiB
RSS · last − first window -3.7 MiB -36.4 MiB -32.7 MiB
RSS · warm slope / 100 nav +3.2 MiB -12.0 MiB -15.2 MiB
PSS · first 10 avg 223.4 MiB 224.1 MiB +0.7 MiB
PSS · last 10 avg 220.0 MiB 188.0 MiB -32.0 MiB
PSS · last − first window -3.4 MiB -36.1 MiB -32.7 MiB
PSS · warm slope / 100 nav +3.2 MiB -11.8 MiB -15.0 MiB
Peak file descriptors 49 52 3
Peak threads 26 28 2

HEAD memory by 50-navigation quarter

HEAD range Avg RSS Final RSS Peak RSS Avg PSS Final PSS Peak FD
1–50 221.9 MiB 216.3 MiB 271.2 MiB 219.6 MiB 214.0 MiB 43
51–100 229.7 MiB 206.8 MiB 279.4 MiB 227.4 MiB 204.5 MiB 43
101–150 231.4 MiB 203.5 MiB 289.0 MiB 229.1 MiB 201.3 MiB 44
151–200 209.4 MiB 181.7 MiB 278.1 MiB 207.3 MiB 179.7 MiB 48

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.

@ldm0
ldm0 merged commit 2c186e3 into main Aug 20, 2026
6 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