We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50a366c commit 462e975Copy full SHA for 462e975
tests/benchmark/test_memory_benchmark.py
@@ -122,7 +122,8 @@ def test_manifest_cache_memory_growth(memory_catalog: InMemoryCatalog) -> None:
122
# We expect about 5-10 KB per iteration for typical workloads
123
# The key improvement is that growth is O(N) not O(N²)
124
# Threshold of 15KB/iteration based on observed behavior - O(N²) would show ~50KB+/iteration
125
- assert growth_per_iteration < 15000, (
+ max_memory_growth_per_iteration_bytes = 15000
126
+ assert growth_per_iteration < max_memory_growth_per_iteration_bytes, (
127
f"Memory growth per iteration ({growth_per_iteration:.0f} bytes) is too high. "
128
"This may indicate the O(N²) cache inefficiency is present."
129
)
0 commit comments