Documentation
¶
Overview ¶
The driver of the 3D comparison of docs/BENCHMARKS.md: it builds the Glutter app (../app) for the web, copies the three.js page and library beside it, and loads each page in headless Chromium, one at a time, the runs interleaved. Run it from the root of the repository:
go run ./benchmarks/threejs/driver <out> <three.js build> <runs> <secs>
<out> receives the site and a picture of each page's first run, to see that both draw the same; <three.js build> is the build folder of the three package (benchmarks/threejs/fetch.sh). SCENES (terrace, shared, separate, moving, onebox), KINDS (glutter, three, three-best) and APIS (webgl, webgpu) choose what runs, comma separated; Q is how many frames may be in flight (5 by default, as docs/BENCHMARKS.md was measured; with 1 every frame waits for the one before it, and both pages are capped by that round trip). It prints a line for each run and then the median of the runs of each page.