We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4232c3f commit c0f36c4Copy full SHA for c0f36c4
benchmark.py
@@ -175,7 +175,7 @@ def test_cache_miss_benchmark(
175
) -> None:
176
func = factory()
177
# Use 2048 objects (16x maxsize=128) to force evictions and measure actual misses
178
- unique_objects = [object() for _ in range(128)]
+ unique_objects = [object() for _ in range(2048)]
179
180
async def run() -> None:
181
for obj in unique_objects:
@@ -262,7 +262,7 @@ def test_concurrent_cache_hit_benchmark(
262
async def gather_coros():
263
gather = asyncio.gather
264
for _ in range(10):
265
- return await gather(*map(func, keys))
+ await gather(*map(func, keys))
266
267
benchmark(run_loop, gather_coros)
268
0 commit comments