Skip to content

Latest commit

 

History

History
98 lines (79 loc) · 5.94 KB

PERFORMANCE.md

File metadata and controls

98 lines (79 loc) · 5.94 KB

Measured performance

Everything here was measured on the development laptop (AMD Ryzen 9 8945HS, 16 threads, 31.2 GiB RAM with roughly 9 GiB free during these runs, RTX 4060 Laptop unused, Windows 11) and is stored in benchmarks/results/. Nothing is extrapolated. Scale beyond one machine is designed for, not tested.

Reconstruction (CPU only, single job)

ETH3D terrace, 23 DSLR images, 1600 px working size, through the full platform (benchmarks/results/gate2-e2e/completed_job.json):

Stage Time
Download images (23, SHA-256 verified) 3.3 s
Image QC 5.7 s
Prepare (orient, resize) 15.0 s
SIFT feature extraction 9.8 s
Matching + geometric verification (253 pairs) 41.0 s
Sparse mapping + bundle adjustment 7.9 s
Metrics, export, publish 0.7 s
Total 87 s (the CLI alone, without download and publish steps: 67 to 73 s over four runs)

Peak process-tree RSS 3.8 GiB. Submit-to-202 latency: 46 ms.

Dense reconstruction (GPU, opt-in)

COLMAP 4.2.1 CUDA build, same terrace scene (23 images), dense working size 1000 px, geometric consistency on. Three measured runs:

Run Dense stage Points GPU memory in use (peak) Evidence
Through the platform, latest (job with dense: true, 413 s submit to completed) 355 s (PatchMatch 350 s, fusion 4.8 s) 248,468, all of them in the browser file 1,650 MiB benchmarks/results/gate5/dense_job.json
Through the platform, earlier (before the streamed browser format) 344 s (PatchMatch 340 s, fusion 3 s) 249,005 678 MiB the same file at an earlier commit (git history)
Standalone probe before integration 773 s 253,904 1,545 MiB measured by hand, not committed

The two platform runs agree on time within 3%. The standalone probe was 2.2x slower with the same inputs and settings, and the point count moves by about 0.2% between runs. The cause of the slow probe was not investigated; a plausible factor is laptop GPU power and thermal state, and the "memory in use" figure includes other processes on the GPU (desktop, browser), which is probably why it ranges from 678 to 1,650 MiB. Treat the dense numbers as a range. Peak GPU memory stayed far below the 8 GiB budget; the one-heavy-job-at-a-time rule means dense never runs alongside another GPU job.

Viewer, streamed multi-resolution cloud

The 248,468-point dense cloud above, as a 3.98 MB PXLD file in 8 levels (171, 720, 2,420, 7,695, 22,491, 57,516, 125,496, 248,468 points cumulative). Measured by benchmarks/measure_viewer.py (headless Chromium with software WebGL, against the local object store), so these numbers show decode and draw cost on this machine, not network speed or a real GPU:

Measure Value
First level drawn 106 ms
All 248,468 points received 147 ms
Points drawn at rest 248,468
Points drawn while the camera is moving 125,496 (largest level within the 150,000 cap)
Points drawn after the camera settles 248,468
Time per orbit step, full detail / Level 3 (2,420 points) 17.3 ms / 16.5 ms

The orbit step timing does not separate the two detail levels: under software rendering at this size it is dominated by input dispatch and the frame loop, so it is not evidence of a frame rate gain. What it does show is that the full cloud draws and orbits without stalling, and that the streaming and the coarse-while-moving logic behave as designed. Raw: benchmarks/results/gate5/viewer_lod.json.

Control-plane API under bounded load

Closed-loop clients on the same machine over loopback, zero think time, 15 s per phase after a 2 s warm-up; mix 5 list-projects : 5 get-job : 2 list-jobs : 1 create-project : 1 healthz. The get-job reads exist only in the "during reconstruction" phases (there is no job to read while idle). This measures HTTP behaviour of one Node process against real Postgres, not reconstruction throughput; exactly one reconstruction ran at a time. Source: benchmarks/api_load.py, benchmarks/results/gate4/api_load.json.

Condition Virtual users Throughput (req/s) p50 (ms) p95 (ms) p99 (ms) Errors
idle 1 294 3.3 4.9 5.7 0
idle 8 362 14.1 67.8 138 0
idle 32 253 91.4 351 536 0
reconstruction running 1 218 4.5 6.8 8.1 0
reconstruction running 8 231 21.4 114 212 0
reconstruction running 32 214 99.9 433 652 0

Reading it: throughput saturates at roughly 250 to 360 req/s here because the load generator, API, Postgres and (in the second half) a CPU-saturating reconstruction all share 16 threads; with a closed loop, latency is then queueing (32 users / 253 req/s is about 126 ms mean, consistent with Little's law). A running reconstruction cost about 15 to 36% of API throughput and raised p95 latency by about 70% at 8 users (68 to 114 ms); it caused no errors. Run the API on separate cores or hosts for headroom.

Queueing and cancellation (real processes)

Measurement Result Evidence
Second job while the first runs waited 89.6 s in QUEUED; never more than 1 job active gate2-e2e/queueing.json
Cancel to CANCELLED 6.1 s (was 33.5 s before the heartbeat timeout was shortened from 45 s to 10 s; the SDK throttles heartbeats to 80% of the timeout, which bounds cancel delivery) gate2-e2e/cancel.json
Worker hard-killed mid-job attempt 1 recorded FAILED (worker lost), retried on a new worker, job COMPLETED; total recovery 74.7 s gate2-e2e/worker_kill_retry.json
API restarted mid-job job unaffected, COMPLETED gate2-e2e/api_restart.json
Orphan engine after worker kill none (Job Object kill-on-close) test_resilience.py
Scratch left after kill / cancel / failure none (owner-pid sweeper) test_no_scratch_files_or_engines_remain