Skip to content

Commit c2fbb9c

Browse files
committed
fix benchmark to use cache
1 parent 3c32b5d commit c2fbb9c

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

tests/benchmark/test_memory_benchmark.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def test_manifest_cache_deduplication_efficiency() -> None:
185185
FileFormat,
186186
ManifestEntry,
187187
ManifestEntryStatus,
188-
read_manifest_list,
188+
_manifests,
189189
write_manifest,
190190
write_manifest_list,
191191
)
@@ -255,9 +255,8 @@ def test_manifest_cache_deduplication_efficiency() -> None:
255255
) as list_writer:
256256
list_writer.add_manifests(manifests_to_include)
257257

258-
# Read the manifest list (this populates the cache)
259-
input_file = io.new_input(list_path)
260-
list(read_manifest_list(input_file))
258+
# Read the manifest list using _manifests (this populates the cache)
259+
_manifests(io, list_path)
261260

262261
# Analyze cache efficiency
263262
cache_entries = len(_manifest_cache)

0 commit comments

Comments
 (0)