PyO3
/
pyo3
Blog
Docs
Overview
Branches
Benchmarks
Runs
remove `Deref` implementations for old "gil refs" types
(
#4593
)
Comparing
davidhewitt:remove-deref-pyany
(
f8122d4
) with
main
(
e9a1b9b
)
0%
IMPROVEMENTS
0
REGRESSIONS
0
UNTOUCHED
83
NEW
0
DROPPED
0
IGNORED
17
Benchmarks
Passed
extract_str_extract_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_str_extract_fail
+1%
2.1 µs
2 µs
test_simple_kwargs_rs
pytests/tests/test_pyfunctions.py::test_simple_kwargs_rs
+1%
20.9 µs
20.7 µs
test_simple_args_py
pytests/tests/test_pyfunctions.py::test_simple_args_py
+1%
18.1 µs
17.9 µs
first_time_init
pyo3-benches/benches/bench_pyclass.rs::benches::criterion_benchmark::first_time_init
+1%
39.2 µs
38.9 µs
test_args_kwargs_rs
pytests/tests/test_pyfunctions.py::test_args_kwargs_rs
+1%
15.8 µs
15.7 µs
test_none_py
pytests/tests/test_pyfunctions.py::test_none_py
+1%
12.1 µs
12 µs
test_simple_kwargs_py
pytests/tests/test_pyfunctions.py::test_simple_kwargs_py
+1%
22.1 µs
22 µs
identify_object_type
pyo3-benches/benches/bench_any.rs::benches::criterion_benchmark::identify_object_type
+1%
14.8 µs
14.8 µs
test_simple_args_rs
pytests/tests/test_pyfunctions.py::test_simple_args_rs
0%
20.7 µs
20.6 µs
enum_from_pyobject
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark::enum_from_pyobject
0%
18.8 µs
18.7 µs
call_method
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark::call_method
0%
1.9 ms
1.9 ms
test_simple_args_kwargs_rs
pytests/tests/test_pyfunctions.py::test_simple_args_kwargs_rs
0%
20.2 µs
20.2 µs
call_method_1
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark::call_method_1
0%
646.6 µs
646.4 µs
extract_hashmap
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark::extract_hashmap
0%
19.6 ms
19.6 ms
call_0
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark::call_0
0%
196.5 µs
196.5 µs
call_method_one_arg
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark::call_method_one_arg
0%
616.7 µs
616.7 µs
tuple_new
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark::tuple_new
0%
7.1 ms
7.1 ms
tuple_get_borrowed_item
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark::tuple_get_borrowed_item
0%
3.6 ms
3.6 ms
tuple_get_item
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark::tuple_get_item
0%
3.8 ms
3.8 ms
extract_hashbrown_set
pyo3-benches/benches/bench_set.rs::benches::criterion_benchmark::extract_hashbrown_set
0%
15.7 ms
15.7 ms
list_new
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark::list_new
0%
7.2 ms
7.2 ms
iter_tuple
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark::iter_tuple
0%
5.3 ms
5.3 ms
tuple_get_borrowed_item_unchecked
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark::tuple_get_borrowed_item_unchecked
0%
3.1 ms
3.1 ms
tuple_get_item_unchecked
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark::tuple_get_item_unchecked
0%
3.3 ms
3.3 ms
extract_btreeset
pyo3-benches/benches/bench_set.rs::benches::criterion_benchmark::extract_btreeset
0%
15 ms
15 ms
bytes_new_large
pyo3-benches/benches/bench_intopyobject.rs::benches::criterion_benchmark::bytes_new_large
0%
176.8 µs
176.8 µs
list_get_item
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark::list_get_item
0%
3.8 ms
3.8 ms
extract_hashbrown_map
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark::extract_hashbrown_map
0%
16.9 ms
16.9 ms
dict_new
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark::dict_new
0%
25.8 ms
25.8 ms
list_get_item_unchecked
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark::list_get_item_unchecked
0%
3.3 ms
3.3 ms
extract_bigint_big_positive
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark::extract_bigint_big_positive
0%
3.5 µs
3.5 µs
extract_bigint_huge_negative
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark::extract_bigint_huge_negative
0%
13.2 µs
13.2 µs
err_new_without_gil
pyo3-benches/benches/bench_err.rs::benches::criterion_benchmark::err_new_without_gil
0%
1.3 µs
1.3 µs
extract_float_downcast_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_float_downcast_fail
0%
425.8 ns
425.8 ns
extract_int_extract_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_int_extract_fail
0%
11.4 µs
11.4 µs
not_a_list_via_extract_enum
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark::not_a_list_via_extract_enum
0%
13.1 µs
13.1 µs
clean_acquire_gil
pyo3-benches/benches/bench_gil.rs::benches::criterion_benchmark::clean_acquire_gil
0%
3.4 µs
3.4 µs
getattr_intern
pyo3-benches/benches/bench_intern.rs::benches::criterion_benchmark::getattr_intern
0%
2.9 µs
2.9 µs
byte_slice_into_py
pyo3-benches/benches/bench_intopyobject.rs::benches::criterion_benchmark::byte_slice_into_py
0%
1.6 µs
1.6 µs
byte_slice_into_pyobject_medium
pyo3-benches/benches/bench_intopyobject.rs::benches::criterion_benchmark::byte_slice_into_pyobject_medium
0%
1.6 µs
1.6 µs
vec_into_py
pyo3-benches/benches/bench_intopyobject.rs::benches::criterion_benchmark::vec_into_py
0%
9.9 µs
9.9 µs
vec_into_pyobject
pyo3-benches/benches/bench_intopyobject.rs::benches::criterion_benchmark::vec_into_pyobject
0%
2.6 µs
2.6 µs
tuple_into_py
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark::tuple_into_py
0%
2.9 µs
2.9 µs
test_method_call
pytests/tests/test_pyclasses.py::test_method_call
0%
13.2 µs
13.2 µs
test_simple_py
pytests/tests/test_pyfunctions.py::test_simple_py
0%
17.6 µs
17.6 µs
dict_get_item
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark::dict_get_item
0%
16.1 ms
16.1 ms
extract_btreemap
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark::extract_btreemap
0%
36.6 ms
36.6 ms
iter_dict
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark::iter_dict
0%
10.8 ms
10.8 ms
set_new
pyo3-benches/benches/bench_set.rs::benches::criterion_benchmark::set_new
0%
15.1 ms
15.1 ms
iter_list
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark::iter_list
0%
6.2 ms
6.2 ms
iter_set
pyo3-benches/benches/bench_set.rs::benches::criterion_benchmark::iter_set
0%
9.9 ms
9.9 ms
collect_generic_iterator
pyo3-benches/benches/bench_any.rs::benches::criterion_benchmark::collect_generic_iterator
0%
105.9 ms
105.9 ms
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
call_method_0
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark::call_method_0
0%
597.8 µs
597.8 µs
call
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark::call
0%
1.2 ms
1.2 ms
call_1
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark::call_1
0%
258.6 µs
258.6 µs
byte_slice_into_pyobject_large
pyo3-benches/benches/bench_intopyobject.rs::benches::criterion_benchmark::byte_slice_into_pyobject_large
0%
176.8 µs
176.8 µs
extract_hashset
pyo3-benches/benches/bench_set.rs::benches::criterion_benchmark::extract_hashset
0%
20 ms
20 ms
call_one_arg
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark::call_one_arg
0%
231.9 µs
232 µs
decimal_via_extract
pyo3-benches/benches/bench_decimal.rs::benches::criterion_benchmark::decimal_via_extract
0%
14.5 µs
14.6 µs
test_method_call_py
pytests/tests/test_pyclasses.py::test_method_call_py
0%
13.4 µs
13.4 µs
test_none_rs
pytests/tests/test_pyfunctions.py::test_none_rs
0%
11.9 µs
11.9 µs
extract_bigint_extract_fail
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark::extract_bigint_extract_fail
0%
11.6 µs
11.6 µs
extract_float_extract_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_float_extract_fail
0%
11.4 µs
11.4 µs
drop_many_objects
pyo3-benches/benches/bench_pyobject.rs::benches::criterion_benchmark::drop_many_objects
0%
11.3 µs
11.4 µs
test_empty_class_init
pytests/tests/test_pyclasses.py::test_empty_class_init
0%
21.2 µs
21.3 µs
test_proto_call
pytests/tests/test_pyclasses.py::test_proto_call
0%
12.9 µs
12.9 µs
test_simple_args_kwargs_py
pytests/tests/test_pyfunctions.py::test_simple_args_kwargs_py
-1%
21.2 µs
21.3 µs
dirty_acquire_gil
pyo3-benches/benches/bench_gil.rs::benches::criterion_benchmark::dirty_acquire_gil
-1%
5 µs
5 µs
test_simple_rs
pytests/tests/test_pyfunctions.py::test_simple_rs
-1%
18.8 µs
18.9 µs
test_proto_call_py
pytests/tests/test_pyclasses.py::test_proto_call_py
-1%
13.7 µs
13.7 µs
extract_bigint_huge_positive
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark::extract_bigint_huge_positive
-1%
12.1 µs
12.1 µs
err_new_restore_and_fetch
pyo3-benches/benches/bench_err.rs::benches::criterion_benchmark::err_new_restore_and_fetch
-1%
7.6 µs
7.6 µs
extract_bigint_big_negative
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark::extract_bigint_big_negative
-1%
3.8 µs
3.8 µs
ordered_richcmp
pyo3-benches/benches/bench_comparisons.rs::benches::criterion_benchmark::ordered_richcmp
-1%
2.8 µs
2.8 µs
ordered_dunder_methods
pyo3-benches/benches/bench_comparisons.rs::benches::criterion_benchmark::ordered_dunder_methods
-1%
2.8 µs
2.8 µs
test_empty_class_init_py
pytests/tests/test_pyclasses.py::test_empty_class_init_py
-1%
15.3 µs
15.4 µs
test_args_kwargs_py
pytests/tests/test_pyfunctions.py::test_args_kwargs_py
-1%
20.6 µs
20.9 µs
not_a_list_via_extract
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark::not_a_list_via_extract
-2%
1.9 µs
1.9 µs
bytes_new_medium
pyo3-benches/benches/bench_intopyobject.rs::benches::criterion_benchmark::bytes_new_medium
-2%
1.6 µs
1.6 µs
extract_bigint_small
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark::extract_bigint_small
-2%
2.8 µs
2.8 µs
drop_many_objects_without_gil
pyo3-benches/benches/bench_pyobject.rs::benches::criterion_benchmark::drop_many_objects_without_gil
-5%
41.2 µs
43.1 µs
Ignored
mapping_from_dict
Ignored
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark::mapping_from_dict
0%
300 ns
300 ns
extract_float_downcast_success
Ignored
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_float_downcast_success
0%
178.3 ns
178.3 ns
extract_float_extract_success
Ignored
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_float_extract_success
+9%
361.4 ns
332.2 ns
extract_int_downcast_fail
Ignored
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_int_downcast_fail
0%
426.1 ns
426.1 ns
extract_int_downcast_success
Ignored
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_int_downcast_success
0%
521.4 ns
521.4 ns
extract_int_extract_success
Ignored
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_int_extract_success
0%
427.8 ns
427.8 ns
extract_str_downcast_fail
Ignored
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_str_downcast_fail
0%
425.8 ns
425.8 ns
extract_str_downcast_success
Ignored
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_str_downcast_success
0%
552.2 ns
552.2 ns
extract_str_extract_success
Ignored
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_str_extract_success
0%
518.6 ns
518.6 ns
list_via_downcast
Ignored
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark::list_via_downcast
0%
149.2 ns
149.2 ns
list_via_extract
Ignored
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark::list_via_extract
0%
212.8 ns
212.8 ns
not_a_list_via_downcast
Ignored
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark::not_a_list_via_downcast
+7%
425.8 ns
396.7 ns
getattr_direct
Ignored
pyo3-benches/benches/bench_intern.rs::benches::criterion_benchmark::getattr_direct
-10%
6.5 µs
7.2 µs
byte_slice_into_pyobject_small
Ignored
pyo3-benches/benches/bench_intopyobject.rs::benches::criterion_benchmark::byte_slice_into_pyobject_small
-7%
365.3 ns
394.4 ns
bytes_new_small
Ignored
pyo3-benches/benches/bench_intopyobject.rs::benches::criterion_benchmark::bytes_new_small
0%
365.3 ns
365.3 ns
sequence_from_list
Ignored
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark::sequence_from_list
0%
270.8 ns
270.8 ns
sequence_from_tuple
Ignored
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark::sequence_from_tuple
+6%
513.3 ns
484.2 ns
Commits
Click on a commit to change the comparison range
base
main
e9a1b9b
0%
remove `Deref` implementations for old "gil refs" types
f8122d4
2 months ago
by davidhewitt
Resources
Home
Pricing
Docs
Blog
GitHub
Changelog
Getting Started
Sample repository
Explore repositories
Support
About
Careers
Twitter
Discord
Contact Us
Terms of Service
Privacy Policy
Copyright © 2024 CodSpeed Technology SAS. All rights reserved.