Avatar for the seddonym user
seddonym
grimp
Instrumentation
Wall Time
BlogDocsChangelog

Optimize find_shortest_chains

#238Merged
Comparing
Peter554:improve-find-shortest-chains
(
d57385e
) with
main
(
3176007
)
CodSpeed Performance Gauge
-53%
Improvements
1
Regressions
5
Untouched
17
New
0
Dropped
0
Ignored
0

Benchmarks

Improved

test_chains_found_sparse_imports
tests/benchmarking/test_benchmarking.py::TestFindShortestChains::test_chains_found_sparse_imports
CodSpeed Performance Gauge
×380
144,076.2 µs
375.1 µs

Passed

test_find_matching_modules
tests/benchmarking/test_benchmarking.py::test_find_matching_modules
CodSpeed Performance Gauge
0%
9 ms
9 ms
test_modules_property_first_access
tests/benchmarking/test_benchmarking.py::test_modules_property_first_access
CodSpeed Performance Gauge
0%
33.6 ms
33.5 ms
test_find_downstream_modules
tests/benchmarking/test_benchmarking.py::test_find_downstream_modules
CodSpeed Performance Gauge
0%
171.7 µs
171.4 µs
test_modules_property_many_accesses
tests/benchmarking/test_benchmarking.py::test_modules_property_many_accesses
CodSpeed Performance Gauge
0%
34.1 ms
34 ms
test_build_django_from_cache_a_few_misses[350]
tests/benchmarking/test_benchmarking.py::test_build_django_from_cache_a_few_misses[350]
CodSpeed Performance Gauge
0%
295.8 ms
295.4 ms
test_find_matching_direct_imports
tests/benchmarking/test_benchmarking.py::test_find_matching_direct_imports
CodSpeed Performance Gauge
0%
35.5 ms
35.5 ms
test_copy_graph
tests/benchmarking/test_benchmarking.py::test_copy_graph
CodSpeed Performance Gauge
0%
55.3 ms
55.3 ms
test_build_django_uncached
tests/benchmarking/test_benchmarking.py::test_build_django_uncached
CodSpeed Performance Gauge
0%
143.1 ms
143.1 ms
test_find_upstream_modules
tests/benchmarking/test_benchmarking.py::test_find_upstream_modules
CodSpeed Performance Gauge
0%
3.4 ms
3.4 ms
test_build_django_from_cache_a_few_misses[15]
tests/benchmarking/test_benchmarking.py::test_build_django_from_cache_a_few_misses[15]
CodSpeed Performance Gauge
0%
160 ms
160.2 ms
test_get_import_details
tests/benchmarking/test_benchmarking.py::test_get_import_details
CodSpeed Performance Gauge
0%
257.3 µs
257.6 µs
test_build_django_from_cache_no_misses
tests/benchmarking/test_benchmarking.py::test_build_django_from_cache_no_misses
CodSpeed Performance Gauge
0%
127.2 ms
127.5 ms
test_find_descendants
tests/benchmarking/test_benchmarking.py::test_find_descendants
CodSpeed Performance Gauge
0%
35.2 ms
35.4 ms
test_build_django_from_cache_a_few_misses[2]
tests/benchmarking/test_benchmarking.py::test_build_django_from_cache_a_few_misses[2]
CodSpeed Performance Gauge
0%
133.8 ms
134.4 ms
test_chain_found
tests/benchmarking/test_benchmarking.py::TestFindShortestChain::test_chain_found
CodSpeed Performance Gauge
-1%
63 µs
63.7 µs
test_top_level_large_graph_violated
tests/benchmarking/test_benchmarking.py::TestFindIllegalDependenciesForLayers::test_top_level_large_graph_violated
CodSpeed Performance Gauge
-2%
230 ms
233.6 ms
test_top_level_large_graph_kept
tests/benchmarking/test_benchmarking.py::TestFindIllegalDependenciesForLayers::test_top_level_large_graph_kept
CodSpeed Performance Gauge
-3%
46 ms
47.5 ms
test_no_chainRegression
tests/benchmarking/test_benchmarking.py::TestFindShortestChain::test_no_chain
CodSpeed Performance Gauge
-11%
1.1 ms
1.2 ms
test_no_chainsRegression
tests/benchmarking/test_benchmarking.py::TestFindShortestChains::test_no_chains
CodSpeed Performance Gauge
-11%
1.1 ms
1.2 ms
test_deep_layers_large_graph_violatedRegression
tests/benchmarking/test_benchmarking.py::TestFindIllegalDependenciesForLayers::test_deep_layers_large_graph_violated
CodSpeed Performance Gauge
-12%
10.5 ms
11.8 ms
test_deep_layers_large_graph_keptRegression
tests/benchmarking/test_benchmarking.py::TestFindIllegalDependenciesForLayers::test_deep_layers_large_graph_kept
CodSpeed Performance Gauge
-15%
16.8 ms
19.8 ms
test_chains_foundRegression
tests/benchmarking/test_benchmarking.py::TestFindShortestChains::test_chains_found
CodSpeed Performance Gauge
-53%
82.4 µs
176.7 µs

Commits

Click on a commit to change the comparison range
Base
main
3176007
-53.36%
Update changelog.
d57385e
24 days ago
by Peter554
© 2025 CodSpeed Technology
Home Terms Privacy Docs