PyO3
pyo3
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
feat: add `coroutine::CancelHandle`
#3599
Merged
Comparing
wyfo:coroutine_cancel
(
aa8ef40
) with
main
(
81ad2e8
)
CodSpeed Performance Gauge
+14%
Improvements
1
Untouched
60
Ignored
17
Benchmarks
Improved
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
f64_from_pyobject
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+14%
241.7 ns
212.5 ns
Passed
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_bigint_small
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+3%
2.8 µs
2.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
identify_object_type
pyo3-benches/benches/bench_any.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+2%
16 µs
15.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
err_new_without_gil
pyo3-benches/benches/bench_err.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+2%
1.3 µs
1.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_bigint_big_positive
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+2%
3.6 µs
3.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_str_extract_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+2%
1.9 µs
1.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_simple_args_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
18 µs
17.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_empty_class_init_py
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+1%
17.4 µs
17.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_simple_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
18.3 µs
18.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_bigint_big_negative
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
3.8 µs
3.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_empty_class_init
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+1%
21.9 µs
21.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
dirty_acquire_gil
pyo3-benches/benches/bench_gil.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
4.4 µs
4.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_simple_args_kwargs_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
21.2 µs
21.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_simple_kwargs_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
22.3 µs
22.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_simple_args_kwargs_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
24 µs
23.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_bigint_huge_positive
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
12 µs
12 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_bigint_huge_negative
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
13.3 µs
13.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
decimal_via_extract
pyo3-benches/benches/bench_decimal.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
14.8 µs
14.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
enum_from_pyobject
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
19.4 µs
19.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
tuple_to_list
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
1.9 ms
1.9 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_simple_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
18.8 µs
18.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
tuple_new_list
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
2.5 ms
2.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_btreeset
pyo3-benches/benches/bench_set.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
21.2 ms
21.2 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
list_get_item
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
5.2 ms
5.2 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_hashmap
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
25.1 ms
25.1 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
tuple_new
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
6.7 ms
6.7 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
iter_set
pyo3-benches/benches/bench_set.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
16.7 ms
16.7 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
list_get_item_unchecked
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
4.5 ms
4.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
dict_get_item
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
17.3 ms
17.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
iter_list
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
8.7 ms
8.7 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
set_new
pyo3-benches/benches/bench_set.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
18.8 ms
18.8 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_btreemap
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
43.6 ms
43.6 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
collect_generic_iterator
pyo3-benches/benches/bench_any.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
90 ms
90 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
drop_many_objects
pyo3-benches/benches/bench_pyobject.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
9.4 µs
9.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
iter_dict
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
14.8 ms
14.8 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_hashset
pyo3-benches/benches/bench_set.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
22.5 ms
22.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
iter_tuple
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
6.8 ms
6.8 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
tuple_get_item
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
4.2 ms
4.2 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
tuple_get_item_unchecked
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
3.7 ms
3.7 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
list_new
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
6.7 ms
6.7 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
dict_new
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
25.5 ms
25.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
call_0
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
213.8 µs
213.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
call_method_0
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
692.6 µs
693 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
first_time_init
pyo3-benches/benches/bench_pyclass.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
39.2 µs
39.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_simple_args_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
21.7 µs
21.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_none_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
11.8 µs
11.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_args_kwargs_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
-1%
16 µs
16.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_none_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
-1%
12 µs
12.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_bigint_extract_fail
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-1%
11.4 µs
11.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_int_extract_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-1%
11.4 µs
11.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
err_new_restore_and_fetch
pyo3-benches/benches/bench_err.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-1%
7.5 µs
7.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_args_kwargs_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
-1%
20.8 µs
20.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
clean_acquire_gil
pyo3-benches/benches/bench_gil.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-1%
3.6 µs
3.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
getattr_intern
pyo3-benches/benches/bench_intern.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-1%
3.1 µs
3.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
ordered_dunder_methods
pyo3-benches/benches/bench_comparisons.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-2%
3.1 µs
3.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
ordered_richcmp
pyo3-benches/benches/bench_comparisons.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-2%
3.1 µs
3.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
tuple_into_py
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-2%
3 µs
3.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
not_a_list_via_extract_enum
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-2%
14.8 µs
15.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_simple_kwargs_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
-3%
22.7 µs
23.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
clean_gilpool_new
pyo3-benches/benches/bench_gil.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-5%
530 ns
559.2 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_float_extract_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-6%
11.5 µs
12.3 µs
Ignored
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
getattr_direct
pyo3-benches/benches/bench_intern.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
0%
6.9 µs
6.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_int_extract_success
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
+5%
588.6 ns
559.4 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_int_downcast_success
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
+4%
712.5 ns
683.3 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_float_extract_success
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
0%
271.7 ns
271.7 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
mapping_from_dict
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
-12%
215.6 ns
244.7 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_float_downcast_success
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
-7%
395.8 ns
425 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_float_downcast_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
0%
399.4 ns
399.4 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_str_downcast_success
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
0%
398.6 ns
398.6 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
sequence_from_tuple
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
-11%
245 ns
274.2 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_str_downcast_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
0%
216.1 ns
216.1 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
sequence_from_list
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
+11%
303.3 ns
274.2 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
list_via_downcast
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
+24%
148.3 ns
119.2 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
list_via_extract
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
-22%
212.8 ns
271.1 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
not_a_list_via_extract
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
+3%
2 µs
1.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_int_downcast_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
0%
216.1 ns
216.1 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_str_extract_success
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
-13%
399.4 ns
457.8 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
not_a_list_via_downcast
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
-20%
119.2 ns
148.3 ns
Commits
Click on a commit to change the comparison range
Base
main
81ad2e8
+13.73%
feat: add `coroutine::CancelHandle`
aa8ef40
2 years ago
by wyfo
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs