aio-libs
async-lru
BlogDocsChangelog

feat: handle CancelledError - cancel if no other waiters

#697
Comparing
BobTheBuidler:patch-3
(
c29b492
) with
master
(
2913fe2
)
CodSpeed Performance Gauge
0%
Untouched
39

Benchmarks

Passed

test_cache_hit_benchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
+1%
4.9 ms4.9 ms
test_cache_hit_benchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
+1%
4.9 ms4.9 ms
test_cache_ttl_expiry_benchmark[meth-bounded]
benchmark.py
CodSpeed Performance Gauge
+1%
145.5 µs144.7 µs
test_cache_miss_benchmark[meth-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
1.4 ms1.4 ms
test_cache_invalidate_benchmark[meth-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
1.1 ms1.1 ms
test_cache_invalidate_benchmark[meth-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
1.1 ms1.1 ms
test_cache_ttl_expiry_benchmark[meth-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
145.8 µs145.2 µs
test_cache_hit_benchmark[meth-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
10.1 ms10 ms
test_cache_miss_benchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
1.1 ms1.1 ms
test_cache_ttl_expiry_benchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
133.4 µs133.1 µs
test_concurrent_cache_hit_benchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
2.7 ms2.7 ms
test_cache_miss_benchmark[meth-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
1.4 ms1.4 ms
test_internal_cache_hit_microbenchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
153.6 µs153.4 µs
test_concurrent_cache_hit_benchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
2.7 ms2.7 ms
test_concurrent_cache_hit_benchmark[meth-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
3.2 ms3.2 ms
test_internal_cache_hit_microbenchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
153.1 µs153.1 µs
test_internal_task_done_callback_microbenchmark[exception-func-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
964.2 ms963.8 ms
test_cache_clear_benchmark[meth-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
22.4 µs22.4 µs
test_cache_info_benchmark[meth-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
2.3 ms2.3 ms
test_cache_info_benchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
2 ms2 ms
test_cache_info_benchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
2 ms2 ms
test_internal_task_done_callback_microbenchmark[finished-func-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
3 ms3 ms
test_cache_info_benchmark[meth-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
2.3 ms2.3 ms
test_cache_invalidate_benchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
374.8 µs375 µs
test_internal_task_done_callback_microbenchmark[cancelled-func-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
2.6 ms2.6 ms
test_cache_invalidate_benchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
373.7 µs373.9 µs
test_cache_miss_benchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
1.1 ms1.1 ms
test_cache_clear_benchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
21.3 µs21.4 µs
test_internal_task_done_callback_microbenchmark[exception-func-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
960.2 ms961.5 ms
test_concurrent_cache_hit_benchmark[meth-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
3.2 ms3.2 ms
test_cache_fill_eviction_benchmark
benchmark.py
CodSpeed Performance Gauge
0%
359.9 ms360.4 ms
test_internal_cache_miss_microbenchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
108.7 µs108.9 µs
test_internal_cache_miss_microbenchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
109.6 µs109.8 µs
test_cache_hit_benchmark[meth-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
10 ms10 ms
test_internal_task_done_callback_microbenchmark[finished-func-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
2.9 ms3 ms
test_cache_clear_benchmark[meth-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
23.9 µs24 µs
test_cache_ttl_expiry_benchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
-1%
133.1 µs133.9 µs
test_internal_task_done_callback_microbenchmark[cancelled-func-unbounded]
benchmark.py
CodSpeed Performance Gauge
-1%
2.6 ms2.6 ms
test_cache_clear_benchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
-1%
21.2 µs21.5 µs

Commits

Click on a commit to change the comparison range
Base
master
2913fe2
-0.38%
Merge branch 'master' into patch-3
10621cc
11 days ago
by Dreamsorcerer
0%
Update test_cancel.py
c9718ae
11 days ago
by Dreamsorcerer
+0.4%
fix: name error CancelledError
c29b492
10 days ago
by BobTheBuidler
© 2025 CodSpeed Technology
Home Terms Privacy Docs