Avatar for the PyO3 user
PyO3
pyo3
BlogDocsChangelog

Make #wrap_pyfunction return a Bound value

#3808Closed
Comparing
snuderl:wrap_pyfunction-bound
(
0e43071
) with
main
(
030a618
)
CodSpeed Performance Gauge
-16%
Regression
1
Untouched
61
Ignored
17

Benchmarks

79 total
f64_from_pyobject
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-16%
308.3 ns366.7 ns
identify_object_type
pyo3-benches/benches/bench_any.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+3%
15.9 µs15.5 µs
test_empty_class_init
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+2%
23.3 µs22.9 µs
extract_float_extract_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
12.3 µs12.1 µs
test_simple_args_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
22.2 µs21.9 µs
test_empty_class_init_py
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+1%
16.9 µs16.7 µs
test_none_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
12.5 µs12.4 µs
tuple_into_py
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
2.9 µs2.9 µs
ordered_dunder_methods
pyo3-benches/benches/bench_comparisons.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
3.1 µs3.1 µs
test_none_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
13.1 µs13 µs
test_simple_kwargs_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
23.6 µs23.4 µs
test_simple_args_kwargs_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
24.4 µs24.3 µs
first_time_init
pyo3-benches/benches/bench_pyclass.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
38.7 µs38.5 µs
test_simple_args_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
19 µs19 µs
test_args_kwargs_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
22.3 µs22.2 µs
extract_int_extract_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
11.5 µs11.5 µs
not_a_list_via_extract_enum
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
13.2 µs13.2 µs
test_args_kwargs_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
18 µs18 µs
extract_bigint_huge_positive
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
12.3 µs12.3 µs
test_simple_args_kwargs_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
22.5 µs22.5 µs
dict_new
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
25.3 ms25.3 ms
call_method_0
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
617.8 µs617.7 µs
extract_hashmap
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
20 ms20 ms
tuple_get_borrowed_item
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
3.6 ms3.6 ms
list_get_item
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
3.8 ms3.8 ms

Commits

Click on a commit to change the comparison range
Base
main
030a618
-15.91%
Make #wrap_pyfunction return a Bound value, and update module.add_method to accept it
0e43071
2 years ago
by snuderl
© 2026 CodSpeed Technology
Home Terms Privacy Docs