PyO3
pyo3
BlogDocs

release: 0.22.6

#4684Merged
Comparing
release-0.22.6
(
3da55dc
) with
release-0.22
(
ec6d4f8
)
-10%
Improvements
4
Regressions
1
Untouched
63
New
6
Dropped
0
Ignored
15

Benchmarks

Failed

iter_tupleRegression
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark::iter_tuple
-10%
5.3 ms
5.9 ms

Improved

test_args_kwargs_rs
pytests/tests/test_pyfunctions.py::test_args_kwargs_rs
+14%
15.4 µs
13.5 µs
test_simple_kwargs_rs
pytests/tests/test_pyfunctions.py::test_simple_kwargs_rs
+13%
20.6 µs
18.2 µs
test_args_kwargs_py
pytests/tests/test_pyfunctions.py::test_args_kwargs_py
+13%
20.9 µs
18.5 µs
test_simple_kwargs_py
pytests/tests/test_pyfunctions.py::test_simple_kwargs_py
+10%
21.8 µs
19.8 µs

New

call
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark::call
N/A
N/A
620.7 µs
call_1
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark::call_1
N/A
N/A
258.7 µs
call_method
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark::call_method
N/A
N/A
1.3 ms
call_method_1
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark::call_method_1
N/A
N/A
656 µs
call_method_one_arg
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark::call_method_one_arg
N/A
N/A
626 µs
call_one_arg
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark::call_one_arg
N/A
N/A
232.5 µs

Passed

test_empty_class_init_py
pytests/tests/test_pyclasses.py::test_empty_class_init_py
+8%
15 µs
13.9 µs
extract_float_downcast_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_float_downcast_fail
+8%
425.8 ns
396.1 ns
drop_many_objects_without_gil
pyo3-benches/benches/bench_pyobject.rs::benches::criterion_benchmark::drop_many_objects_without_gil
+7%
43.4 µs
40.4 µs
ordered_richcmp
pyo3-benches/benches/bench_comparisons.rs::benches::criterion_benchmark::ordered_richcmp
+7%
2.9 µs
2.7 µs
test_simple_args_kwargs_py
pytests/tests/test_pyfunctions.py::test_simple_args_kwargs_py
+5%
21.2 µs
20.1 µs
test_simple_args_kwargs_rs
pytests/tests/test_pyfunctions.py::test_simple_args_kwargs_rs
+5%
19.6 µs
18.6 µs
call_0
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark::call_0
+4%
205.3 µs
196.5 µs
test_simple_args_py
pytests/tests/test_pyfunctions.py::test_simple_args_py
+4%
18 µs
17.3 µs
extract_bigint_big_negative
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark::extract_bigint_big_negative
+3%
3.9 µs
3.7 µs
ordered_dunder_methods
pyo3-benches/benches/bench_comparisons.rs::benches::criterion_benchmark::ordered_dunder_methods
+3%
2.9 µs
2.8 µs
extract_bigint_small
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark::extract_bigint_small
+3%
2.8 µs
2.7 µs
test_simple_args_rs
pytests/tests/test_pyfunctions.py::test_simple_args_rs
+3%
19.7 µs
19.1 µs
test_simple_py
pytests/tests/test_pyfunctions.py::test_simple_py
+3%
17.4 µs
17 µs
test_simple_rs
pytests/tests/test_pyfunctions.py::test_simple_rs
+3%
18.2 µs
17.7 µs
extract_bigint_big_positive
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark::extract_bigint_big_positive
+2%
3.6 µs
3.5 µs
dict_new
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark::dict_new
+2%
25.6 ms
25 ms
err_new_without_gil
pyo3-benches/benches/bench_err.rs::benches::criterion_benchmark::err_new_without_gil
+2%
1.3 µs
1.3 µs
getattr_intern
pyo3-benches/benches/bench_intern.rs::benches::criterion_benchmark::getattr_intern
+2%
3.1 µs
3.1 µs
clean_acquire_gil
pyo3-benches/benches/bench_gil.rs::benches::criterion_benchmark::clean_acquire_gil
+2%
3.4 µs
3.3 µs
extract_float_extract_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_float_extract_fail
+1%
11.8 µs
11.6 µs
not_a_list_via_extract_enum
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark::not_a_list_via_extract_enum
+1%
13.1 µs
12.9 µs
decimal_via_extract
pyo3-benches/benches/bench_decimal.rs::benches::criterion_benchmark::decimal_via_extract
+1%
14.9 µs
14.7 µs
extract_bigint_extract_fail
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark::extract_bigint_extract_fail
+1%
11.6 µs
11.5 µs
extract_bigint_huge_negative
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark::extract_bigint_huge_negative
+1%
13.1 µs
13 µs
enum_from_pyobject
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark::enum_from_pyobject
+1%
18.9 µs
18.8 µs
identify_object_type
pyo3-benches/benches/bench_any.rs::benches::criterion_benchmark::identify_object_type
+1%
14.7 µs
14.6 µs
collect_generic_iterator
pyo3-benches/benches/bench_any.rs::benches::criterion_benchmark::collect_generic_iterator
+1%
106.2 ms
105.6 ms
list_new
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark::list_new
0%
7.1 ms
7 ms
tuple_into_py
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark::tuple_into_py
0%
3 µs
3 µs
set_new
pyo3-benches/benches/bench_set.rs::benches::criterion_benchmark::set_new
0%
16.8 ms
16.8 ms
dirty_acquire_gil
pyo3-benches/benches/bench_gil.rs::benches::criterion_benchmark::dirty_acquire_gil
0%
4.9 µs
4.9 µs
drop_many_objects
pyo3-benches/benches/bench_pyobject.rs::benches::criterion_benchmark::drop_many_objects
0%
11.4 µs
11.4 µs
tuple_to_list
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark::tuple_to_list
0%
1.6 ms
1.6 ms
tuple_new_list
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark::tuple_new_list
0%
2.2 ms
2.2 ms
extract_int_extract_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_int_extract_fail
0%
11.6 µs
11.6 µs
extract_str_extract_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_str_extract_fail
0%
1.8 µs
1.8 µs
tuple_new
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark::tuple_new
0%
7 ms
7 ms
extract_hashset
pyo3-benches/benches/bench_set.rs::benches::criterion_benchmark::extract_hashset
0%
20.4 ms
20.5 ms
call_method_0
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark::call_method_0
0%
595.6 µs
598.5 µs
first_time_init
pyo3-benches/benches/bench_pyclass.rs::benches::criterion_benchmark::first_time_init
-1%
38 µs
38.2 µs
extract_bigint_huge_positive
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark::extract_bigint_huge_positive
-2%
11.8 µs
12 µs
test_proto_call
pytests/tests/test_pyclasses.py::test_proto_call
-2%
12.7 µs
12.9 µs
dict_get_item
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark::dict_get_item
-2%
15.9 ms
16.2 ms
test_empty_class_init
pytests/tests/test_pyclasses.py::test_empty_class_init
-2%
20.8 µs
21.3 µs
test_method_call_py
pytests/tests/test_pyclasses.py::test_method_call_py
-2%
13.1 µs
13.4 µs
test_proto_call_py
pytests/tests/test_pyclasses.py::test_proto_call_py
-2%
13.5 µs
13.8 µs
err_new_restore_and_fetch
pyo3-benches/benches/bench_err.rs::benches::criterion_benchmark::err_new_restore_and_fetch
-3%
7.6 µs
7.8 µs
test_none_rs
pytests/tests/test_pyfunctions.py::test_none_rs
-3%
11.7 µs
12 µs
test_none_py
pytests/tests/test_pyfunctions.py::test_none_py
-3%
11.7 µs
12.1 µs
extract_btreemap
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark::extract_btreemap
-4%
36.4 ms
37.7 ms
extract_btreeset
pyo3-benches/benches/bench_set.rs::benches::criterion_benchmark::extract_btreeset
-4%
15 ms
15.6 ms
not_a_list_via_extract
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark::not_a_list_via_extract
-5%
1.8 µs
1.9 µs
iter_dict
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark::iter_dict
-5%
10.8 ms
11.4 ms
iter_set
pyo3-benches/benches/bench_set.rs::benches::criterion_benchmark::iter_set
-6%
9.8 ms
10.5 ms
extract_hashmap
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark::extract_hashmap
-6%
19.5 ms
20.8 ms
tuple_get_item
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark::tuple_get_item
-7%
3.8 ms
4.1 ms
test_method_call
pytests/tests/test_pyclasses.py::test_method_call
-7%
13 µs
14 µs
list_get_item
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark::list_get_item
-7%
3.8 ms
4.1 ms
tuple_get_borrowed_item
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark::tuple_get_borrowed_item
-8%
3.6 ms
3.9 ms
list_get_item_unchecked
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark::list_get_item_unchecked
-8%
3.3 ms
3.6 ms
tuple_get_item_unchecked
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark::tuple_get_item_unchecked
-9%
3.3 ms
3.6 ms
tuple_get_borrowed_item_unchecked
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark::tuple_get_borrowed_item_unchecked
-9%
3.1 ms
3.4 ms
iter_list
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark::iter_list
-9%
6.1 ms
6.7 ms

Ignored

mapping_from_dictIgnored
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark::mapping_from_dict
0%
270.8 ns
270.8 ns
extract_float_downcast_successIgnored
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_float_downcast_success
0%
149.2 ns
149.2 ns
extract_float_extract_successIgnored
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_float_extract_success
-9%
303.1 ns
334.4 ns
extract_int_downcast_failIgnored
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_int_downcast_fail
0%
213.1 ns
213.1 ns
extract_int_downcast_successIgnored
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_int_downcast_success
-16%
492.2 ns
588.1 ns
extract_int_extract_successIgnored
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_int_extract_success
-23%
427.8 ns
552.8 ns
extract_str_downcast_failIgnored
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_str_downcast_fail
0%
212.8 ns
212.8 ns
extract_str_downcast_successIgnored
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_str_downcast_success
-11%
493.6 ns
551.9 ns
extract_str_extract_successIgnored
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_str_extract_success
-11%
459.2 ns
517.5 ns
list_via_downcastIgnored
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark::list_via_downcast
0%
178.3 ns
178.3 ns
list_via_extractIgnored
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark::list_via_extract
0%
183.3 ns
183.6 ns
not_a_list_via_downcastIgnored
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark::not_a_list_via_downcast
-14%
183.6 ns
212.8 ns
getattr_directIgnored
pyo3-benches/benches/bench_intern.rs::benches::criterion_benchmark::getattr_direct
-2%
6.6 µs
6.7 µs
sequence_from_listIgnored
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark::sequence_from_list
0%
241.7 ns
241.7 ns
sequence_from_tupleIgnored
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark::sequence_from_tuple
0%
241.1 ns
241.1 ns

Commits

Click on a commit to change the comparison range
Base
release-0.22
ec6d4f8
-10%
release: 0.22.6
3da55dc
21 days ago
by davidhewitt
Home Terms PrivacyDocs