Avatar for the PyO3 user
PyO3
pyo3
BlogDocsChangelog

GitHub Actions
run

7 hours ago 40d38f3 Owen-CH-Leung:optimize_nth_and_nthback_for_boundlistiter

Compare

Base
Search a run

Head
Optimize nth and nth_back for BoundListIterator
#4810
Owen-CH-Leung:optimize_nth_and_nthback_for_boundlistiter
7 hours ago

Compare
Suggested base runs: •

Benchmarks

test_empty_class_init
pytests/tests/test_pyclasses.py::test_empty_class_init
22.4 µs
test_empty_class_init_py
pytests/tests/test_pyclasses.py::test_empty_class_init_py
13.5 µs
test_method_call_py
pytests/tests/test_pyclasses.py::test_method_call_py
13.2 µs
test_proto_call_py
pytests/tests/test_pyclasses.py::test_proto_call_py
13.7 µs
test_method_call
pytests/tests/test_pyclasses.py::test_method_call
13.9 µs
test_simple_rs
pytests/tests/test_pyfunctions.py::test_simple_rs
18.1 µs
test_args_kwargs_py
pytests/tests/test_pyfunctions.py::test_args_kwargs_py
18.1 µs
iter_set
pyo3-benches/benches/bench_set.rs::benches::criterion_benchmark::iter_set
10.5 ms
test_simple_kwargs_py
pytests/tests/test_pyfunctions.py::test_simple_kwargs_py
19.7 µs
test_simple_args_kwargs_rs
pytests/tests/test_pyfunctions.py::test_simple_args_kwargs_rs
18.7 µs
test_simple_args_rs
pytests/tests/test_pyfunctions.py::test_simple_args_rs
19.5 µs
test_none_py
pytests/tests/test_pyfunctions.py::test_none_py
11.9 µs
test_simple_kwargs_rs
pytests/tests/test_pyfunctions.py::test_simple_kwargs_rs
18.4 µs
test_simple_args_kwargs_py
pytests/tests/test_pyfunctions.py::test_simple_args_kwargs_py
19.9 µs
test_simple_args_py
pytests/tests/test_pyfunctions.py::test_simple_args_py
17.1 µs
extract_bigint_big_negative
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark::extract_bigint_big_negative
4 µs
test_simple_py
pytests/tests/test_pyfunctions.py::test_simple_py
16.8 µs
test_proto_call
pytests/tests/test_pyclasses.py::test_proto_call
12.9 µs
extract_bigint_small
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark::extract_bigint_small
3 µs
extract_hashbrown_set
pyo3-benches/benches/bench_set.rs::benches::criterion_benchmark::extract_hashbrown_set
15.9 ms
list_nth_back
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark::list_nth_back
4.6 µs
extract_bigint_huge_negative
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark::extract_bigint_huge_negative
13.4 µs
extract_btreeset
pyo3-benches/benches/bench_set.rs::benches::criterion_benchmark::extract_btreeset
15.5 ms
iter_dict
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark::iter_dict
11.4 ms
extract_bigint_big_positive
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark::extract_bigint_big_positive
3.7 µs
dict_new
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark::dict_new
25.6 ms
extract_str_extract_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_str_extract_fail
2 µs
mapping_from_dict
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark::mapping_from_dict
270.8 ns
ordered_dunder_methods
pyo3-benches/benches/bench_comparisons.rs::benches::criterion_benchmark::ordered_dunder_methods
3.1 µs
test_args_kwargs_rs
pytests/tests/test_pyfunctions.py::test_args_kwargs_rs
13.5 µs
extract_hashmap
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark::extract_hashmap
20.7 ms
test_none_rs
pytests/tests/test_pyfunctions.py::test_none_rs
11.9 µs
list_nth
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark::list_nth
4.5 µs
extract_hashbrown_map
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark::extract_hashbrown_map
17.9 ms
extract_bigint_extract_fail
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark::extract_bigint_extract_fail
12.2 µs
sequence_from_list
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark::sequence_from_list
270.8 ns
set_new
pyo3-benches/benches/bench_set.rs::benches::criterion_benchmark::set_new
15.1 ms
decimal_via_extract
pyo3-benches/benches/bench_decimal.rs::benches::criterion_benchmark::decimal_via_extract
15.2 µs
extract_hashset
pyo3-benches/benches/bench_set.rs::benches::criterion_benchmark::extract_hashset
20.5 ms
list_new
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark::list_new
7.2 ms
list_via_extract
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark::list_via_extract
241.9 ns
list_get_item
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark::list_get_item
4.1 ms
dict_get_item
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark::dict_get_item
16.3 ms
list_get_item_unchecked
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark::list_get_item_unchecked
3.6 ms
extract_int_extract_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_int_extract_fail
12.1 µs
extract_str_downcast_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_str_downcast_fail
396.7 ns
ordered_richcmp
pyo3-benches/benches/bench_comparisons.rs::benches::criterion_benchmark::ordered_richcmp
3 µs
extract_int_downcast_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_int_downcast_fail
396.9 ns
extract_btreemap
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark::extract_btreemap
37.8 ms
err_new_restore_and_fetch
pyo3-benches/benches/bench_err.rs::benches::criterion_benchmark::err_new_restore_and_fetch
8.2 µs
enum_from_pyobject
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark::enum_from_pyobject
24.1 µs
extract_str_downcast_success
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_str_downcast_success
584.4 ns
extract_int_downcast_success
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_int_downcast_success
675.6 ns
extract_bigint_huge_positive
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark::extract_bigint_huge_positive
12.2 µs
extract_float_downcast_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_float_downcast_fail
396.7 ns
bytes_new_small
pyo3-benches/benches/bench_intopyobject.rs::benches::criterion_benchmark::bytes_new_small
365.3 ns
extract_float_extract_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_float_extract_fail
12.1 µs
extract_float_downcast_success
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_float_downcast_success
178.3 ns
iter_list
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark::iter_list
6.7 ms
byte_slice_into_pyobject_small
pyo3-benches/benches/bench_intopyobject.rs::benches::criterion_benchmark::byte_slice_into_pyobject_small
423.6 ns
call
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark::call
756.3 µs
not_a_list_via_extract_enum
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark::not_a_list_via_extract_enum
17.8 µs
not_a_list_via_downcast
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark::not_a_list_via_downcast
367.5 ns
extract_int_extract_success
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_int_extract_success
552.8 ns
call_1
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark::call_1
380.2 µs
bytes_new_medium
pyo3-benches/benches/bench_intopyobject.rs::benches::criterion_benchmark::bytes_new_medium
1.6 µs
bytes_new_large
pyo3-benches/benches/bench_intopyobject.rs::benches::criterion_benchmark::bytes_new_large
176.9 µs
call_0
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark::call_0
196.5 µs
byte_slice_into_pyobject_large
pyo3-benches/benches/bench_intopyobject.rs::benches::criterion_benchmark::byte_slice_into_pyobject_large
176.9 µs
extract_float_extract_success
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_float_extract_success
305.3 ns
not_a_list_via_extract
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark::not_a_list_via_extract
2 µs
vec_into_pyobject
pyo3-benches/benches/bench_intopyobject.rs::benches::criterion_benchmark::vec_into_pyobject
2.6 µs
call_one_arg
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark::call_one_arg
347.7 µs
vec_into_py
pyo3-benches/benches/bench_intopyobject.rs::benches::criterion_benchmark::vec_into_py
9.8 µs
err_new_without_gil
pyo3-benches/benches/bench_err.rs::benches::criterion_benchmark::err_new_without_gil
1.4 µs
extract_str_extract_success
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark::extract_str_extract_success
668.1 ns
call_method
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark::call_method
1.4 ms
call_method_0
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark::call_method_0
591.5 µs
drop_many_objects
pyo3-benches/benches/bench_pyobject.rs::benches::criterion_benchmark::drop_many_objects
11.3 µs
call_method_1
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark::call_method_1
1 ms
tuple_get_borrowed_item
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark::tuple_get_borrowed_item
3.9 ms
drop_many_objects_without_gil
pyo3-benches/benches/bench_pyobject.rs::benches::criterion_benchmark::drop_many_objects_without_gil
43.3 µs
getattr_intern
pyo3-benches/benches/bench_intern.rs::benches::criterion_benchmark::getattr_intern
3 µs
collect_generic_iterator
pyo3-benches/benches/bench_any.rs::benches::criterion_benchmark::collect_generic_iterator
105.9 ms
byte_slice_into_py
pyo3-benches/benches/bench_intopyobject.rs::benches::criterion_benchmark::byte_slice_into_py
1.7 µs
first_time_init
pyo3-benches/benches/bench_pyclass.rs::benches::criterion_benchmark::first_time_init
39.8 µs
getattr_direct
pyo3-benches/benches/bench_intern.rs::benches::criterion_benchmark::getattr_direct
6.7 µs
dirty_acquire_gil
pyo3-benches/benches/bench_gil.rs::benches::criterion_benchmark::dirty_acquire_gil
4.9 µs
tuple_get_borrowed_item_unchecked
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark::tuple_get_borrowed_item_unchecked
3.4 ms
identify_object_type
pyo3-benches/benches/bench_any.rs::benches::criterion_benchmark::identify_object_type
15.3 µs
byte_slice_into_pyobject_medium
pyo3-benches/benches/bench_intopyobject.rs::benches::criterion_benchmark::byte_slice_into_pyobject_medium
1.7 µs
list_via_downcast
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark::list_via_downcast
178.3 ns
tuple_new
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark::tuple_new
7.1 ms
clean_acquire_gil
pyo3-benches/benches/bench_gil.rs::benches::criterion_benchmark::clean_acquire_gil
3.3 µs
iter_tuple
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark::iter_tuple
5.9 ms
tuple_into_py
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark::tuple_into_py
2.9 µs
tuple_to_list
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark::tuple_to_list
1.6 ms
tuple_get_item
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark::tuple_get_item
4.1 ms
call_method_one_arg
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark::call_method_one_arg
965.8 µs
tuple_new_list
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark::tuple_new_list
2.1 ms
sequence_from_tuple
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark::sequence_from_tuple
455 ns
tuple_into_pyobject
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark::tuple_into_pyobject
2.9 µs
tuple_get_item_unchecked
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark::tuple_get_item_unchecked
3.6 ms
Home Terms PrivacyDocs