Avatar for the PyO3 user
PyO3
pyo3
BlogDocsChangelog

Add support for #[pyclass(get(attr1, attr2, ...))] and #[pyclass(set(attr1, attr2, ...))]

#5766
Comparing
davidhozic:feature/get-set-via-pyclass
(
2107d94
) with
main
(
aeeaf68
)
CodSpeed Performance Gauge
0%
Untouched
99
Ignored
21
Skipped
1

Benchmarks

121 total
call_method_one_arg
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+4%
638.4 µs615.4 µs
call_method_1
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+4%
707 µs682.7 µs
ordered_richcmp
pyo3-benches/benches/bench_comparisons.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+2%
2.6 µs2.5 µs
test_empty_class_init
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+1%
20.1 µs20 µs
test_empty_class_init_py
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
0%
12.1 µs12 µs
test_simple_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
13.8 µs13.7 µs
extract_hashbrown_set
pyo3-benches/benches/bench_set.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
19.1 ms19 ms
test_simple_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
14.7 µs14.6 µs
extract_bigint_extract_fail
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
9.4 µs9.3 µs
test_positional_only_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
10.8 µs10.7 µs
test_proto_call
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
0%
11.1 µs11 µs
test_positional_only_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
11.5 µs11.5 µs
test_proto_call_py
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
0%
11.6 µs11.5 µs
test_class_attribute
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
0%
12.2 µs12.2 µs
test_method_call
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
0%
13.3 µs13.3 µs
extract_hashbrown_map
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
24 ms24 ms
test_setter
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
0%
14 µs14 µs
test_simple_args_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
14.5 µs14.4 µs
test_args_kwargs_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
15.1 µs15 µs
test_many_keyword_arguments_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
15.3 µs15.2 µs
test_simple_args_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
15.4 µs15.3 µs
test_simple_kwargs_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
15.7 µs15.7 µs
test_simple_kwargs_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
15.8 µs15.8 µs
test_simple_args_kwargs_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
16.4 µs16.3 µs
first_time_init
pyo3-benches/benches/bench_pyclass.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
40.2 µs40.1 µs

Commits

Click on a commit to change the comparison range
Base
main
aeeaf68
+0.08%
Add support for pyo3(get(attr1, attr2, attr3))
2ea93ce
2 months ago
by davidhozic
0%
cargo fmt
b84009a
2 months ago
by davidhozic
-0.03%
Fix clippy
a007b96
2 months ago
by davidhozic
+0.06%
Ignore fake feature
d909c4a
2 months ago
by davidhozic
-0.03%
cargo fmt
2107d94
2 months ago
by davidhozic
© 2026 CodSpeed Technology
Home Terms Privacy Docs