Python tool for aircraft Doppler audio geolocation using historical ADS-B flight data (Source-available)
Python acoustic-geolocationads-baircraft-trackingairplaneaudio-forensicsdoppler-effectdoppler-shiftgeolocationosintsignal-processing
Record integrated real-pipeline gains and reproducible methodology
Cinna Davisf35a2c598188
diff --git a/benchmarks/results/integrated-pipeline-20261103.json b/benchmarks/results/integrated-pipeline-20261103.jsonnew file mode 100644index 0000000..e778d66--- /dev/null+++ b/benchmarks/results/integrated-pipeline-20261103.json@@ -0,0 +1,461 @@+{+ "baseline_commit": "ae7721b7d3099980b884175cde1a3b07fc3fb1b5",+ "candidate_commit": "49c90338f7be87921dcae45119d111efeea68596",+ "core_local_commit": "a1859d16aaf3f8b09d564f3218180a672804f843",+ "local_and_published_tree_identical": true,+ "tree": "9b538576e2d7d09522f482413afd0fee7d906bae",+ "date": "2026-11-03",+ "runtime": {+ "python": "3.12.14",+ "platform": "Linux-6.18.57-x86_64-with-glibc2.39",+ "cpu": "AMD EPYC 9V74 80-Core Processor",+ "compiler": "GCC 13.3.0",+ "cpu_affinity": [+ 0+ ],+ "numerical_threads": 1,+ "packages": {+ "numpy": "2.5.4",+ "scipy": "1.17.0",+ "pandas": "2.2.3",+ "pyarrow": "26.0.1",+ "pyproj": "3.8.0",+ "rasterio": "1.5.2",+ "soundfile": "0.14.0"+ },+ "native_backends_built_for_both_sources": true,+ "host_scope": "Shared host with CPU affinity; operating-system caches are not flushed.",+ "measurement_note": "A 2.44-second unpinned read-only JSON extraction overlapped the first HTTP baseline. All pairs are retained."+ },+ "index_preparation": {+ "wall_seconds": 6.422003739,+ "samples": 1,+ "source_bytes": 41385984,+ "prepared_bytes": 85929984,+ "extra_bytes": 44544000,+ "tracks": 4694,+ "source_rows": 717735,+ "included_in_repeated_timers": false,+ "same_prepared_file_for_both_sources": true,+ "input_hash": "a6579818b80887546cd8f89d7b10730e568dfc6b12d90fd693254c37e3577827"+ },+ "dense": {+ "scope": "Recorded-input computation comparison; source-informed receiver, no recording-clock prior or accuracy claim. One association-anchor partition. Physical fit intervals remain unchanged.",+ "timing_scope": "Initial local index traversal and conservative distance sieve, followed by complete CPA/association scoring and retention. Excludes imports, index metadata, event preparation, downloads, terrain sampling, audio discovery, and refinement.",+ "equality_scope": "Exact scored candidate payloads, rankings, trial/support evidence and retention records. Early query/CPA/event/work counts may decrease; every removed unsupported track's complete emission interval must miss the proved partition interval.",+ "performance_timing_eligible": true,+ "identical_results": false,+ "identical_scored_candidates_rankings_and_retention": true,+ "medians": {+ "baseline": {+ "wall_seconds": 35.6002827730008,+ "cpu_seconds": 35.474947846,+ "peak_rss_mib": 456.671875+ },+ "current": {+ "wall_seconds": 18.111270369998238,+ "cpu_seconds": 17.857673297999998,+ "peak_rss_mib": 329.66015625+ }+ },+ "speedup": {+ "wall_seconds": 1.9656425002618005,+ "cpu_seconds": 1.9865380698824342+ },+ "execution_stage_medians": {+ "baseline": {+ "track_query_and_distance_sieve": {+ "wall_seconds": 7.0589362749997235,+ "cpu_seconds": 7.010339887000001+ },+ "cpa_association_scoring_and_retention": {+ "wall_seconds": 28.54126522400111,+ "cpu_seconds": 28.464537943999996+ }+ },+ "current": {+ "track_query_and_distance_sieve": {+ "wall_seconds": 0.20120891699843924,+ "cpu_seconds": 0.11932567900000013+ },+ "cpa_association_scoring_and_retention": {+ "wall_seconds": 17.76427373000115,+ "cpu_seconds": 17.694768357999997+ }+ }+ },+ "clock_partition_query_verification": {+ "requested_time_range_s": [+ 1788825600.17,+ 1788911999.6+ ],+ "effective_time_range_s": [+ 1788865079.6561337,+ 1788868750.471493+ ],+ "excluded_unsupported_tracks_proved_outside_time_range": 58,+ "baseline": {+ "queried_tracks": 4694,+ "queried_samples": 713100,+ "selected_tracks": 1354,+ "cpa_rows": 944,+ "unsupported_cpa_tracks": 62,+ "association_work_units": 302818+ },+ "current": {+ "queried_tracks": 197,+ "queried_samples": 40690,+ "selected_tracks": 197,+ "cpa_rows": 95,+ "unsupported_cpa_tracks": 4,+ "association_work_units": 147985+ }+ },+ "pairs": [+ {+ "repetition": 1,+ "order": [+ "baseline",+ "current"+ ],+ "wall_seconds": {+ "baseline": 35.78397957500056,+ "current": 18.111270369998238+ },+ "cpu_seconds": {+ "baseline": 35.593028533,+ "current": 17.857673297999998+ },+ "current_native_successes": {+ "native_fit_calls": 206740,+ "native_fit_successes": 206740,+ "native_acoustic_successes": 5111,+ "native_batch_calls": 4845,+ "native_batch_rows": 205878,+ "native_cpa_successes": 63+ }+ },+ {+ "repetition": 2,+ "order": [+ "current",+ "baseline"+ ],+ "wall_seconds": {+ "current": 18.834997592002765,+ "baseline": 35.6002827730008+ },+ "cpu_seconds": {+ "current": 18.683995778,+ "baseline": 35.474947846+ },+ "current_native_successes": {+ "native_fit_calls": 206740,+ "native_fit_successes": 206740,+ "native_acoustic_successes": 5111,+ "native_batch_calls": 4845,+ "native_batch_rows": 205878,+ "native_cpa_successes": 63+ }+ },+ {+ "repetition": 3,+ "order": [+ "baseline",+ "current"+ ],+ "wall_seconds": {+ "baseline": 35.543712098999094,+ "current": 17.06254462600191+ },+ "cpu_seconds": {+ "baseline": 35.39984853,+ "current": 17.004540921+ },+ "current_native_successes": {+ "native_fit_calls": 206740,+ "native_fit_successes": 206740,+ "native_acoustic_successes": 5111,+ "native_batch_calls": 4845,+ "native_batch_rows": 205878,+ "native_cpa_successes": 63+ }+ }+ ]+ },+ "dense_exact_outcomes": {+ "scored_candidates": 16101,+ "retained_ranked_modes": 100,+ "retention_records": 499,+ "retention_bounds": 15777,+ "retention_stages": 1+ },+ "unpartitioned_control": {+ "candidate_budget": 20000,+ "outcome": "budget_exhausted",+ "exact_exception_parity": true,+ "exception": "ValueError: Association work/storage budget exceeded; search is incomplete",+ "complete_output_parity": null,+ "performance_claim": null+ },+ "whole_upload": {+ "scope": "Three alternating fresh complete historical-MP3 regional HTTP pairs; no location-accuracy claim",+ "candidate_commit": "49c90338f7be87921dcae45119d111efeea68596",+ "fresh_completed_runs": 6,+ "strict_paired_comparisons_passed": 3,+ "recording_control": "fixed_counts",+ "audio_sha256": "707083f0344823eeea7f130faec6c22b6628b8b9fea04d026915d93df9a07b15",+ "audio_bytes": 43202925,+ "final_outcome": {+ "status": "inconclusive",+ "reason_code": "search_incomplete",+ "event_count": 17,+ "independent_groups": 15,+ "candidate_count": 23+ },+ "medians": {+ "baseline": {+ "receipt_elapsed_s": 57.8242763010021,+ "cpu_s": 57.46394,+ "wall_s": 57.83230471000206+ },+ "current": {+ "receipt_elapsed_s": 48.85262222700112,+ "cpu_s": 48.406851,+ "wall_s": 48.86167615600061+ }+ },+ "speedup": {+ "receipt_elapsed_s": 1.1836473389762545,+ "cpu_s": 1.1871034535999874,+ "wall_s": 1.1835923214210036+ },+ "timing_scope": {+ "receipt_elapsed_s": "Service startup, complete HTTP workflow, service shutdown, and evidence verification",+ "cpu_s": "Wrapper and waited child CPU during HTTP verification/output checks",+ "wall_s": "Wrapper wall time during HTTP verification/output checks",+ "excluded": "Wrapper input checks/imports, external artifact downloads/restoration, and one-time prepared-index construction",+ "file_cache": "Fresh interpreters/jobs; operating-system file caches are not flushed"+ },+ "observed_stage_medians": {+ "baseline": {+ "acquisition": {+ "median_s": 0.5428009033203125,+ "observed_runs": 3+ },+ "decision": {+ "median_s": 0.2851829528808594,+ "observed_runs": 1+ },+ "discovery": {+ "median_s": 6.086487054824829,+ "observed_runs": 3+ },+ "intake": {+ "median_s": 7.059269905090332,+ "observed_runs": 3+ },+ "queued": {+ "median_s": 0.25151491165161133,+ "observed_runs": 3+ },+ "refinement": {+ "median_s": 13.420761823654175,+ "observed_runs": 3+ },+ "search": {+ "median_s": 25.765166997909546,+ "observed_runs": 3+ }+ },+ "current": {+ "acquisition": {+ "median_s": 0.5479238033294678,+ "observed_runs": 3+ },+ "decision": {+ "median_s": 0.2782268524169922,+ "observed_runs": 1+ },+ "discovery": {+ "median_s": 6.341678142547607,+ "observed_runs": 3+ },+ "intake": {+ "median_s": 7.31531286239624,+ "observed_runs": 3+ },+ "queued": {+ "median_s": 0.2529749870300293,+ "observed_runs": 3+ },+ "refinement": {+ "median_s": 11.009169101715088,+ "observed_runs": 3+ },+ "search": {+ "median_s": 20.141972064971924,+ "observed_runs": 3+ }+ }+ },+ "stage_scope": "First observed HTTP transitions with 0.25s polling; absent short stages are not assigned zero",+ "runs": [+ {+ "pair": 1,+ "source": "baseline",+ "receipt_elapsed_s": 55.82446273499954,+ "cpu_s": 55.531588,+ "wall_s": 55.83940441999948+ },+ {+ "pair": 1,+ "source": "current",+ "receipt_elapsed_s": 49.98666654200133,+ "cpu_s": 49.711473999999995,+ "wall_s": 50.00268434999816+ },+ {+ "pair": 2,+ "source": "current",+ "receipt_elapsed_s": 47.887873726998805,+ "cpu_s": 47.593219,+ "wall_s": 47.895845898001426+ },+ {+ "pair": 2,+ "source": "baseline",+ "receipt_elapsed_s": 59.39271977599856,+ "cpu_s": 59.088989999999995,+ "wall_s": 59.3990793869998+ },+ {+ "pair": 3,+ "source": "baseline",+ "receipt_elapsed_s": 57.8242763010021,+ "cpu_s": 57.46394,+ "wall_s": 57.83230471000206+ },+ {+ "pair": 3,+ "source": "current",+ "receipt_elapsed_s": 48.85262222700112,+ "cpu_s": 48.406851,+ "wall_s": 48.86167615600061+ }+ ],+ "pairs": [+ {+ "pair": 1,+ "order": [+ "baseline",+ "current"+ ],+ "strict_scientific_and_array_parity": true,+ "semantic_differences": 0,+ "array_differences": 0,+ "checked_artifacts": {+ "json": 20,+ "sqlite": 1,+ "root_json": 3+ },+ "checked_arrays": {+ "intake_diagnostics": 1,+ "decoded_pcm": 1,+ "csv": 17,+ "npz": 0,+ "npz_arrays": 0,+ "png": 1+ },+ "speedup": {+ "receipt_elapsed_s": 1.1167870673691154,+ "cpu_s": 1.1170778802495376,+ "wall_s": 1.1167281346166675+ }+ },+ {+ "pair": 2,+ "order": [+ "current",+ "baseline"+ ],+ "strict_scientific_and_array_parity": true,+ "semantic_differences": 0,+ "array_differences": 0,+ "checked_artifacts": {+ "json": 20,+ "sqlite": 1,+ "root_json": 3+ },+ "checked_arrays": {+ "intake_diagnostics": 1,+ "decoded_pcm": 1,+ "csv": 17,+ "npz": 0,+ "npz_arrays": 0,+ "png": 1+ },+ "speedup": {+ "receipt_elapsed_s": 1.2402454975258885,+ "cpu_s": 1.241542203732847,+ "wall_s": 1.240171841071469+ }+ },+ {+ "pair": 3,+ "order": [+ "baseline",+ "current"+ ],+ "strict_scientific_and_array_parity": true,+ "semantic_differences": 0,+ "array_differences": 0,+ "checked_artifacts": {+ "json": 20,+ "sqlite": 1,+ "root_json": 3+ },+ "checked_arrays": {+ "intake_diagnostics": 1,+ "decoded_pcm": 1,+ "csv": 17,+ "npz": 0,+ "npz_arrays": 0,+ "png": 1+ },+ "speedup": {+ "receipt_elapsed_s": 1.1836473389762545,+ "cpu_s": 1.1871034535999874,+ "wall_s": 1.1835923214210036+ }+ }+ ]+ },+ "local_validation": {+ "native_real_gate": {+ "modules": 36,+ "passed": 329,+ "subtests_passed": 4,+ "skipped": 0+ },+ "python_fallback_gate": {+ "modules": 5,+ "passed": 71,+ "skipped": 1,+ "skip_reason": "Native-only export intentionally disabled; same case passed in native gate."+ },+ "after_geographic_bounds_integration": {+ "modules": 6,+ "passed": 37,+ "skipped": 0+ }+ },+ "limitations": [+ "One recorded input, one source-informed region, one host, three paired repetitions per timing scope.",+ "This does not establish independent location accuracy or nationwide completion time.",+ "Dense timing excludes discovery, terrain and refinement. Whole-upload timing is reported separately.",+ "Whole-upload status remains inconclusive/search_incomplete.",+ "Prepared-index construction is separate. No isolated speedup is assigned to preparation alone.",+ "The local-raster upload uses serial search. This series makes no multicore scaling claim."+ ]+}diff --git a/docs/PERFORMANCE.md b/docs/PERFORMANCE.mdindex 4406e5a..64c9251 100644--- a/docs/PERFORMANCE.md+++ b/docs/PERFORMANCE.md@@ -1,5 +1,333 @@# Measured pipeline performance+## Integrated pipeline acceleration, 2026-11-03++The integrated version reduces dense-search CPU time by **49.66%** and complete regional-upload elapsed time by **15.51%**.+Both results use three alternating pairs against pinned main revision `ae7721b`.+The [compact measurement record](../benchmarks/results/integrated-pipeline-20261103.json) contains every pair and its comparison results.+The implementation is in [PR274](https://github.com/1337isnot1337/DOPPLERGEIST/pull/274).++The branch combines [PR266](https://github.com/1337isnot1337/DOPPLERGEIST/pull/266), including PR256, with [PR262](https://github.com/1337isnot1337/DOPPLERGEIST/pull/262).+These changes avoid irrelevant flight decoding, reuse exact measurements and rejected prefixes, batch native fits, and reuse terrain and refinement inputs.+This integration also removes empty-association allocations, resolves the terrain-cache overlap, and preserves the geographic constraints from PR270.+The corrected benchmark keeps numerical functions unchanged during performance measurements.+Diagnostic wrappers and profilers cannot produce a production speedup claim.++### Complete regional HTTP workflow++Three alternating pairs reduced median complete HTTP elapsed time from **57.824 seconds to 48.853 seconds**. This is a **1.184× speedup and 15.51% less elapsed time**. Median CPU time decreased from **57.464 seconds to 48.407 seconds**, or **15.76%**. All six fresh runs completed, and all three strict paired comparisons passed.++| Pair | Order | Baseline HTTP seconds | Candidate HTTP seconds | Baseline CPU seconds | Candidate CPU seconds | HTTP speedup |+| --- | --- | ---: | ---: | ---: | ---: | ---: |+| 1 | Baseline, candidate | 55.824 | 49.987 | 55.532 | 49.711 | 1.117× |+| 2 | Candidate, baseline | 59.393 | 47.888 | 59.089 | 47.593 | 1.240× |+| 3 | Baseline, candidate | 57.824 | 48.853 | 57.464 | 48.407 | 1.184× |+| Median | Three runs per revision | **57.824** | **48.853** | **57.464** | **48.407** | **1.184×** |++The HTTP timer includes service startup, upload, the complete workflow, service shutdown, and evidence verification. Wrapper wall-time medians were 57.832 and 48.862 seconds. Wrapper input checks and imports, external downloads, and prepared-index construction are outside this timed scope. Service startup imports and local acquisition remain part of the workflow.++The separate dense-search control reduced median CPU time from 35.475 to 17.858 seconds: **1.987×**. Its wall-time medians were 35.600 and 18.111 seconds: **1.966×**. The approximately twofold result applies to dense search. The complete HTTP control saved 15.5% of elapsed time.++#### Equality and controls++Baseline revision: `ae7721b7d3099980b884175cde1a3b07fc3fb1b5`.+Candidate revision: `49c90338f7be87921dcae45119d111efeea68596`.+Both revisions include the geographic refinement constraint from #270.++Each run used a fresh interpreter, HTTP service, and job. Both revisions used the same prepared SQLite index, dependencies, interpreter, operator configuration, request, and recorded audio. CPU affinity was CPU 0, with one numerical thread.++Both used native ridge fitting and acoustic propagation. The same existing default disabled detail plots. The verifier and comparators came from the candidate checkout for both revisions. Neither revision changed during the six runs.++The MP3 exactly matched the historical recording: 43,202,925 bytes, SHA-256 `707083f0344823eeea7f130faec6c22b6628b8b9fea04d026915d93df9a07b15`. Every run retained **17 ridges, 15 independent groups, and 23 candidates**. Every result remained **`inconclusive`**, with reason **`search_incomplete`**. These source-informed regional bounds and clock settings measure runtime. They do not establish location accuracy.++Each comparison reported **zero scientific-payload differences and zero array differences**. It compared 20 job JSON artifacts, three root JSON artifacts, and one logical SQLite database. Array verification covered decoded PCM, 17 CSV files, the overview PNG, and intake diagnostics. No scientific score, candidate, trial, retention row, or array was exempted. Normalization covered declared execution metadata only. Every service stopped successfully without forced termination.++The host was shared, with CPU affinity controls. Operating-system file caches were not flushed. One unpinned, read-only JSON extraction lasted 2.44 seconds during the first baseline run. No second numerical workload ran concurrently. All pairs remain in the report.++#### Remaining elapsed time++These approximate stage medians use HTTP transitions observed every 0.25 seconds. All six listed stages were observed in all three runs per revision.++| Stage | Baseline seconds | Candidate seconds |+| --- | ---: | ---: |+| Queued | 0.252 | 0.253 |+| Intake | 7.059 | 7.315 |+| Discovery | 6.086 | 6.342 |+| Local acquisition | 0.543 | 0.548 |+| Search | 25.765 | 20.142 |+| Refinement | 13.421 | 11.009 |++Search remains the largest stage at approximately 20.14 seconds, followed by refinement at 11.01 seconds. Intake and discovery together account for approximately 13.66 seconds. Stage medians do not sum exactly to the median HTTP duration. The decision stage appeared in only one poll sequence per revision, so it has no three-run estimate.+++### Dense query and scoring++The integrated version takes **17.85767 seconds of CPU time**, compared with **35.47495 seconds** for pinned main `ae7721b`, on the recorded dense partition.+This is a **1.98654× CPU speedup** and **49.66% less CPU time**.+Median elapsed time decreases from **35.60028 to 18.11127 seconds**, a **1.96564× speedup**.+Both versions process the same 16,101 association candidates and retain the same 100 ranked modes.++The baseline is `ae7721b7d3099980b884175cde1a3b07fc3fb1b5`, including the latest geographic refinement bounds.+The measured local candidate is `a1859d16aaf3f8b09d564f3218180a672804f843`.+The public candidate is `49c90338f7be87921dcae45119d111efeea68596`.+Their complete Git trees are identical. Publication changed commit metadata only.++#### Timed scope and repeated measurements++The timer includes the flight query, conservative distance filter, closest-approach calculations, association scoring, and retention writes.+It excludes imports, index metadata, event preparation, downloads, index construction, terrain sampling, audio discovery, and refinement.+The workload uses one source-informed receiver and one association-anchor partition, without a recording-start clock prior.+The incomplete regional archive cannot establish independent location accuracy, complete daily search, or national completion time.++Each version runs in a fresh process on CPU 0, with one numerical thread.+The three pairs alternate baseline/candidate, candidate/baseline, then baseline/candidate.+The runtime uses Python 3.12.14, NumPy 2.5.4, SciPy 1.17.0, pandas 2.2.3, PyArrow 26.0.1, pyproj 3.8.0, and rasterio 1.5.2.+Both versions use their built native backends and the same prepared SQLite file.+The timer preserves the original numerical function identities. Numerical wrappers, phase instrumentation, and profilers are absent.+The harness verifies exact outputs outside the timed region.++| Pair | Order | Baseline CPU | Candidate CPU | Baseline elapsed | Candidate elapsed |+| --- | --- | ---: | ---: | ---: | ---: |+| 1 | Baseline, candidate | 35.593029 s | 17.857673 s | 35.783980 s | 18.111270 s |+| 2 | Candidate, baseline | 35.474948 s | 18.683996 s | 35.600283 s | 18.834998 s |+| 3 | Baseline, candidate | 35.399849 s | 17.004541 s | 35.543712 s | 17.062545 s |+| Median | | **35.474948 s** | **17.857673 s** | **35.600283 s** | **18.111270 s** |++| Component | Baseline CPU median | Candidate CPU median |+| --- | ---: | ---: |+| Flight query and distance filter | 7.010340 s | 0.119326 s |+| Closest approaches, associations, scoring, and retention | 28.464538 s | 17.694768 s |++Component medians do not sum to the complete median. Component speedups do not multiply into a pipeline speedup.+Peak RSS medians through scoring are **456.671875 MiB** and **329.660156 MiB**, respectively.+These memory measurements include worker imports and input loading. They exclude the parent comparison process and later output serialization.+The operating-system file cache remains available between runs. Fresh workers do not establish performance with uncached files.++#### Exact outcomes and reduced work++All three pairs preserve exact candidate payloads, ranked modes, trial and support evidence, and logical retention tables.+Repeated outputs from each version are deterministic.+Each retention database contains **499 records, 15,777 bounds, and one stage**.+The outputs preserve **15,777 bounded candidate assessments** and **590,900 unknown trials**.++| Work item | Baseline | Candidate |+| --- | ---: | ---: |+| Queried tracks | 4,694 | 197 |+| Queried samples | 713,100 | 40,690 |+| Selected tracks | 1,354 | 197 |+| Closest-approach rows | 944 | 95 |+| Association work units | 302,818 | 147,985 |+| Unsupported tracks at closest approach | 62 | 4 |+| Processed association candidates | 16,101 | 16,101 |+| Ranked retained modes | 100 | 100 |++The original emission interval is `[1788825600.17, 1788911999.6]`.+The candidate uses the conservative partition interval `[1788865079.6561337, 1788868750.471493]`.+The harness verifies that queried tracks form a subset and that early work counts do not increase.+All **58 removed unsupported tracks** have complete emission intervals outside the feasible partition interval.++The full diagnostic documents differ because those early counts decrease.+The report therefore sets `identical_results` to false and `identical_scored_candidates_rankings_and_retention` to true.+Each candidate run records **206,740 successful native fits, 5,111 native acoustic solves, and 63 native closest-approach reductions**.++#### Prepared-index cost and unpartitioned control++One preparation run took **6.422 seconds** to create the reusable numeric index.+The source index occupies **41,385,984 bytes (39.468750 MiB)**.+The prepared copy occupies **85,929,984 bytes (81.949219 MiB)**.+The prepared representation adds **44,544,000 bytes (42.480469 MiB)** to the copy.+Keeping both files requires **127,315,968 bytes (121.417969 MiB)**.+The copy preserves the original payloads, source identity, and coverage metadata for compatible baseline readers.+Preparation is outside the repeated query timer. The measured gain combines preparation, partition filtering, and scoring changes.+These measurements do not isolate the prepared format's contribution or its separate break-even count.++The unpartitioned control removes only the association anchor and its scope sentence from the same fixture.+Its candidate limit remains 20,000. Both versions stop with the same error:++```text+ValueError: Association work/storage budget exceeded; search is incomplete+```++This control establishes exact budget-error parity. It establishes neither completed full-day output parity nor a full-day speedup.++### Reproduce the dense comparison++Use a Linux host with Python 3.12, GCC, Git, and the GitHub CLI.+Use separate clean source trees for the two pinned commits.+Keep other CPU-intensive work outside the measurement interval.++```bash+git fetch origin+git worktree add --detach ../dopplergeist-measured \+ 49c90338f7be87921dcae45119d111efeea68596+git worktree add --detach ../dopplergeist-baseline \+ ae7721b7d3099980b884175cde1a3b07fc3fb1b5+cd ../dopplergeist-measured++python3.12 -m venv .venv-performance+. .venv-performance/bin/activate+python -m pip install 'setuptools==84.1.0'+python -m pip install -e '.[test]' \+ 'numpy==2.5.4' 'scipy==1.17.0' 'pandas==2.2.3' \+ 'pyarrow==26.0.1' 'pyproj==3.8.0' 'rasterio==1.5.2'+CC=gcc python setup.py build_ext --inplace+(cd ../dopplergeist-baseline && CC=gcc python setup.py build_ext --inplace)++export PYTHONPATH="$PWD/src"+export OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 MKL_NUM_THREADS=1+export NUMEXPR_NUM_THREADS=1 VECLIB_MAXIMUM_THREADS=1+export DOPPLERGEIST_RIDGE_BACKEND=auto+export DOPPLERGEIST_ACOUSTIC_BACKEND=auto+export DOPPLERGEIST_CPA_BACKEND=auto++python scripts/restore_artifacts.py \+ --bundle data-source --bundle data-adsb-derived --bundle data-terrain+PYTHONPATH="$PWD/../dopplergeist-baseline/src" \+ python scripts/prepare_reference_upload.py \+ --data-root data --output benchmark-inputs+```++The restore helper verifies the archived sizes and hashes from `evidence/artifact-manifest.json`.+The index builder uses the original observed bounds and retains the incomplete-coverage metadata.+It produces **717,735 source rows and 4,694 segments**.+The original ingestion excluded known jets. The observed bounds do not establish complete geographic coverage.++Freeze the exact partition fixture and the optional regression fixtures:++```bash+python scripts/benchmark_prepared_measurements.py prepare \+ --discovery evidence/audio/w1-sensitivity-20261102/reference/discovery.json \+ --reference-report evidence/results/reference-local/report.json \+ --index benchmark-inputs/reference-region.sqlite \+ --full-day --max-tracks 2000 --max-samples 500000 --max-candidates 20000 \+ --anchor-window-s 1788864888.7151732 1788865236.7214916 \+ --include-track-query --output benchmark-inputs/dense-query.json++for width in 120 10; do+ python scripts/benchmark_prepared_measurements.py prepare \+ --discovery evidence/audio/w1-sensitivity-20261102/reference/discovery.json \+ --reference-report evidence/results/reference-local/report.json \+ --index benchmark-inputs/reference-region.sqlite \+ --clock-half-width-s "$width" --output "benchmark-inputs/point-$width.json"+done++python scripts/benchmark_prepared_flight_search.py prepare-index \+ --source src --index benchmark-inputs/reference-region.sqlite \+ --destination benchmark-inputs/reference-region-prepared.sqlite \+ --output results/flight-preparation.json+```++The dense fixture contains **16 independent groups and 724 ridge samples**.+Its original query traverses **4,694 tracks and 713,100 samples**.+The original filter retains **1,354 tracks and 357,324 samples**, with **944 closest-approach rows and 62 unsupported tracks**.+The 120-second and 10-second fixtures support regression checks. They are outside this headline timing series.++Run the canonical harness without diagnostic flags:++```bash+taskset -c 0 python scripts/benchmark_prepared_measurements.py compare \+ --fixture benchmark-inputs/dense-query.json \+ --index benchmark-inputs/reference-region-prepared.sqlite \+ --baseline-source ../dopplergeist-baseline/src --current-source src \+ --repeats 3 --timeout-s 600 --output results/integrated-dense \+ --include-track-query --clock-partition-query \+ --require-current-native --require-current-native-acoustic \+ --require-current-native-cpa+```++The result must report `performance_timing_eligible: true` and exact parity of scored outputs.+The comparison file also contains the independent proof of reduced work and every timed sample.+If CPU 0 is unavailable, select one allowed CPU.+Record that reproduction difference.+++### Reproduce the complete upload comparison++Use the prepared inputs and activated environment from the preceding procedure.+Encode the canonical WAV once for both revisions:++```bash+ffmpeg -nostdin -v error -i data/source/reference-recording.wav \+ -ac 1 -ar 48000 -c:a libmp3lame -b:a 96k benchmark-inputs/reference.mp3++python - <<'PY'+import json+from pathlib import Path+root = Path('benchmark-inputs')+operator = json.loads((root / 'operator.json').read_text())+operator['flight_indexes'] = [str((root / 'reference-region-prepared.sqlite').resolve())]+operator['search_workers'] = 1+with (root / 'operator-prepared.json').open('x') as output:+ json.dump(operator, output, indent=2)+ output.write('\n')+PY+```++Run three fresh pairs in alternating order:++```bash+set -euo pipefail+DG_RESULTS=results/integrated-http+mkdir "$DG_RESULTS"+DG_COMMON=(+ --audio benchmark-inputs/reference.mp3+ --request benchmarks/reference-regional-upload-request.json+ --operator benchmark-inputs/operator-prepared.json+ --allow-new-encoding --reference-wav data/source/reference-recording.wav+ --cpu 0 --threads 1 --timeout-s 900 --poll-interval-s 0.25+)+for DG_PAIR in 1 2 3; do+ DG_ORDER=(baseline current)+ if [ "$DG_PAIR" = 2 ]; then DG_ORDER=(current baseline); fi+ for DG_ARM in "${DG_ORDER[@]}"; do+ DG_SOURCE=../dopplergeist-baseline/src+ if [ "$DG_ARM" = current ]; then DG_SOURCE=src; fi+ python scripts/benchmark_real_regional_upload.py \+ --source "$DG_SOURCE" "${DG_COMMON[@]}" \+ --output "$DG_RESULTS/pair-$DG_PAIR-$DG_ARM"+ done+ python scripts/benchmark_real_regional_upload.py \+ --compare "$DG_RESULTS/pair-$DG_PAIR-baseline" \+ "$DG_RESULTS/pair-$DG_PAIR-current" \+ --output "$DG_RESULTS/pair-$DG_PAIR-comparison.json"+done+```++The measured encoder is FFmpeg 6.1.1. Its MP3 digest activates the fixed 17-ridge and 15-group control.+A different encoder can produce different bytes and event counts.+The explicit `--allow-new-encoding` declaration permits a new paired control against the canonical WAV.+Such a control cannot inherit these historical counts or timing claims.+Every pair must pass both scientific-payload and array comparisons before a speedup claim.++### Regression gates and operating limits++The native gate passed **329 tests and four subtests**, with zero skips, across 36 real-input modules.+The explicit Python gate passed **71 tests**. One native-only export test skipped because that gate disabled its backend.+The native gate passed that same test.+After the PR270 integration, **37 relevant real refinement tests passed**, with zero skips.+The performance workflow now includes the geographic-boundary module and both association regressions.+The [installation checks](https://github.com/1337isnot1337/DOPPLERGEIST/actions/runs/41719340040) passed on Python 3.11 and 3.14.+They cover packaged native backends, source compilation, CLI startup, and browser assets.+The [independent performance run](https://github.com/1337isnot1337/DOPPLERGEIST/actions/runs/41719123985) contains the separate runner results.++The host uses an AMD EPYC 9V74 processor, Linux 6.18.57, and GCC 13.3.0.+Both timing series use one CPU. They make no multicore scaling claim.+The explicit local rasters instantiate `Terrain`, which retains the serial search path.+Increasing `search_workers` alone does not enable parallel execution for that terrain class.++An earlier geometry experiment improved small query slices but slowed the complete 4,694-track query by approximately 3%.+That experiment is absent from this implementation.+The retained changes passed the larger workload and the complete upload comparisons.++### Use the optimized implementation++Build the native extensions with `python -m pip install -e .`.+Prepare a separately named index with `python scripts/prepare_flight_index.py --index ORIGINAL.sqlite --output PREPARED.sqlite`.+Set `flight_indexes` in the operator configuration to that prepared index.+The default `auto` backends select compatible native extensions.+A fresh output directory permits the optimized runtime to establish its own checkpoint identity.+Existing checkpoint compatibility rules remain documented in the backend section of this guide.+## Prepared flight inputs and exact search reuse[PR262](https://github.com/1337isnot1337/DOPPLERGEIST/pull/262) adds an optional