Avatar for the PyO3 user
PyO3
pyo3
BlogDocsChangelog

move `#[pyclass]` docstring generation to compile time

#5286Merged
Comparing
davidhewitt:compile-time-class-doc
(
9ff5bd3
) with
main
(
d265254
)
CodSpeed Performance Gauge
-14%
Untouched
92
Ignored
19

Benchmarks

111 total
extract_str_extract_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+5%
1.8 µs1.7 µs
err_new_without_gil
pyo3-benches/benches/bench_err.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+5%
1.3 µs1.2 µs
ordered_dunder_methods
pyo3-benches/benches/bench_comparisons.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+2%
3.2 µs3.2 µs
test_method_call
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+1%
15.4 µs15.2 µs
test_simple_args_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
19.2 µs19 µs
tuple_into_pyobject
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
2.8 µs2.8 µs
extract_bigint_small
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
2.8 µs2.8 µs
ordered_richcmp
pyo3-benches/benches/bench_comparisons.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
3.2 µs3.2 µs
test_empty_class_init
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+1%
22.6 µs22.5 µs
test_positional_only_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
13.8 µs13.7 µs
test_empty_class_init_py
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+1%
14.2 µs14.1 µs
test_simple_args_kwargs_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
20.6 µs20.5 µs
call_method_one_arg
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
630.9 µs627.8 µs
test_class_method
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
0%
17.8 µs17.7 µs
decimal_via_extract
pyo3-benches/benches/bench_decimal.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
15.3 µs15.2 µs
test_none_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
12.7 µs12.7 µs
test_simple_kwargs_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
20.3 µs20.2 µs
test_method_call_py
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
0%
13.9 µs13.9 µs
identify_object_type
pyo3-benches/benches/bench_any.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
15.6 µs15.5 µs
drop_many_objects
pyo3-benches/benches/bench_pyobject.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
11.3 µs11.3 µs
extract_float_extract_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
11.7 µs11.7 µs
test_with_typed_args_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
13.7 µs13.7 µs
test_proto_call_py
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
0%
14.4 µs14.4 µs
test_args_kwargs_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
14.7 µs14.6 µs
test_static_method
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
0%
15.7 µs15.7 µs

Commits

Click on a commit to change the comparison range
Base
main
d265254
-0.11%
move `#[pyclass]` docstring generation to compile time
a9a0bc3
7 months ago
by davidhewitt
-0.27%
Merge branch 'main' into compile-time-class-doc
2f666f4
7 months ago
by davidhewitt
-0.02%
fixup msrv
8d60753
7 months ago
by davidhewitt
+0.06%
fixup final tests, newsfragment
c5fc58a
7 months ago
by davidhewitt
-0.06%
runtime test coverage
2feada3
7 months ago
by davidhewitt
-13.39%
use "copy_from_slice" (with a note for the future)
3101780
7 months ago
by davidhewitt
0%
fix clippy beta
9ff5bd3
7 months ago
by davidhewitt
© 2026 CodSpeed Technology
Home Terms Privacy Docs