Avatar for the PyO3 user
PyO3
pyo3
BlogDocsChangelog

Handle errors on `PyIterator` when calling `size_hint`

#5604Merged
Comparing
bschoenmaeckers:iter_size_hint_error
(
a5576aa
) with
main
(
4f579f1
)
CodSpeed Performance Gauge
0%
Untouched
98
Ignored
21

Benchmarks

119 total
ordered_dunder_methods
pyo3-benches/benches/bench_comparisons.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+5%
2.5 µs2.4 µs
extract_str_extract_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+2%
1.8 µs1.7 µs
test_args_kwargs_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
14.6 µs14.4 µs
vec_bytes_from_py_bytes_medium
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
2.1 µs2.1 µs
test_static_method
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+1%
15.8 µs15.6 µs
test_class_attribute
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+1%
14.4 µs14.2 µs
ordered_richcmp
pyo3-benches/benches/bench_comparisons.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
2.4 µs2.4 µs
test_simple_kwargs_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
18.8 µs18.7 µs
test_simple_args_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
19 µs18.9 µs
test_getter
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+1%
16.4 µs16.3 µs
test_none_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
13.5 µs13.3 µs
test_method_call_py
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+1%
14 µs13.9 µs
test_method_call
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+1%
15 µs14.9 µs
tuple_nth
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
3.8 µs3.8 µs
test_simple_args_kwargs_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
19.2 µs19 µs
tuple_nth_back
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
3.9 µs3.8 µs
test_none_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
12.8 µs12.7 µs
test_positional_only_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
13.6 µs13.5 µs
test_with_typed_args_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
13.8 µs13.7 µs
dirty_attach
pyo3-benches/benches/bench_attach.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
5.1 µs5.1 µs
test_simple_args_kwargs_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
20.7 µs20.6 µs
test_setter
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+1%
16.8 µs16.7 µs
test_with_typed_args_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
17.4 µs17.3 µs
test_simple_args_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
18 µs17.9 µs
test_many_keyword_arguments_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
18.9 µs18.8 µs

Commits

Click on a commit to change the comparison range
Base
main
4f579f1
+0.1%
Test `PyNotImplemented` return value as well
ae20ab2
3 months ago
by bschoenmaeckers
+0.16%
disable test on `3.7`
a5576aa
3 months ago
by bschoenmaeckers
© 2026 CodSpeed Technology
Home Terms Privacy Docs