Lay of the Land
All methods

How long terrain takes

The spec's target: "Standard 160-acre DEM-based terrain processing completes within 60 seconds under normal service conditions, excluding unusually slow upstream sources."

python -m gis_worker.benchmark_terrain measures it. It asks for terrain as the Get terrain button does, with a job, so the time runs from the job being queued to the finished build being saved, including the wait for a worker, the search and the build. It doesn't include the browser. Each run uses a slightly different 160-acre field, so nothing is reused from an earlier one, and removes what it made. Those 160 acres become 247 acres of processing, with the margin around a field.

Results

On production, on 2026-11-06, with the worker on Railway, hosted Supabase and real USGS data. Two rounds at each test field, 8 runs in all, none reused:

Field Source Search Build Total
Fargo, ND ND_3DEPProcessing_D22 19-23 s 11 s 30-35 s
Moorhead, MN MN_RedRiver_D23 19 s 9-10 s 28-29 s
Mankato, MN MN_RiverEast_B23 29-30 s 12 s 41-42 s
Brookings, SD SD_EasternSD_2020_B20 19-21 s 9-10 s 28-30 s

Median 30 s, slowest 42 s, so it meets the target.

Locally, the same day, on a MacBook with the worker in Docker, the local database and storage, and real USGS data over a home connection. Also 8 runs, none reused:

Field Source Search Build Total
Fargo, ND ND_3DEPProcessing_D22 17-20 s 4 s 21-24 s
Moorhead, MN MN_RedRiver_D23 20-22 s 3 s 23-25 s
Mankato, MN MN_RiverEast_B23 29-30 s 5 s 34-35 s
Brookings, SD SD_EasternSD_2020_B20 21 s 3 s 24-25 s

Median 24 s, slowest 35 s. Through the browser on that stack, the same field at Fargo took 23 to 24 s from the click until the terrain showed.

The first measurement missed the target, with Fargo at 49, 68 and 80 s. The cause was our own hydrology step and not an upstream source, so the spec's exception didn't cover it. hydrology.md explains the fix.

Since these were measured

On 2026-11-09 a build gained one more read, of USGS's 1/3 arc-second DEM for the area and 2 km around it, which checks the build's heights and traces land draining in from outside. Locally that added about 5 to 6 s: 4.8 s for the read over a home connection, though two more reads on a busy machine took 5.3 s and 13.1 s, and 0.2 to 1.2 s of processing. The tables above are from before it, and the production benchmark hasn't been run since. The measurements are under "What it costs" in Where water goes, the page linked just above.

What this doesn't establish

  • One morning, with nothing else running. Production has one worker, which does one job at a time, so anything already running comes first. A whole-tile build can hold it for an hour.
  • Upstream can be slower. In one separate timing run, a search at Moorhead without point clouds took 62 s where it usually takes about 2 s. That alone would miss the target. The spec excludes that, but a person would still wait.
  • Other fields can differ. Four places isn't the whole country. Ground with many exact flats was the slowest case found so far.
  • It's only for DEMs. Point cloud tiles from USGS's file server take around 15 minutes each, which is why Get terrain won't start one by itself.