aio-libs
async-lru
BlogDocsChangelog

feat: handle CancelledError - cancel if no other waiters

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

Benchmarks

Passed

test_cache_clear_benchmark[meth-bounded]
benchmark.py
CodSpeed Performance Gauge
+2%
22.4 µs22 µs
test_cache_hit_benchmark[meth-bounded]
benchmark.py
CodSpeed Performance Gauge
+1%
10.1 ms9.9 ms
test_cache_miss_benchmark[meth-bounded]
benchmark.py
CodSpeed Performance Gauge
+1%
1.4 ms1.4 ms
test_cache_clear_benchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
+1%
21.3 µs21.1 µs
test_cache_hit_benchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
+1%
4.9 ms4.8 ms
test_cache_invalidate_benchmark[meth-unbounded]
benchmark.py
CodSpeed Performance Gauge
+1%
1.1 ms1.1 ms
test_concurrent_cache_hit_benchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
+1%
2.7 ms2.7 ms
test_cache_miss_benchmark[meth-unbounded]
benchmark.py
CodSpeed Performance Gauge
+1%
1.4 ms1.4 ms
test_concurrent_cache_hit_benchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
+1%
2.7 ms2.7 ms
test_cache_miss_benchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
+1%
1.1 ms1.1 ms
test_cache_hit_benchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
+1%
4.9 ms4.9 ms
test_cache_hit_benchmark[meth-unbounded]
benchmark.py
CodSpeed Performance Gauge
+1%
10 ms9.9 ms
test_cache_invalidate_benchmark[meth-bounded]
benchmark.py
CodSpeed Performance Gauge
+1%
1.1 ms1.1 ms
test_cache_clear_benchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
+1%
21.2 µs21.1 µs
test_internal_cache_miss_microbenchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
+1%
109.6 µs109 µs
test_internal_cache_hit_microbenchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
+1%
153.6 µs152.6 µs
test_internal_cache_miss_microbenchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
+1%
108.7 µs108 µs
test_internal_task_done_callback_microbenchmark[cancelled-func-unbounded]
benchmark.py
CodSpeed Performance Gauge
+1%
2.6 ms2.6 ms
test_internal_task_done_callback_microbenchmark[cancelled-func-bounded]
benchmark.py
CodSpeed Performance Gauge
+1%
2.6 ms2.6 ms
test_internal_cache_hit_microbenchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
153.1 µs152.5 µs
test_internal_task_done_callback_microbenchmark[finished-func-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
2.9 ms2.9 ms
test_concurrent_cache_hit_benchmark[meth-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
3.2 ms3.2 ms
test_cache_miss_benchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
1.1 ms1.1 ms
test_concurrent_cache_hit_benchmark[meth-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
3.2 ms3.2 ms
test_internal_task_done_callback_microbenchmark[exception-func-bounded]
benchmark.py
CodSpeed Performance Gauge
0%
960.2 ms959 ms
test_internal_task_done_callback_microbenchmark[exception-func-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
964.2 ms963 ms
test_cache_clear_benchmark[meth-unbounded]
benchmark.py
CodSpeed Performance Gauge
0%
23.9 µs23.9 µs
test_cache_fill_eviction_benchmark
benchmark.py
CodSpeed Performance Gauge
0%
359.9 ms360.1 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-bounded]
benchmark.py
CodSpeed Performance Gauge
-1%
2.3 ms2.3 ms
test_cache_info_benchmark[meth-unbounded]
benchmark.py
CodSpeed Performance Gauge
-1%
2.3 ms2.3 ms
test_cache_ttl_expiry_benchmark[meth-bounded]
benchmark.py
CodSpeed Performance Gauge
-1%
145.5 µs146.7 µs
test_cache_ttl_expiry_benchmark[meth-unbounded]
benchmark.py
CodSpeed Performance Gauge
-1%
145.8 µs147.2 µs
test_cache_ttl_expiry_benchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
-1%
133.4 µs135.4 µs
test_cache_ttl_expiry_benchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
-2%
133.1 µs135.3 µs
test_cache_invalidate_benchmark[func-bounded]
benchmark.py
CodSpeed Performance Gauge
-2%
374.8 µs383.3 µs
test_cache_invalidate_benchmark[func-unbounded]
benchmark.py
CodSpeed Performance Gauge
-2%
373.7 µs382.2 µs

Commits

Click on a commit to change the comparison range
Base
master
2913fe2
+0.09%
finish up impl
e85e099
12 hours ago
by BobTheBuidler
0%
Update test_cancel.py
2c4d654
12 hours ago
by BobTheBuidler
+0.12%
lint
f9cfbf9
11 hours ago
by BobTheBuidler
0%
Update __init__.py
6441a1d
11 hours ago
by BobTheBuidler
© 2025 CodSpeed Technology
Home Terms Privacy Docs