Documentation
¶
Overview ¶
The driver of the 2D comparison on the web (../web.sh builds the sites and runs it): it loads the page of each site in headless Chromium, one at a time, each scene of each app in turn, and prints the RESULT line that the page reports after the app's name and the scene, as ../run.sh does, so that ../summary.py takes its output. Run it from the root of the repository:
go run ./benchmarks/ui/web <runs> <secs> <name>=<site>...
A site is a folder with index.html: the build of the Glutter app (glutter-web build), whose page the driver loads once for each renderer of RENDERERS (webgpu,webgl by default) under the name <name>-<renderer>, or Flutter's web build of its app (a name that starts with "flutter"). SCENES chooses the scenes (cells,scroll,static by default). The page is 1280x800 CSS pixels at a device pixel ratio of 1. The browser draws as many frames as it can (--disable-frame-rate-limit, --disable-gpu-vsync), so fps is the frames a second without a limit; a page has no CPU time or memory of a process, so cpu_ms and rss_mb are 0.