Lay of the Land
All methods

How a large design performs

apps/web/e2e/network.spec.ts has a stress check with a design of 5,005 pipes, about 3 MB of data, in the real app on the local stack. It prints its timings:

Step Running alone With the full suite running alongside
First save of the whole design 0.8 s 0.8 s
Reloading the page with it 0.8 s 1.0 to 4.6 s
An edit reaching the screen 71 ms 127 to 486 ms
Undo 29 ms 84 to 156 ms
Panning 25 frames per second 5 to 6 frames per second

Measured on 2026-11-06 on a MacBook, in headless Chrome, which draws maps in software. The second column has seven browsers competing for the same machine. A real browser with a graphics card should pan much faster, so the frame rates are floors, and neither column measures what a person would see. What the test fails on is under "What CI holds" below.

Since items 224 and 225 the same test opens the table of pipes and nodes over all 5,005 pipes, sorts it by length, goes to its last row from the keyboard, selects every pipe and puts them all in a phase as one change. Running with one other browser on 2026-11-10, on a machine with other work going:

Step Time
Opening the table 49 ms
Sorting it by length 385 ms
Selecting every pipe 331 ms
Putting every pipe in a phase, one change 218 ms

Each includes Playwright's own steps and a repaint. The table draws only the rows in view and a few either side, under 60 of the 5,005, which the test checks at the top and at the end; a change to many pipes copies the design once rather than once a pipe.

What CI holds, and why

The test is tagged @nightly, so it runs each night in .github/workflows/e2e-nightly.yml and when a targeted run names it. On that runner a wall-clock figure moves by ten to fifty times with the machine's load, so each of its limits is a collapse bound, not a target: it is there to fail a hang. Each is set by the rule performance.md gives the speed spec's collapseMs: a round figure at least ten times the worst ever recorded for the step, never under 10 s (proposeCollapseBound() in scripts/speed-budgets.ts). The steps that wait on the page wait as long as their bound.

The worst figures, from the timings the test prints, in every nightly run there has been (no targeted run of the last 60 named it), and the two tables above:

Step Nightly 46390963277 (Nov 30, e6c4ed94) 46617503936 (Dec 1, 5a162651) 46777718635 (Dec 2, 085bfdfe) 46807175676 (Dec 2, 1c7b0044), first attempt and retry Worst Old limit Bound
An edit reaching the screen 382 ms 513 ms 490 ms 378 ms, 817 ms 817 ms 1 s 10 s
Undo 282 ms 383 ms 299 ms 311 ms, 196 ms 383 ms 1 s 10 s
Opening the table 80 ms 103 ms 196 ms 146 ms, 237 ms 237 ms 5 s 10 s
Sorting it by length 936 ms 4,582 ms 831 ms 8,800 ms, 4,655 ms 8,800 ms 5 s 90 s
Selecting every pipe 345 ms 1,607 ms 1,243 ms 290 ms, 413 ms 1,607 ms 5 s 20 s
Putting every pipe in a phase, one change 883 ms 533 ms 2,342 ms 1,038 ms, 915 ms 2,342 ms 5 s 30 s

The same runs took 613 to 919 ms for the first save, 4.3 to 7.7 s to reload and panned at 3 to 10 frames per second; those have no limit.

The sort's spread is load, not growth. No commit between the first nightly and the last changed the table's sorting (pipe-table.tsx changed only its Pipes and Nodes switch, in #327), it took 831 ms on one night and 8,800 ms the next with no change to the table between them, 8,800 and 4,655 ms on one commit in one run, and 4,582 ms two nights before 831 ms. Against the 385 ms of 2026-11-10 that is two to 23 times, inside the ten to fifty times this runner's load is known to move a figure. The first attempt at 8,800 ms was the only one any step failed.

Calculating a design

Spec section 7 asks for a recalculation under 2 seconds at 640 acres. A browser test sends the real Web Worker a square mile with 105 laterals 50 ft apart, a main, and ground every 2 m along all of it, three times, and holds the middle one to that.

Step Time
The whole design in the real worker, running alone 59 to 68 ms
The same, with seven other software-rendering browsers running 0.25 to 2.0 s, which is why it takes the middle one
Reading the ground for all 105 laterals, from tiles already in memory 20 ms

Measured on 2026-11-06 on a MacBook.

That design is built for the test, not drawn. The elevation file the browser tests use covers 24 acres, so a square mile can't be read from a real one in CI. A first read over the network also has to fetch tiles, which depends on the connection. After that, an edit only reads the pipes it moved.

Why it stays quick

  • Edits only touch what changed. They leave everything else as the same objects, so undo keeps earlier versions cheaply, and the map reuses each pipe's feature until that pipe or its ends change.
  • The table draws only what's in view, with spacers for the rest, so its cost doesn't grow with the design.
  • Autosave sends only the changes, after edits settle. An edit that's undone before it saves sends nothing.
  • The database expands a design once per save. An earlier version looked each pipe's ends up in the whole document, so time grew with the square of the size. It hit the 8 s limit at 5,000 pipes.

What this doesn't establish

  • Calculation time. That's a separate budget, for item 67.
  • Real graphics hardware, phones or tablets. Item 137 covers tablets.
  • Production's database, though it uses the same function.