Python tool for aircraft Doppler audio geolocation using historical ADS-B flight data (Source-available)
Python acoustic-geolocationads-baircraft-trackingairplaneaudio-forensicsdoppler-effectdoppler-shiftgeolocationosintsignal-processing
docs: record exact flight-search and complete upload measurements
Cinna Davis6aa05003a5db
diff --git a/benchmarks/results/query-scoring-20261103.json b/benchmarks/results/query-scoring-20261103.jsonnew file mode 100644index 0000000..b6177c3--- /dev/null+++ b/benchmarks/results/query-scoring-20261103.json@@ -0,0 +1,15 @@+{+ "schema_version": 1,+ "date_utc": "2026-11-03",+ "scope": "Recorded flight query, conservative sieve, scoring, and bounded upload performance; exact baseline consistency, not independent localization accuracy.",+ "versions": {"current_production":"a82f4b02a5a4097693954ddec8e2c2386189e63a","ci_only_followup":"52db126a324316eb40e1c00a0df2e473483e1ba2","incremental_main":"27da08a878ac2ec90cd7e2c07f43765ceeea609b","http_main":"494b874a42d8599e5950a05ef60f06a96ef4d1b9","task_start_main":"18e29d0e91b7b450aeca29915ceb72ee987349be"},+ "attribution": "PR237 merged native fitting, acoustics, single-pass query and CPA improvements during this task. The direct task-start gain includes that work; only comparisons against 27da08a/494b874 isolate PR258.",+ "local_environment": {"platform":"Linux x86-64","python":"3.12.14","numpy":"2.5.4","scipy":"1.17.0","pandas":"2.2.3","pyarrow":"26.0.1","pyproj":"3.8.0","sqlite":"3.53.1","native_compiler":"GCC; existing strict floating-point flags","native_positive_validation_helper_available_current":true},+ "local_method": {"repeats":3,"sample_order":["baseline","current","current","baseline","baseline","current"],"sample_columns":["cpu_seconds","wall_seconds","peak_rss_mib","load_seconds_excluded"],"median_columns":["cpu_seconds","wall_seconds","peak_rss_mib"],"dense_stage_columns":["query_cpu_seconds","query_wall_seconds","scoring_cpu_seconds","scoring_wall_seconds"],"fresh_interpreter_each_run":true,"numerical_threads":1,"cpu_affinity":[2],"combined_track_cache_bytes":33554432,"speedup_formula":"baseline median / current median; no multiplication of separate component ratios","peak_rss_scope":"Worker lifetime through scoring, including imports and loading","query_timing_scope":"Initial local index traversal and distance sieve, complete CPA/association physics, scoring and retention; inventory diagnostics use the same instrumentation in both arms.","scoring_timing_exclusions":["imports","index metadata","event preparation","downloads","terrain sampling","audio discovery","refinement"],"point_timing_excludes_track_lookup":true,"profile_and_diagnostic_hit_counter_runs_excluded":true,"host_exclusive":false,"os_file_caches_purged":false},+ "inputs": {"recorded_assets":["reference.mp3","2026-09-08/reference-region.parquet","reference-region.sqlite","reference/discovery.json","reference-local/report.json"],"common_scoring_counts":{"ridge_records":16,"independent_groups":16,"ridge_samples":724,"retained_candidates":100},"point120":{"clock_half_width_seconds":120,"trajectories":452,"trajectory_samples":91889,"cpa_rows":100,"unsupported_cpa_tracks":4,"scored_associations":3905},"dense":{"queried_tracks":4694,"queried_samples":713100,"selected_tracks":1354,"selected_samples":357324,"track_budget":2000,"sample_budget":500000,"candidate_budget":20000,"cpa_rows":944,"unsupported_cpa_tracks":62,"scored_associations":16101,"recording_clock_prior":false,"anchor_window_half_open_seconds":[1788864888.7151732,1788865236.7214916]},"http":{"source_bytes":43202925,"bounds_wsen":[-73.545,40.865,-73.505,40.895],"start_utc":"2026-09-08T20:17:20Z","end_utc":"2026-09-08T20:17:40Z","source_informed_clock_and_region":true,"offline":true,"workers":1,"spacing_m":2000,"tile_cells":16,"top_k":20,"refine_spacing_m":500,"refine_finalists":3,"poll_interval_seconds":1.0,"timeout_seconds":900}},+ "local_scoring": [{"name":"incremental-point120","baseline_version":"incremental_main","input":"point120","all_six_complete_results_exact":true,"samples":[[5.720118476,5.730895667999903,340.140625,0.8695497300004718],[5.681689497,5.6911615150002035,333.953125,0.815304470999763],[5.619200964,5.63003038900024,332.05859375,0.8031022040004245],[6.963059402000001,6.9746317079998335,338.64453125,1.264777497999603],[6.218398489,6.2329133990006085,339.078125,1.4553520990002653],[5.848828129,5.860215613999571,334.34375,0.7295623879999766]],"medians":{"baseline":[6.218398489,6.2329133990006085,339.078125],"current":[5.681689497,5.6911615150002035,333.953125]},"speedup":{"wall_seconds":1.0951917956593762,"cpu_seconds":1.0944629220381348},"scored_candidates_per_run":3905,"native_calls_per_run":{"baseline":{"ridge_successes":38890,"acoustic_successes":850},"current":{"ridge_successes":38890,"acoustic_successes":850}}},{"name":"incremental-dense-query","baseline_version":"incremental_main","input":"dense","all_six_complete_results_exact":true,"samples":[[39.870369149,39.95561797999926,516.73828125,0.01089792699985992],[36.161356706,36.22017975600011,498.16015625,0.008130401000016718],[38.103724546,38.211053262999485,497.0,0.0044214249992364785],[37.419185848000005,37.473071678999986,513.40625,0.01612715000010212],[35.825968071000005,35.87152201000026,516.015625,0.012284303000342334],[31.773158165,31.81593474700003,498.77734375,0.00469508100013627]],"medians":{"baseline":[37.419185848000005,37.473071678999986,516.015625],"current":[36.161356706,36.22017975600011,498.16015625]},"speedup":{"wall_seconds":1.0345909913048492,"cpu_seconds":1.0347837928821764},"scored_candidates_per_run":16101,"native_calls_per_run":{"baseline":{"ridge_successes":228240,"acoustic_successes":5731},"current":{"ridge_successes":228240,"acoustic_successes":5731}},"stage_samples":[[9.703838389,9.732110690999434,30.166429559999997,30.22339659299996],[7.165225494,7.173120638999535,28.996020936999997,29.046937985000113],[6.959621629000001,6.969528206000177,31.144050879,31.24146224299966],[9.523918316,9.533770521000406,27.895168194,27.939191752000625],[8.894847303,8.904159198999878,26.931009863,26.967238111999905],[6.365441425,6.373474733999501,25.407641359000003,25.44237043799967]],"query_operations_per_run":{"baseline":{"query_calls":1,"decoded_track_yields":4694,"decoded_sample_yields":713100},"current":{"query_calls":1,"decoded_track_yields":4694,"decoded_sample_yields":713100}}},{"name":"task-start-dense-query","baseline_version":"task_start_main","input":"dense","all_six_complete_results_exact":true,"samples":[[64.38572244699999,64.48026108999966,509.2421875,0.010712334999880113],[32.507346941,32.565501757000675,498.62890625,0.005335169000318274],[35.420173387999995,35.48113461899993,499.375,0.005186492000575527],[63.79839404500001,63.892868821000775,507.38671875,0.01563241999974707],[60.264935393,60.34836685600021,507.6484375,0.012689273000432877],[31.77607265,31.830469921998883,499.42578125,0.006176113000037731]],"medians":{"baseline":[63.79839404500001,63.892868821000775,507.6484375],"current":[32.507346941,32.565501757000675,499.375]},"speedup":{"wall_seconds":1.9619801745344085,"cpu_seconds":1.9625838479157482},"scored_candidates_per_run":16101,"native_calls_per_run":{"baseline":{"ridge_successes":0,"acoustic_successes":0},"current":{"ridge_successes":228240,"acoustic_successes":5731}},"stage_samples":[[11.0584344,11.07092138400003,53.327230672999995,53.409270262000064],[6.405070714,6.411769057000129,26.102207005,26.153652048999902],[6.781114356,6.789197293000143,28.639004982000003,28.691871606999484],[12.44285417,12.462772408999626,51.355482169,51.43002895000063],[11.352030216,11.36929460600004,48.912826069000005,48.97898086299938],[6.1820815200000006,6.188814786999501,25.593939203000005,25.64159336099874]],"query_operations_per_run":{"baseline":{"query_calls":2,"decoded_track_yields":6695,"decoded_sample_yields":1047000},"current":{"query_calls":1,"decoded_track_yields":4694,"decoded_sample_yields":713100}}}],+ "local_cold_query": {"repetitions":3,"cpu_affinity":[0],"numerical_threads":1,"track_cache_bytes":0,"fresh_interpreter_per_run":true,"exact_selection_and_support":true,"medians":{"baseline":{"cpu_s":10.459209497,"wall_s":10.47235806200024},"current":{"cpu_s":7.471469857999999,"wall_s":7.476558059999661}},"speedup":{"cpu_s":1.399886460868327,"wall_s":1.4006924012305089},"baseline_version":"incremental_main","input":"dense","sample_columns":["cpu_seconds","wall_seconds"],"samples_by_source":{"baseline":[[10.459209497,10.47235806200024],[10.146398435,10.186463347999961],[10.883873063,10.892990074999943]],"current":[[8.087266081000001,8.093539874999806],[7.471469857999999,7.476558059999661],[6.438377079,6.443415918000028]]}},+ "local_http": {"baseline_version":"http_main","pairs_completed":3,"sample_columns":["receipt_elapsed_seconds","search_report_elapsed_seconds","pipeline_elapsed_seconds"],"samples_by_source":{"baseline":[[51.34914260599999,22.78895559800003,47.355714760999945],[51.210711661999085,23.679485234999447,47.28355576799913],[51.09442869299892,22.77728132000084,47.15190229899963]],"current":[[54.36643100800029,23.329315202000544,50.28335708800023],[48.9633101039999,21.591021312999146,45.20253817899902],[49.50034809899989,21.62097054900005,45.31673410499934]]},"medians":{"baseline":[51.210711661999085,22.78895559800003,47.28355576799913],"current":[49.50034809899989,21.62097054900005,45.31673410499934]},"speedup_receipt_wall":1.0345525562684628,"initial_pair_current_slower":true,"all_completed_workflows_verified_and_exact":true,"outcome_each_run":{"status":"inconclusive","reason_code":"search_incomplete","event_count":17,"candidate_count":23},"checked_scientific_artifacts_each_pair":{"json":20,"sqlite":1,"root_json":3},"ledger_rows_each_run":{"bounds":29738,"records":852,"run":1,"stages":12},"checked_arrays_each_pair":{"intake_diagnostics":1,"decoded_pcm":1,"csv":17,"npz":0,"npz_arrays":0,"png":1},"scientific_or_array_differences":0,"normalization":"Only declared implementation, backend, performance, and exact per-run path/identity metadata; every scientific float and logical ledger row remains exact."},+ "hosted_ci": {"series":"GitHub Actions; distinct from local timing series","current_commit":"52db126a324316eb40e1c00a0df2e473483e1ba2","baseline_commit":"27da08a878ac2ec90cd7e2c07f43765ceeea609b","runs":{"performance":"https://github.com/1337isnot1337/DOPPLERGEIST/actions/runs/41695355631","static":"https://github.com/1337isnot1337/DOPPLERGEIST/actions/runs/41695366731","conclusion":"success"},"environment":{"runner_image":"ubuntu-26.04","runner_image_release":"ubuntu26/20261101.186","python":"3.12.16","setuptools":"84.2.1","numpy":"2.5.4","scipy":"1.18.1","pandas":"3.1.0","pytest":"9.2.0","pyarrow":"26.0.1","pyproj":"3.8.0"},"tests":{"recorded_regressions":{"passed":99,"skipped":0,"warnings":1,"seconds":20.13,"warning":"Pandas4Warning: DataFrame.drop inplace keyword is deprecated (existing spatial-sieve test)."},"explicit_python_fallback":{"passed":4,"skipped":0,"seconds":10.15}},"static_python_versions":["3.11","3.14"],"method":{"repeats":3,"sample_order":["baseline","current","current","baseline","baseline","current"],"fresh_interpreter_each_run":true,"numerical_threads":1,"cpu_pinning":"First allowed CPU via taskset","track_cache_bytes":33554432,"profile_excluded":true,"exact_baseline_current_results_each_workload":true,"rss_scope":"Worker lifetime through scoring, including imports and input loading"},"scope":"Point timings include CPA/scoring/retention, excluding input lookup. Dense includes initial full-day index traversal and distance sieve plus scoring for one association-anchor partition. All exclude downloads, audio discovery, terrain sampling, and refinement; source-informed receiver/clock hypotheses are computational checks, not accuracy claims.","sample_columns":["cpu_seconds","wall_seconds","peak_rss_mib"],"dense_stage_columns":["query_cpu_seconds","query_wall_seconds","scoring_cpu_seconds","scoring_wall_seconds"],"common_counts":{"independent_groups":16,"retained":100},"workloads":[{"name":"point10","samples":[[0.5718250660000002,0.5735087630000066,322.50390625],[0.5470299359999999,0.549145325999973,315.0625],[0.5544922889999999,0.5562249970000153,314.734375],[0.5800805789999999,0.5821523699999602,322.5859375],[0.5793800569999998,0.5812386129999823,322.90625],[0.552935672,0.5547443080000107,314.4765625]],"speedup":{"wall_seconds":1.0477594895844717,"cpu_seconds":1.0478254276927892},"scored_candidates":1055},{"name":"point120","samples":[[3.846102819,3.873307211999986,383.7421875],[3.432530607,3.455037267000023,373.37890625],[3.42980306,3.451170310000009,373.30859375],[3.75886472,3.781537971999967,384.25],[3.75458594,3.777358692000007,383.82421875],[3.458243661,3.4949390950000065,372.5625]],"speedup":{"wall_seconds":1.0944999083276001,"cpu_seconds":1.095070998736181},"scored_candidates":3905},{"name":"dense-query","samples":[[23.694062384,23.82695445799999,560.46484375],[20.603567056,20.731061283999964,540.59765625],[19.969010846000003,20.104140828000027,540.08203125],[23.917083767999998,24.048212546000002,561.359375],[23.471414176,23.604619951000018,558.90625],[19.714089618,19.843757219999986,540.5546875]],"speedup":{"wall_seconds":1.185176460006439,"cpu_seconds":1.186541615242107},"scored_candidates":16101,"stage_samples":[[6.358758309,6.362118778999957,17.335256554,17.464779815000043],[4.52018935,4.523018384000011,16.083329825,16.207986765000044],[4.161807025,4.164082035999968,15.807156329999998,15.940003278000006],[6.446000365,6.449551927000016,17.471036372,17.598604744],[6.323913212,6.327227288000017,17.147452922,17.277336148000018],[4.123240998,4.125750479999965,15.590805176000002,15.71795475099998]],"inventory":{"queried_tracks":4694,"queried_samples":713100,"selected_tracks":1354,"selected_samples":357324,"cpa_rows":944,"unsupported_cpa_tracks":62},"anchor_window_s":[1788864888.7151732,1788865236.7214916]}],"ci_limit":"Regional and bounded-HTTP jobs skipped by unchanged push conditions; no HTTP result claimed."},+ "limitations": ["Only one receiver and declared dense association-anchor partition are scored; this is not a whole-day, nationwide, or all-receiver completion claim.","Recorded regional coverage is incomplete and excludes known jets. Source-informed receiver/clock controls are frozen workload hypotheses, not withheld-location evaluation.","All selected inventories, scored rows, diagnostics, support, rankings and logical retention rows must match exactly, without numerical tolerance.","Three-pair samples on a shared host show timing variation. Preserve every sample, including the slower incremental dense pair and first slower current HTTP run.","Application-cold query disables the track cache; operating-system file caches remain uncontrolled. Local and hosted series have distinct runtimes and must not be pooled.","A verified full HTTP workflow observes all operational stages; the scientific result remains inconclusive/search_incomplete."]+}diff --git a/docs/PERFORMANCE.md b/docs/PERFORMANCE.mdindex d3324ae..9d99f2d 100644--- a/docs/PERFORMANCE.md+++ b/docs/PERFORMANCE.md@@ -1,5 +1,174 @@# Measured pipeline performance+## Indexed flight queries and repeated evidence checks++[PR258](https://github.com/1337isnot1337/DOPPLERGEIST/pull/258) reduces repeated work in indexed flight loading and ridge-evidence validation.+The measured production changes are pinned at [`a82f4b0`](https://github.com/1337isnot1337/DOPPLERGEIST/commit/a82f4b02a5a4097693954ddec8e2c2386189e63a).+The incremental baseline, [`27da08a`](https://github.com/1337isnot1337/DOPPLERGEIST/commit/27da08a878ac2ec90cd7e2c07f43765ceeea609b), already includes PR237's native fitting, acoustic computation, single-pass queries, and CPA improvements.+Those existing improvements are not attributed to PR258.+The [measurement record](../benchmarks/results/query-scoring-20261103.json) preserves samples, source pins, runtime, and comparison scopes.++### Compared with the implementation at task start++A separate three-pair comparison measures the complete dense query/sieve/scoring unit against starting main [`18e29d0`](https://github.com/1337isnot1337/DOPPLERGEIST/commit/18e29d0e91b7b450aeca29915ceb72ee987349be).+Median CPU time falls from **63.798 to 32.507 seconds: 1.963× faster, with 49.05% less CPU time**.+Wall medians are **63.893 → 32.566 seconds**, or **1.962×**.+All six executions preserve the same complete scientific output and logical retention rows.++This measures the final version's combined improvement, including PR237's native kernels and single-pass queries, which merged while PR258 was being developed.+The incremental PR258 measurements below separate this patch's contribution from those earlier changes.+The starting query makes two traversals and yields 6,695 track objects / 1,047,000 samples across them; the final query makes one traversal and yields 4,694 / 713,100.+These operational counts include repeated yields. Both versions query the same unique inventory and select the same flights.+The combined speedup is measured directly; it is not a product of component measurements or a full-upload timing claim.++### Incremental measurements++Each row uses three alternating fresh baseline/current pairs on the same host.+Speedup is the baseline median divided by the current median.++| Measured scope | Baseline CPU median | Current CPU median | Speedup | Time reduction |+| --- | ---: | ---: | ---: | ---: |+| Broad point scoring, loaded tracks, ±120 s clock | 6.218 s | 5.682 s | 1.094× | 8.63% |+| Initial flight query, distance sieve, and dense scoring | 37.419 s | 36.161 s | 1.035× | 3.36% |+| Query and distance sieve within that dense run | 9.524 s | 6.960 s | 1.368× | 26.92% |+| Separate cold query and distance sieve, track cache disabled | 10.459 s | 7.471 s | 1.400× | 28.57% |++Dense whole-path wall medians are **37.473 → 36.220 seconds**.+Its query-plus-scoring CPU samples, in baseline/current pairs, are **39.870/36.161**, **37.419/38.104**, and **35.826/31.773 seconds**.+One whole-path pair is slower, despite a faster query stage in every pair.+Scoring-stage medians in this series are 27.895 and 28.996 seconds; the shared host introduces material timing variation.+Keep the modest whole-path result when evaluating this patch; do not replace it with a product of separate component ratios.+Worker-lifetime median peak RSS is **516.02 → 498.16 MiB**, including imports and input preparation.++The dense workload queries the full indexed day: **4,694 trajectories and 713,100 samples**.+The production overload path selects the same ordered **1,354 trajectories and 357,324 samples** in both versions.+Scoring evaluates **16,101 associations**, uses **16 independent ridge groups**, and retains the same **100 candidates**.+All six executions produce exactly equal queried and selected inventories, candidates, diagnostics, support accounting, ranking, and logical retention rows.+Both arms perform **228,240 successful native ridge fits** and **5,731 successful native acoustic solves** per dense execution.+The preloaded broad-point workload likewise preserves all **3,905 scored associations**, including diagnostics and retention.++### Independent CI replication++The [recorded-input CI run](https://github.com/1337isnot1337/DOPPLERGEIST/actions/runs/41695355631) at `52db126` repeats the same comparisons against `27da08a` on a separate runner.+This commit adds a workflow build-dependency fix; its production code is identical to `a82f4b0`.+All three paired executions of each workload preserve exact outputs.++| CI workload | Baseline CPU median | Current CPU median | Speedup |+| --- | ---: | ---: | ---: |+| Point scoring, ±10 s clock | 0.579 s | 0.553 s | 1.048× |+| Point scoring, ±120 s clock | 3.759 s | 3.433 s | 1.095× |+| Initial query, sieve, and dense scoring | 23.694 s | 19.969 s | 1.187× |++CI dense-query wall medians are **23.827 → 20.104 seconds**, or **1.185×**.+The query/sieve component improves **1.528×**, and the CPA/scoring/retention component improves **1.097×**.+The whole-path improvement is measured directly, not derived by multiplying those components.+This runner uses Ubuntu 26.04, Python 3.12.16, NumPy 2.5.4, SciPy 1.18.1, and pandas 3.1.0.+Its absolute times should not be compared with the local runner's times; retain both matched comparisons.++The same run passes **99 recorded-input regressions and four explicit Python-fallback tests, with zero skips**.+The [installation checks](https://github.com/1337isnot1337/DOPPLERGEIST/actions/runs/41695366731) pass on Python 3.11 and 3.14.+Local decoder verification additionally compares all 4,694 actual indexed payloads against the pandas path, including exact arrays, spline coefficients, derivatives, and labels.+The initial CI attempt failed before benchmarks because the baseline extension build lacked runtime `setuptools`; the workflow now installs its declared build dependency explicitly.+Regional and bounded-HTTP CI jobs are not enabled by this branch's push conditions, so these CI results do not establish upload performance.++### Complete HTTP upload check++Three alternating complete MP3-upload pairs compare against [`494b874`](https://github.com/1337isnot1337/DOPPLERGEIST/commit/494b874a42d8599e5950a05ef60f06a96ef4d1b9).+This baseline has the same numerical implementation as `27da08a`, plus the intervening job-startup/cancellation change, which both HTTP arms include.+All six executions complete upload, decoding, discovery, search, refinement, and decision verification.+Median elapsed time in the HTTP verification receipt is **51.211 → 49.500 seconds**, or **1.035× faster / 3.34% less time**.+Baseline samples are **51.349, 51.211, 51.094 seconds**; current samples are **54.366, 48.963, 49.500 seconds**.+The first pair is slower and remains in the measurement record. This is a modest incremental upload gain, not the roughly twofold dense-workload gain above.+The reported search timer has medians **22.789 → 21.621 seconds**; its scope is contained within the full workflow.++Every pair has zero scientific or array differences after the declared run-metadata normalization, without a numerical tolerance.+The comparison includes 20 scientific JSON artifacts, three root JSON files, the logical SQLite ledger, decoded PCM, 17 CSV files, and PNG pixels.+Each ledger preserves 29,738 bounds, 852 records, 12 stages, and one run.+Each upload retains 17 detected event records and 23 candidates; its decision remains `inconclusive / search_incomplete`.+Both arms use the same original MP3, request, operator configuration, index, terrain, numerical thread count, and CPU affinity.+The small source-informed regional request is an integration/performance control; it does not establish independent location accuracy.++### Where the time is removed++**Construct the representation needed by the next stage.** Indexed segments already contain canonical numeric JSON records.+Previously, each cache miss built a pandas table and immediately converted its columns into NumPy arrays for track normalization.+The new private column adapter supplies those arrays directly.+The existing `_frame_track` and `_segment_velocity` routines still perform normalization, velocity inference, and spline construction.+Noncanonical or mixed representations retain pandas.+The index schema, compressed payloads, integrity checks, cache keys, mutation isolation, and sample-budget checks are unchanged.+No index rebuild is required.++**Validate canonical evidence without repeatedly rebuilding Python objects.** Association scoring often checks complete, valid fit evidence with the same structure.+The optional C helper recognizes that narrow case and avoids the repeated Python field loop and per-event cache-key construction.+It only returns success for valid evidence in exact built-in containers and numeric types.+Mutations are rechecked on every call.+Invalid, incomplete, or custom inputs retain the original Python validation, including failure precedence and custom-object behavior.+Aggregate scores, Python summation, NumPy boundary handling, fit iterations, thresholds, and whole-batch ceiling reuse are unchanged.++These changes avoid work without reducing observed flights, event samples, search resolution, or candidate budgets.+A direct-distance alternative to the spatial tree was measured and rejected: its roughly 0.06-second geometry saving did not justify changing that path.++### Measurement method++The comparison harness accepts `--include-track-query` for preparation and comparison.+Each worker opens a fresh `FlightIndex` and starts timing before the initial traversal and conservative distance sieve.+The production 32 MiB track-cache budget remains enabled for the combined run; no track lookup occurs before its timer starts.+The default still measures complete scoring after loading selected tracks, so older commands keep their scope.++The dense run includes CPA preparation, association generation, physical scoring, and retention.+It excludes imports, index metadata, event preparation, downloads, terrain sampling, audio discovery, and refinement.+It queries all indexed times without a recording-clock prior, but scores one declared association-anchor partition, `[1788864888.7151732, 1788865236.7214916)`.+This partition controls association ownership; physical fit intervals are unchanged.+This is a measured dense search unit, not a measurement of every partition or receiver location.++Baseline/current order alternates as B/C, C/B, B/C.+Each arm runs in a new interpreter with the same inputs, one numerical thread, and CPU affinity fixed to CPU 2.+The separate cache-disabled query experiment uses CPU 0 and fresh index objects.+Operating-system file caches are not purged; “cold” describes the application track cache, not cold storage.+The host is shared, so CPU affinity does not imply exclusive machine access.+Separate profiling and native-validator hit-rate diagnostics are excluded from timing medians.+The comparison harness retains its lightweight operation counters and candidate capture in both timed arms.++The local runtime is Python 3.12.14, NumPy 2.5.4, SciPy 1.17.0, pandas 2.2.3, pyproj 3.8.0, pyarrow 26.0.1, and SQLite 3.53.1 on Linux x86-64.+Native extensions use GCC with the existing strict floating-point build options.+Archived source-informed receiver and clock controls freeze computational workloads; they do not establish independent localization accuracy or nationwide throughput.++### Reproduce the query-plus-scoring comparison++Run these Linux commands from the optimized checkout, with GCC available.+Choose unused output paths because the harness refuses to overwrite prior results.++```bash+CC=gcc python -m pip install 'setuptools>=68' --editable '.[test]'+export PYTHONPATH=src+export OPENBLAS_NUM_THREADS=1 OMP_NUM_THREADS=1 MKL_NUM_THREADS=1 NUMEXPR_NUM_THREADS=1+python -c 'from dopplergeist import matching, native_acoustic; assert callable(matching._native_validate_ridge_events); assert native_acoustic._native is not None'+python scripts/restore_artifacts.py --bundle data-adsb-derived --bundle data-terrain+python scripts/prepare_reference_upload.py --data-root data --output benchmark-inputs+git worktree add --detach ../dopplergeist-baseline 27da08a878ac2ec90cd7e2c07f43765ceeea609b+(cd ../dopplergeist-baseline && CC=gcc python setup.py build_ext --inplace)++python scripts/benchmark_prepared_measurements.py prepare \+ --discovery evidence/audio/w1-sensitivity-20261102/reference/discovery.json \+ --index benchmark-inputs/reference-region.sqlite \+ --reference-report evidence/results/reference-local/report.json \+ --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++benchmark_cpu=$(python -c 'import os; print(min(os.sched_getaffinity(0)))')+taskset -c "$benchmark_cpu" python scripts/benchmark_prepared_measurements.py compare \+ --fixture benchmark-inputs/dense-query.json --include-track-query \+ --baseline-source ../dopplergeist-baseline/src --current-source src \+ --repeats 3 --timeout-s 600 --output results/performance-dense-query \+ --require-current-native --require-current-native-acoustic+```++Check native availability after installation; source updates require rebuilding the extension and restarting a running service.+The runtime remains usable through its Python fallback, but that fallback does not receive the native evidence-validation saving.+The comparison requires successful native operations in the measured current arm and refuses to report a speedup if any exact-output comparison fails.+The `Real performance comparison` workflow runs recorded regressions and these paired measurements, and preserves summaries as artifacts.+## Measured native computation and bounded reuseThe implementation at [`41d0646`](https://github.com/1337isnot1337/DOPPLERGEIST/commit/41d06469935f776988e1a4f04ab386d0355b433b) completed the regional HTTP replay in a median **37.188 seconds**, compared with **62.031 seconds** for the already optimized main baseline [`fec518e5`](https://github.com/1337isnot1337/DOPPLERGEIST/commit/fec518e51f14afe8d36203e6c5e1be1277dea14e).