python-grimp
grimp
BlogDocsChangelog

Demo: Build graph rust (Parallel)

#263Closed
Comparing
Peter554:build-graph-rust
(
efa9e4b
) with
main
(
558e62c
)
CodSpeed Performance Gauge
×2.4
Improvements
5
Untouched
21
Skipped
23

Benchmarks

Skipped (23)

test_deep_layers_large_graph_violated
tests/benchmarking/test_benchmarking.py::TestFindIllegalDependenciesForLayers
Skipped
12.2 ms*
test_deep_layers_large_graph_kept
tests/benchmarking/test_benchmarking.py::TestFindIllegalDependenciesForLayers
Skipped
20.3 ms*
test_top_level_large_graph_violated
tests/benchmarking/test_benchmarking.py::TestFindIllegalDependenciesForLayers
Skipped
233.9 ms*
test_top_level_large_graph_kept
tests/benchmarking/test_benchmarking.py::TestFindIllegalDependenciesForLayers
Skipped
48.7 ms*
test_copy_graph
tests/benchmarking/test_benchmarking.py
Skipped
54.9 ms*
test_chain_found
tests/benchmarking/test_benchmarking.py::TestFindShortestChain
Skipped
61.4 µs*
test_chains_found
tests/benchmarking/test_benchmarking.py::TestFindShortestChains
Skipped
178 µs*
test_find_matching_direct_imports
tests/benchmarking/test_benchmarking.py
Skipped
34.9 ms*
test_find_matching_modules
tests/benchmarking/test_benchmarking.py
Skipped
9.1 ms*
test_find_upstream_modules
tests/benchmarking/test_benchmarking.py
Skipped
3.4 ms*
test_get_import_details
tests/benchmarking/test_benchmarking.py
Skipped
233.7 µs*
test_modules_property_first_access
tests/benchmarking/test_benchmarking.py
Skipped
33.5 ms*
test_build_django_from_cache_a_few_misses[15]
tests/benchmarking/test_benchmarking.py
Skipped
129.2 ms*
test_chains_found_sparse_imports
tests/benchmarking/test_benchmarking.py::TestFindShortestChains
Skipped
366.2 µs*
test_no_chain
tests/benchmarking/test_benchmarking.py::TestFindShortestChain
Skipped
1.2 ms*
test_no_chains
tests/benchmarking/test_benchmarking.py::TestFindShortestChains
Skipped
1.2 ms*
test_find_descendants
tests/benchmarking/test_benchmarking.py
Skipped
35.1 ms*
test_build_django_from_cache_a_few_misses[350]
tests/benchmarking/test_benchmarking.py
Skipped
227 ms*
test_modules_property_many_accesses
tests/benchmarking/test_benchmarking.py
Skipped
33.9 ms*
test_find_downstream_modules
tests/benchmarking/test_benchmarking.py
Skipped
173.5 µs*
test_build_django_from_cache_a_few_misses[2]
tests/benchmarking/test_benchmarking.py
Skipped
125.4 ms*
test_build_django_uncached
tests/benchmarking/test_benchmarking.py
Skipped
548 ms*
test_build_django_from_cache_no_misses
tests/benchmarking/test_benchmarking.py
Skipped
124.9 ms*

Improved

test_build_django_uncached
tests/benchmarking/test_benchmarking.py
CodSpeed Performance Gauge
×2.4
157.4 ms64.7 ms
test_build_django_from_cache_a_few_misses[2]
tests/benchmarking/test_benchmarking.py
CodSpeed Performance Gauge
×2.1
151.2 ms71.5 ms
test_build_django_from_cache_a_few_misses[15]
tests/benchmarking/test_benchmarking.py
CodSpeed Performance Gauge
×2.1
153.7 ms73.9 ms
test_build_django_from_cache_no_misses
tests/benchmarking/test_benchmarking.py
CodSpeed Performance Gauge
×2.1
142.8 ms68.8 ms
test_build_django_from_cache_a_few_misses[350]
tests/benchmarking/test_benchmarking.py
CodSpeed Performance Gauge
+94%
282 ms145.6 ms

Passed

test_chains_found_sparse_imports
tests/benchmarking/test_benchmarking.py::TestFindShortestChains
CodSpeed Performance Gauge
+3%
225.4 µs218.7 µs
test_deep_layers_large_graph_violated
tests/benchmarking/test_benchmarking.py::TestFindIllegalDependenciesForLayers
CodSpeed Performance Gauge
+3%
1.6 ms1.6 ms
test_find_upstream_modules
tests/benchmarking/test_benchmarking.py
CodSpeed Performance Gauge
+2%
2.7 ms2.6 ms
test_find_downstream_modules
tests/benchmarking/test_benchmarking.py
CodSpeed Performance Gauge
+2%
79.5 µs77.8 µs
test_copy_graph
tests/benchmarking/test_benchmarking.py
CodSpeed Performance Gauge
+2%
81.1 ms79.8 ms
test_modules_property_many_accesses
tests/benchmarking/test_benchmarking.py
CodSpeed Performance Gauge
+1%
30.4 ms30 ms
test_deep_layers_large_graph_kept
tests/benchmarking/test_benchmarking.py::TestFindIllegalDependenciesForLayers
CodSpeed Performance Gauge
+1%
1.6 ms1.6 ms
test_top_level_large_graph_kept
tests/benchmarking/test_benchmarking.py::TestFindIllegalDependenciesForLayers
CodSpeed Performance Gauge
+1%
17.7 ms17.6 ms
test_get_import_details
tests/benchmarking/test_benchmarking.py
CodSpeed Performance Gauge
+1%
171.3 µs170.3 µs
test_modules_property_first_access
tests/benchmarking/test_benchmarking.py
CodSpeed Performance Gauge
0%
29.9 ms29.8 ms
test_nominate_cycle_breakers_large_graph_root
tests/benchmarking/test_benchmarking.py
CodSpeed Performance Gauge
0%
412.1 ms410.7 ms
test_find_matching_direct_imports
tests/benchmarking/test_benchmarking.py
CodSpeed Performance Gauge
0%
27.5 ms27.4 ms
test_find_matching_modules
tests/benchmarking/test_benchmarking.py
CodSpeed Performance Gauge
0%
6.1 ms6.1 ms
test_no_chains
tests/benchmarking/test_benchmarking.py::TestFindShortestChains
CodSpeed Performance Gauge
0%
684.3 µs682.9 µs
test_nominate_cycle_breakers_django
tests/benchmarking/test_benchmarking.py
CodSpeed Performance Gauge
0%
7.7 ms7.7 ms
test_top_level_large_graph_violated
tests/benchmarking/test_benchmarking.py::TestFindIllegalDependenciesForLayers
CodSpeed Performance Gauge
0%
172 ms172.2 ms
test_no_chain
tests/benchmarking/test_benchmarking.py::TestFindShortestChain
CodSpeed Performance Gauge
0%
680.9 µs683.5 µs
test_nominate_cycle_breakers_large_graph_subpackage
tests/benchmarking/test_benchmarking.py
CodSpeed Performance Gauge
-1%
181.1 ms182.8 ms
test_chains_found
tests/benchmarking/test_benchmarking.py::TestFindShortestChains
CodSpeed Performance Gauge
-1%
87.2 µs88.3 µs
test_chain_found
tests/benchmarking/test_benchmarking.py::TestFindShortestChain
CodSpeed Performance Gauge
-2%
16.7 µs17 µs
test_find_descendants
tests/benchmarking/test_benchmarking.py
CodSpeed Performance Gauge
-3%
37.8 ms39.1 ms

Commits

Click on a commit to change the comparison range
Base
main
558e62c
×2.5
TEMP Update benchmarks to use build_graph_rust
a539f95
2 months ago
by Peter554
-3.94%
Make build_graph a simple function More pythonic than builder pattern.
16b59b2
2 months ago
by Peter554
+0.89%
Reduce channel capacities 1000 is still enough, and it allows deadlocks to show up in the test suite if we've gotten the logic wrong.
d3091f2
2 months ago
by Peter554
+4.14%
Create ImportGraph.from_rustgraph
8034e99
2 months ago
by Peter554
+0.26%
More tweaks Because I can't resist
70223f2
2 months ago
by Peter554
+1.98%
Add distill_external_module logic to handle namespace packages
dd95e72
2 months ago
by Peter554
-9.15%
TEMP Run all functional tests for build_graph_rust
0accb84
2 months ago
by Peter554
+5.43%
Move python file reading utils to own file
76a732c
2 months ago
by Peter554
-3.72%
Demo rust unit test with temp file system
efa9e4b
2 months ago
by Peter554
© 2025 CodSpeed Technology
Home Terms Privacy Docs