Avatar for the PyO3 user
PyO3
pyo3
BlogDocsChangelog

docs: add guide chapter detailing current way to share classes between modules

#5938
Comparing
davidhewitt:pyclass-sharing-doc
(
c65a5b2
) with
main
(
df36c71
)
CodSpeed Performance Gauge
0%
Untouched
105
Ignored
21
Skipped
1

Benchmarks

127 total
test_getter
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+3%
15 µs14.6 µs
bench_pyclass_create
pyo3-benches/benches/bench_pyclass.rs::benches::bench_pyclass
CodSpeed Performance Gauge
+2%
3.9 µs3.9 µs
extract_bigint_small
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
2.6 µs2.6 µs
tuple_into_pyobject
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
2.6 µs2.6 µs
ordered_dunder_methods
pyo3-benches/benches/bench_comparisons.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
2.8 µs2.7 µs
ordered_richcmp
pyo3-benches/benches/bench_comparisons.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
2.8 µs2.8 µs
test_method_call
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+1%
13.7 µs13.7 µs
test_none_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
10.4 µs10.3 µs
test_empty_class_init
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
0%
21.7 µs21.6 µs
test_class_method
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
0%
14.7 µs14.6 µs
test_simple_args_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
15.5 µs15.4 µs
extract_float_extract_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
8.6 µs8.5 µs
enum_from_pyobject
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
20.1 µs20.1 µs
test_empty_class_init_py
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
0%
11.1 µs11.1 µs
test_positional_only_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
11.5 µs11.5 µs
test_args_kwargs_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
12 µs12 µs
test_class_attribute
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
0%
12.4 µs12.4 µs
test_static_method
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
0%
13.9 µs13.9 µs
test_with_typed_args_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
14.6 µs14.5 µs
test_simple_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
14.8 µs14.8 µs
test_args_kwargs_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
15.2 µs15.2 µs
test_simple_args_kwargs_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
16.2 µs16.1 µs
extract_hashbrown_set
pyo3-benches/benches/bench_set.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
19.4 ms19.4 ms
test_many_keyword_arguments_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
17.4 µs17.4 µs
first_time_init
pyo3-benches/benches/bench_pyclass.rs::benches::bench_first_time_init
CodSpeed Performance Gauge
0%
40.7 µs40.7 µs

Commits

Click on a commit to change the comparison range
Base
main
df36c71
-0.04%
fixup docs build
2deb6ee
4 days ago
by davidhewitt
-0.22%
Merge remote-tracking branch 'origin/main' into pyclass-sharing-doc
3578d56
4 days ago
by davidhewitt
+0.14%
Merge branch 'PyO3:main' into pyclass-sharing-doc
c65a5b2
3 days ago
by davidhewitt
© 2026 CodSpeed Technology
Home Terms Privacy Docs