Avatar for the PyO3 user
PyO3
pyo3
BlogDocsChangelog

require `#[pyclass]` to be `Sync`

#4566Merged
Comparing
davidhewitt:pyclass-sync
(
ba09a08
) with
main
(
9f955e4
)
CodSpeed Performance Gauge
0%
Untouched
80
Ignored
19
Archived
1

Benchmarks

100 total
test_simple_args_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+2%
17.5 µs17.1 µs
err_new_without_gil
pyo3-benches/benches/bench_err.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-2%
1.3 µs1.4 µs
ordered_richcmp
pyo3-benches/benches/bench_comparisons.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+2%
3.1 µs3.1 µs
test_none_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
12.3 µs12.1 µs
ordered_dunder_methods
pyo3-benches/benches/bench_comparisons.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
3.1 µs3.1 µs
clean_acquire_gil
pyo3-benches/benches/bench_gil.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-1%
3.3 µs3.3 µs
test_empty_class_init_py
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+1%
13.9 µs13.8 µs
test_proto_call_py
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+1%
13.9 µs13.8 µs
extract_bigint_huge_positive
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
12.1 µs12 µs
enum_from_pyobject
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
25.1 µs24.9 µs
extract_bigint_big_positive
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
3.7 µs3.6 µs
not_a_list_via_extract_enum
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
18.4 µs18.2 µs
test_args_kwargs_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
18.6 µs18.5 µs
extract_bigint_big_negative
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
3.9 µs3.9 µs
err_new_restore_and_fetch
pyo3-benches/benches/bench_err.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-1%
8 µs8 µs
test_simple_args_kwargs_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
20.2 µs20.1 µs
dirty_acquire_gil
pyo3-benches/benches/bench_gil.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-1%
4.9 µs4.9 µs
test_simple_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
17.1 µs17 µs
test_simple_kwargs_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
19 µs18.9 µs
test_simple_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
18.5 µs18.5 µs
test_proto_call
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
0%
13.2 µs13.2 µs
test_args_kwargs_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
13.7 µs13.7 µs
identify_object_type
pyo3-benches/benches/bench_any.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
14.9 µs15 µs
test_empty_class_init
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
0%
21.4 µs21.4 µs
test_none_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
12.1 µs12.1 µs

Commits

Click on a commit to change the comparison range
Base
main
9f955e4
+0.24%
silence new deprecation warning
862b882
2 years ago
by ngoldbaum
+0.05%
use `unsendable` to test cell get / set
0b8d5fa
2 years ago
by davidhewitt
-0.34%
fix wasm clippy
a7381a0
2 years ago
by ngoldbaum
+0.41%
use a better name
eedd5b8
2 years ago
by ngoldbaum
+0.03%
fix cargo doc --lib
dc8b7e7
2 years ago
by ngoldbaum
0%
fix building with no default features
4a26752
2 years ago
by ngoldbaum
0%
apply Bruno's wording suggestions
d69df5e
2 years ago
by ngoldbaum
-0.28%
update discussion around the decorator example in the guide
ba09a08
2 years ago
by ngoldbaum
© 2026 CodSpeed Technology
Home Terms Privacy Docs