Build traces on demand and share routing fixture setup

This commit is contained in:
Jan Petykiewicz 2026-11-26 23:00:23 -08:00
commit 6608e18ef5
2 changed files with 237 additions and 429 deletions

View file

@ -8,13 +8,13 @@ Use `scripts/diff_performance_baseline.py` to compare a fresh run against that s
| Scenario | Duration (s) | Total | Valid | Reached | Iter | Nets Routed | Nodes | Ray Casts | Moves Gen | Moves Added | Dyn Tree | Visibility Builds | Congestion Checks | Verify Calls |
| :-- | --: | --: | --: | --: | --: | --: | --: | --: | --: | --: | --: | --: | --: | --: |
| example_01_simple_route | 0.0043 | 1 | 1 | 1 | 1 | 1 | 2 | 10 | 11 | 7 | 0 | 0 | 0 | 4 |
| example_02_congestion_resolution | 0.2536 | 3 | 3 | 3 | 1 | 3 | 366 | 1164 | 1413 | 668 | 0 | 0 | 0 | 16 |
| example_03_locked_paths | 0.1450 | 2 | 2 | 2 | 2 | 2 | 191 | 657 | 904 | 307 | 0 | 0 | 0 | 10 |
| example_04_sbends_and_radii | 0.0217 | 2 | 2 | 2 | 1 | 2 | 15 | 70 | 123 | 65 | 0 | 0 | 0 | 8 |
| example_05_orientation_stress | 0.1859 | 3 | 3 | 3 | 2 | 5 | 297 | 1274 | 1680 | 689 | 0 | 0 | 146 | 17 |
| example_06_bend_collision_models | 0.1723 | 3 | 3 | 3 | 3 | 3 | 240 | 682 | 1026 | 629 | 0 | 0 | 0 | 12 |
| example_07_large_scale_routing | 0.1860 | 10 | 10 | 10 | 1 | 10 | 78 | 383 | 372 | 227 | 0 | 0 | 0 | 40 |
| example_08_custom_bend_geometry | 0.0152 | 2 | 2 | 2 | 2 | 2 | 18 | 56 | 78 | 56 | 0 | 0 | 0 | 8 |
| example_02_congestion_resolution | 0.2541 | 3 | 3 | 3 | 1 | 3 | 366 | 1164 | 1413 | 668 | 0 | 0 | 0 | 16 |
| example_03_locked_paths | 0.1476 | 2 | 2 | 2 | 2 | 2 | 191 | 657 | 904 | 307 | 0 | 0 | 0 | 10 |
| example_04_sbends_and_radii | 0.0222 | 2 | 2 | 2 | 1 | 2 | 15 | 70 | 123 | 65 | 0 | 0 | 0 | 8 |
| example_05_orientation_stress | 0.1878 | 3 | 3 | 3 | 2 | 5 | 284 | 1237 | 1617 | 673 | 0 | 0 | 151 | 17 |
| example_06_bend_collision_models | 0.1732 | 3 | 3 | 3 | 3 | 3 | 240 | 682 | 1026 | 629 | 0 | 0 | 0 | 12 |
| example_07_large_scale_routing | 0.1869 | 10 | 10 | 10 | 1 | 10 | 78 | 383 | 372 | 227 | 0 | 0 | 0 | 40 |
| example_08_custom_bend_geometry | 0.0154 | 2 | 2 | 2 | 2 | 2 | 18 | 56 | 78 | 56 | 0 | 0 | 0 | 8 |
| example_09_unroutable_best_effort | 0.0053 | 1 | 0 | 0 | 1 | 1 | 3 | 13 | 16 | 10 | 0 | 0 | 0 | 1 |
## Full Counter Set

View file

@ -3,7 +3,7 @@
"generator": "scripts/record_performance_baseline.py",
"scenarios": [
{
"duration_s": 0.004315305966883898,
"duration_s": 0.004303620080463588,
"metrics": {
"congestion_cache_hits": 0,
"congestion_cache_misses": 0,
@ -87,7 +87,7 @@
"refinement_windows_considered": 0,
"route_iterations": 1,
"score_component_calls": 11,
"score_component_total_ns": 19890,
"score_component_total_ns": 16362,
"static_net_tree_rebuilds": 1,
"static_raw_tree_rebuilds": 0,
"static_safe_cache_hits": 1,
@ -117,7 +117,7 @@
"valid_results": 1
},
{
"duration_s": 0.25360398599877954,
"duration_s": 0.2540899380110204,
"metrics": {
"congestion_cache_hits": 0,
"congestion_cache_misses": 0,
@ -201,7 +201,7 @@
"refinement_windows_considered": 4,
"route_iterations": 1,
"score_component_calls": 1088,
"score_component_total_ns": 1145758,
"score_component_total_ns": 1136950,
"static_net_tree_rebuilds": 3,
"static_raw_tree_rebuilds": 0,
"static_safe_cache_hits": 1,
@ -231,7 +231,7 @@
"valid_results": 3
},
{
"duration_s": 0.14500006497837603,
"duration_s": 0.14755904604680836,
"metrics": {
"congestion_cache_hits": 0,
"congestion_cache_misses": 0,
@ -310,19 +310,19 @@
"refinement_candidates_accepted": 1,
"refinement_candidates_built": 1,
"refinement_candidates_verified": 1,
"refinement_dynamic_bounds_checked": 2,
"refinement_dynamic_bounds_checked": 0,
"refinement_static_bounds_checked": 2,
"refinement_windows_considered": 2,
"route_iterations": 2,
"score_component_calls": 510,
"score_component_total_ns": 545847,
"score_component_total_ns": 550707,
"static_net_tree_rebuilds": 2,
"static_raw_tree_rebuilds": 1,
"static_safe_cache_hits": 1,
"static_tree_rebuilds": 1,
"timeout_events": 0,
"verify_dynamic_candidate_nets": 8,
"verify_dynamic_exact_pair_checks": 8,
"verify_dynamic_candidate_nets": 0,
"verify_dynamic_exact_pair_checks": 0,
"verify_path_report_calls": 10,
"verify_static_buffer_ops": 48,
"visibility_builds": 0,
@ -345,7 +345,7 @@
"valid_results": 2
},
{
"duration_s": 0.021677320008166134,
"duration_s": 0.022167235030792654,
"metrics": {
"congestion_cache_hits": 0,
"congestion_cache_misses": 0,
@ -429,7 +429,7 @@
"refinement_windows_considered": 0,
"route_iterations": 1,
"score_component_calls": 90,
"score_component_total_ns": 94482,
"score_component_total_ns": 98717,
"static_net_tree_rebuilds": 2,
"static_raw_tree_rebuilds": 0,
"static_safe_cache_hits": 1,
@ -459,28 +459,28 @@
"valid_results": 2
},
{
"duration_s": 0.18591969890985638,
"duration_s": 0.18780142499599606,
"metrics": {
"congestion_cache_hits": 3,
"congestion_cache_misses": 146,
"congestion_candidate_ids": 32,
"congestion_candidate_nets": 23,
"congestion_candidate_precheck_hits": 129,
"congestion_candidate_precheck_misses": 20,
"congestion_cache_hits": 1,
"congestion_cache_misses": 151,
"congestion_candidate_ids": 19,
"congestion_candidate_nets": 15,
"congestion_candidate_precheck_hits": 133,
"congestion_candidate_precheck_misses": 19,
"congestion_candidate_precheck_skips": 0,
"congestion_check_calls": 146,
"congestion_exact_pair_checks": 30,
"congestion_grid_net_cache_hits": 16,
"congestion_grid_net_cache_misses": 26,
"congestion_grid_span_cache_hits": 15,
"congestion_grid_span_cache_misses": 7,
"congestion_check_calls": 151,
"congestion_exact_pair_checks": 18,
"congestion_grid_net_cache_hits": 12,
"congestion_grid_net_cache_misses": 22,
"congestion_grid_span_cache_hits": 11,
"congestion_grid_span_cache_misses": 4,
"congestion_lazy_requeues": 0,
"congestion_lazy_resolutions": 0,
"congestion_net_envelope_cache_hits": 127,
"congestion_net_envelope_cache_misses": 39,
"congestion_presence_cache_hits": 196,
"congestion_presence_cache_misses": 27,
"congestion_presence_skips": 74,
"congestion_net_envelope_cache_hits": 133,
"congestion_net_envelope_cache_misses": 37,
"congestion_presence_cache_hits": 181,
"congestion_presence_cache_misses": 26,
"congestion_presence_skips": 55,
"danger_map_cache_hits": 0,
"danger_map_cache_misses": 0,
"danger_map_lookup_calls": 0,
@ -490,12 +490,12 @@
"dynamic_path_objects_added": 48,
"dynamic_path_objects_removed": 36,
"dynamic_tree_rebuilds": 0,
"guidance_bonus_applied": 562.5,
"guidance_bonus_applied_bend90": 500.0,
"guidance_bonus_applied": 100.0,
"guidance_bonus_applied_bend90": 87.5,
"guidance_bonus_applied_sbend": 0.0,
"guidance_bonus_applied_straight": 62.5,
"guidance_match_moves": 9,
"guidance_match_moves_bend90": 8,
"guidance_bonus_applied_straight": 12.5,
"guidance_match_moves": 8,
"guidance_match_moves_bend90": 7,
"guidance_match_moves_sbend": 0,
"guidance_match_moves_straight": 1,
"hard_collision_cache_hits": 0,
@ -505,29 +505,29 @@
"iteration_reverify_calls": 2,
"late_phase_capped_fallbacks": 0,
"late_phase_capped_nets": 0,
"move_cache_abs_hits": 374,
"move_cache_abs_misses": 1306,
"move_cache_rel_hits": 1204,
"move_cache_abs_hits": 249,
"move_cache_abs_misses": 1368,
"move_cache_rel_hits": 1266,
"move_cache_rel_misses": 102,
"moves_added": 689,
"moves_generated": 1680,
"moves_added": 673,
"moves_generated": 1617,
"nets_carried_forward": 1,
"nets_reached_target": 5,
"nets_routed": 5,
"nodes_expanded": 297,
"nodes_expanded": 284,
"pair_local_search_accepts": 0,
"pair_local_search_attempts": 0,
"pair_local_search_nodes_expanded": 0,
"pair_local_search_pairs_considered": 0,
"path_cost_calls": 2,
"pruned_closed_set": 159,
"pruned_cost": 533,
"pruned_closed_set": 140,
"pruned_cost": 505,
"pruned_hard_collision": 14,
"ray_cast_calls": 1274,
"ray_cast_calls_expand_forward": 292,
"ray_cast_calls": 1237,
"ray_cast_calls_expand_forward": 279,
"ray_cast_calls_expand_snap": 2,
"ray_cast_calls_other": 0,
"ray_cast_calls_straight_static": 971,
"ray_cast_calls_straight_static": 947,
"ray_cast_calls_visibility_build": 0,
"ray_cast_calls_visibility_query": 0,
"ray_cast_calls_visibility_tangent": 9,
@ -542,11 +542,11 @@
"refinement_static_bounds_checked": 0,
"refinement_windows_considered": 0,
"route_iterations": 2,
"score_component_calls": 1234,
"score_component_total_ns": 1189711,
"score_component_calls": 1190,
"score_component_total_ns": 1157917,
"static_net_tree_rebuilds": 3,
"static_raw_tree_rebuilds": 0,
"static_safe_cache_hits": 8,
"static_safe_cache_hits": 2,
"static_tree_rebuilds": 1,
"timeout_events": 0,
"verify_dynamic_candidate_nets": 8,
@ -563,7 +563,7 @@
"visibility_point_queries": 0,
"visibility_tangent_candidate_corner_checks": 70,
"visibility_tangent_candidate_ray_tests": 9,
"visibility_tangent_candidate_scans": 292,
"visibility_tangent_candidate_scans": 279,
"warm_start_paths_built": 2,
"warm_start_paths_used": 2
},
@ -573,7 +573,7 @@
"valid_results": 3
},
{
"duration_s": 0.1722618379862979,
"duration_s": 0.17324819299392402,
"metrics": {
"congestion_cache_hits": 0,
"congestion_cache_misses": 0,
@ -599,7 +599,7 @@
"danger_map_cache_misses": 731,
"danger_map_lookup_calls": 1914,
"danger_map_query_calls": 731,
"danger_map_total_ns": 18541396,
"danger_map_total_ns": 18539700,
"dynamic_grid_rebuilds": 0,
"dynamic_path_objects_added": 54,
"dynamic_path_objects_removed": 36,
@ -657,7 +657,7 @@
"refinement_windows_considered": 0,
"route_iterations": 3,
"score_component_calls": 842,
"score_component_total_ns": 20820878,
"score_component_total_ns": 20771160,
"static_net_tree_rebuilds": 3,
"static_raw_tree_rebuilds": 3,
"static_safe_cache_hits": 141,
@ -687,7 +687,7 @@
"valid_results": 3
},
{
"duration_s": 0.18596431298647076,
"duration_s": 0.18685018795076758,
"metrics": {
"congestion_cache_hits": 0,
"congestion_cache_misses": 0,
@ -713,7 +713,7 @@
"danger_map_cache_misses": 448,
"danger_map_lookup_calls": 681,
"danger_map_query_calls": 448,
"danger_map_total_ns": 10931551,
"danger_map_total_ns": 10856837,
"dynamic_grid_rebuilds": 0,
"dynamic_path_objects_added": 132,
"dynamic_path_objects_removed": 88,
@ -771,7 +771,7 @@
"refinement_windows_considered": 0,
"route_iterations": 1,
"score_component_calls": 291,
"score_component_total_ns": 11785678,
"score_component_total_ns": 11698395,
"static_net_tree_rebuilds": 10,
"static_raw_tree_rebuilds": 1,
"static_safe_cache_hits": 6,
@ -801,7 +801,7 @@
"valid_results": 10
},
{
"duration_s": 0.015218257089145482,
"duration_s": 0.0154108009301126,
"metrics": {
"congestion_cache_hits": 0,
"congestion_cache_misses": 0,
@ -885,7 +885,7 @@
"refinement_windows_considered": 0,
"route_iterations": 2,
"score_component_calls": 72,
"score_component_total_ns": 84457,
"score_component_total_ns": 82036,
"static_net_tree_rebuilds": 2,
"static_raw_tree_rebuilds": 0,
"static_safe_cache_hits": 2,
@ -915,7 +915,7 @@
"valid_results": 2
},
{
"duration_s": 0.005253698094747961,
"duration_s": 0.005300503107719123,
"metrics": {
"congestion_cache_hits": 0,
"congestion_cache_misses": 0,
@ -941,7 +941,7 @@
"danger_map_cache_misses": 20,
"danger_map_lookup_calls": 30,
"danger_map_query_calls": 20,
"danger_map_total_ns": 504814,
"danger_map_total_ns": 510754,
"dynamic_grid_rebuilds": 0,
"dynamic_path_objects_added": 2,
"dynamic_path_objects_removed": 1,
@ -999,7 +999,7 @@
"refinement_windows_considered": 0,
"route_iterations": 1,
"score_component_calls": 14,
"score_component_total_ns": 543596,
"score_component_total_ns": 551521,
"static_net_tree_rebuilds": 1,
"static_raw_tree_rebuilds": 1,
"static_safe_cache_hits": 0,