tools/engine-test: per-second process-tree sampler (PSS, CPU, DRM fdinfo GPU), WebKitGTK 6.0 shell, drivers for Servo Nacre and old Nacre, run.sh, analyze.py. docs/engine/engine-comparison.md: method, per-site tables, side-by-side screenshots, caveats, conclusions and what Servo needs for parity. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
84 lines
5.3 KiB
Text
84 lines
5.3 KiB
Text
# generated by tools/engine-test/servo_script.py
|
|
set /startup/welcome_done true
|
|
set /adblock/enabled false
|
|
set /perf/freeze_min 0
|
|
set /perf/discard_min 0
|
|
wait 3
|
|
log MARK 01-yt-home
|
|
newtab https://www.youtube.com/
|
|
wait 20
|
|
save check-01-yt-home JSON.stringify({title: document.title, ready: document.readyState, url: location.href, nodes: document.getElementsByTagName('*').length, videos: [...document.querySelectorAll('video')].map(v => ({t: v.currentTime, paused: v.paused, rs: v.readyState, err: v.error && v.error.code, w: v.videoWidth}))})
|
|
shot 01-yt-home
|
|
js document.querySelectorAll('video').forEach(v => v.pause()); 0
|
|
wait 1
|
|
log MARK 02-yt-watch
|
|
newtab https://www.youtube.com/watch?v=aqz-KE-bpKQ
|
|
wait 10
|
|
save check-02-yt-watch-pre JSON.stringify({title: document.title, ready: document.readyState, url: location.href, nodes: document.getElementsByTagName('*').length, videos: [...document.querySelectorAll('video')].map(v => ({t: v.currentTime, paused: v.paused, rs: v.readyState, err: v.error && v.error.code, w: v.videoWidth}))})
|
|
js var v = document.querySelector('video'); if (v && v.paused) { v.muted = true; v.play(); } 0
|
|
wait 20
|
|
save check-02-yt-watch JSON.stringify({title: document.title, ready: document.readyState, url: location.href, nodes: document.getElementsByTagName('*').length, videos: [...document.querySelectorAll('video')].map(v => ({t: v.currentTime, paused: v.paused, rs: v.readyState, err: v.error && v.error.code, w: v.videoWidth}))})
|
|
shot 02-yt-watch
|
|
js document.querySelectorAll('video').forEach(v => v.pause()); 0
|
|
wait 1
|
|
log MARK 03-yt-search
|
|
newtab https://www.youtube.com/results?search_query=big+buck+bunny
|
|
wait 20
|
|
save check-03-yt-search JSON.stringify({title: document.title, ready: document.readyState, url: location.href, nodes: document.getElementsByTagName('*').length, videos: [...document.querySelectorAll('video')].map(v => ({t: v.currentTime, paused: v.paused, rs: v.readyState, err: v.error && v.error.code, w: v.videoWidth}))})
|
|
shot 03-yt-search
|
|
js document.querySelectorAll('video').forEach(v => v.pause()); 0
|
|
wait 1
|
|
log MARK 04-discord
|
|
newtab https://discord.com/login
|
|
wait 20
|
|
save check-04-discord JSON.stringify({title: document.title, ready: document.readyState, url: location.href, nodes: document.getElementsByTagName('*').length, videos: [...document.querySelectorAll('video')].map(v => ({t: v.currentTime, paused: v.paused, rs: v.readyState, err: v.error && v.error.code, w: v.videoWidth}))})
|
|
shot 04-discord
|
|
js document.querySelectorAll('video').forEach(v => v.pause()); 0
|
|
wait 1
|
|
log MARK 05-reddit
|
|
newtab https://www.reddit.com/
|
|
wait 20
|
|
save check-05-reddit JSON.stringify({title: document.title, ready: document.readyState, url: location.href, nodes: document.getElementsByTagName('*').length, videos: [...document.querySelectorAll('video')].map(v => ({t: v.currentTime, paused: v.paused, rs: v.readyState, err: v.error && v.error.code, w: v.videoWidth}))})
|
|
shot 05-reddit
|
|
js document.querySelectorAll('video').forEach(v => v.pause()); 0
|
|
wait 1
|
|
log MARK 06-wikipedia
|
|
newtab https://en.wikipedia.org/wiki/Web_browser
|
|
wait 20
|
|
save check-06-wikipedia JSON.stringify({title: document.title, ready: document.readyState, url: location.href, nodes: document.getElementsByTagName('*').length, videos: [...document.querySelectorAll('video')].map(v => ({t: v.currentTime, paused: v.paused, rs: v.readyState, err: v.error && v.error.code, w: v.videoWidth}))})
|
|
shot 06-wikipedia
|
|
js document.querySelectorAll('video').forEach(v => v.pause()); 0
|
|
wait 1
|
|
log MARK 07-google
|
|
newtab https://www.google.com/search?q=web+browser+engine
|
|
wait 20
|
|
save check-07-google JSON.stringify({title: document.title, ready: document.readyState, url: location.href, nodes: document.getElementsByTagName('*').length, videos: [...document.querySelectorAll('video')].map(v => ({t: v.currentTime, paused: v.paused, rs: v.readyState, err: v.error && v.error.code, w: v.videoWidth}))})
|
|
shot 07-google
|
|
js document.querySelectorAll('video').forEach(v => v.pause()); 0
|
|
wait 1
|
|
log MARK 08-github
|
|
newtab https://github.com/servo/servo
|
|
wait 20
|
|
save check-08-github JSON.stringify({title: document.title, ready: document.readyState, url: location.href, nodes: document.getElementsByTagName('*').length, videos: [...document.querySelectorAll('video')].map(v => ({t: v.currentTime, paused: v.paused, rs: v.readyState, err: v.error && v.error.code, w: v.videoWidth}))})
|
|
shot 08-github
|
|
js document.querySelectorAll('video').forEach(v => v.pause()); 0
|
|
wait 1
|
|
log MARK 09-ddg
|
|
newtab https://duckduckgo.com/?q=web+browser+engine
|
|
wait 20
|
|
save check-09-ddg JSON.stringify({title: document.title, ready: document.readyState, url: location.href, nodes: document.getElementsByTagName('*').length, videos: [...document.querySelectorAll('video')].map(v => ({t: v.currentTime, paused: v.paused, rs: v.readyState, err: v.error && v.error.code, w: v.videoWidth}))})
|
|
shot 09-ddg
|
|
js document.querySelectorAll('video').forEach(v => v.pause()); 0
|
|
wait 1
|
|
log MARK 10-bbc
|
|
newtab https://www.bbc.com/news
|
|
wait 20
|
|
save check-10-bbc JSON.stringify({title: document.title, ready: document.readyState, url: location.href, nodes: document.getElementsByTagName('*').length, videos: [...document.querySelectorAll('video')].map(v => ({t: v.currentTime, paused: v.paused, rs: v.readyState, err: v.error && v.error.code, w: v.videoWidth}))})
|
|
shot 10-bbc
|
|
js document.querySelectorAll('video').forEach(v => v.pause()); 0
|
|
wait 1
|
|
log MARK idle
|
|
wait 60
|
|
log MARK done
|
|
status done
|
|
quit
|