Skip to content

Commit 462e975

Browse files
committed
feedback
1 parent 50a366c commit 462e975

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/benchmark/test_memory_benchmark.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ def test_manifest_cache_memory_growth(memory_catalog: InMemoryCatalog) -> None:
122122
# We expect about 5-10 KB per iteration for typical workloads
123123
# The key improvement is that growth is O(N) not O(N²)
124124
# Threshold of 15KB/iteration based on observed behavior - O(N²) would show ~50KB+/iteration
125-
assert growth_per_iteration < 15000, (
125+
max_memory_growth_per_iteration_bytes = 15000
126+
assert growth_per_iteration < max_memory_growth_per_iteration_bytes, (
126127
f"Memory growth per iteration ({growth_per_iteration:.0f} bytes) is too high. "
127128
"This may indicate the O(N²) cache inefficiency is present."
128129
)

0 commit comments

Comments
 (0)