PyO3
pyo3
BlogDocsChangelog

Use PyModExport and PyABIInfo APIs in pymodule implementation

#5753
Comparing
ngoldbaum:moduledef-hide-details
(
03d6398
) with
main
(
d768e0a
)
CodSpeed Performance Gauge
-27%
Regression
1
Untouched
99
Ignored
21

Benchmarks

121 total
format_simple
pyo3-benches/benches/bench_pystring_from_fmt.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-27%
155.8 ns214.2 ns
extract_bigint_small
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+3%
2.8 µs2.7 µs
err_new_without_gil
pyo3-benches/benches/bench_err.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+2%
1.3 µs1.3 µs
test_empty_class_init
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+2%
25.1 µs24.7 µs
clean_attach
pyo3-benches/benches/bench_attach.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+2%
3.6 µs3.6 µs
extract_bigint_big_positive
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+2%
3.7 µs3.7 µs
format_complex
pyo3-benches/benches/bench_pystring_from_fmt.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+2%
7.6 µs7.5 µs
test_many_keyword_arguments_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
20.1 µs19.8 µs
test_none_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
14.9 µs14.7 µs
test_with_typed_args_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
14.8 µs14.6 µs
vec_into_pyobject
pyo3-benches/benches/bench_intopyobject.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
2.5 µs2.5 µs
test_args_kwargs_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
15.5 µs15.3 µs
test_simple_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
18.7 µs18.5 µs
test_positional_only_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
14.4 µs14.3 µs
test_simple_args_kwargs_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
21.6 µs21.4 µs
test_method_call_py
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+1%
15.3 µs15.2 µs
test_simple_args_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
20 µs19.8 µs
extract_bigint_big_negative
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
4 µs3.9 µs
list_nth
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
4 µs4 µs
list_nth_back
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
4.1 µs4 µs
test_with_typed_args_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
18.7 µs18.6 µs
test_simple_kwargs_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
19.3 µs19.2 µs
test_many_keyword_arguments_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
21.5 µs21.4 µs
extract_bigint_huge_positive
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
11.7 µs11.6 µs
extract_float_extract_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
11.8 µs11.8 µs

Commits

Click on a commit to change the comparison range
Base
main
d768e0a
-0.16%
fix issues seen on older pythons in CI
bab6da9
1 day ago
by ngoldbaum
-0.06%
fix incorrect ModuleDef setup on 3.15
34aaa1b
1 day ago
by ngoldbaum
-27.01%
fix clippy
f445fd1
11 hours ago
by ngoldbaum
0%
add changelog entry
03d6398
10 hours ago
by ngoldbaum
© 2026 CodSpeed Technology
Home Terms Privacy Docs