Avatar for the PyO3 user
PyO3
pyo3
BlogDocsChangelog

Do not use static type references when compiling for `RustPython`

#5995Merged
Comparing
bschoenmaeckers:RustPython-type-statics
(
bcbd085
) with
main
(
20246a8
)
CodSpeed Performance Gauge
0%
Untouched
105
Ignored
21
Archived
1

Benchmarks

127 total
format_simple
pyo3-benches/benches/bench_pystring_from_fmt.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-8%
331.9 ns361.1 ns
ordered_richcmp
pyo3-benches/benches/bench_comparisons.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+5%
2.7 µs2.5 µs
vec_into_pyobject
pyo3-benches/benches/bench_intopyobject.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+3%
2.9 µs2.8 µs
err_new_without_gil
pyo3-benches/benches/bench_err.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+2%
1.2 µs1.2 µs
tuple_into_pyobject
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+2%
2.8 µs2.7 µs
format_complex
pyo3-benches/benches/bench_pystring_from_fmt.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+2%
6.9 µs6.7 µs
bench_pyclass_create
pyo3-benches/benches/bench_pyclass.rs::benches::bench_pyclass
CodSpeed Performance Gauge
+2%
4.1 µs4.1 µs
dirty_attach
pyo3-benches/benches/bench_attach.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+2%
4.3 µs4.2 µs
bytes_new_medium
pyo3-benches/benches/bench_intopyobject.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+2%
1.6 µs1.6 µs
byte_slice_into_pyobject_medium
pyo3-benches/benches/bench_intopyobject.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+2%
1.7 µs1.6 µs
tuple_nth
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-1%
5.5 µs5.6 µs
tuple_nth_back
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-1%
5.6 µs5.6 µs
test_with_typed_args_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
-1%
14.1 µs14.2 µs
test_positional_only_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
-1%
13.9 µs14 µs
test_none_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
-1%
14.4 µs14.5 µs
extract_bigint_big_positive
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-1%
3.7 µs3.7 µs
test_method_call_py
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
-1%
14.9 µs15 µs
getattr_intern
pyo3-benches/benches/bench_intern.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-1%
3.8 µs3.8 µs
extract_bigint_big_negative
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-1%
4 µs4 µs
test_class_attribute
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
-1%
16.2 µs16.3 µs
bench_str
pyo3-benches/benches/bench_pyclass.rs::benches::bench_pyclass
CodSpeed Performance Gauge
+1%
4.2 µs4.2 µs
first_time_init
pyo3-benches/benches/bench_pyclass.rs::benches::bench_first_time_init
CodSpeed Performance Gauge
+1%
42.2 µs41.9 µs
test_positional_only_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
-1%
14.3 µs14.4 µs
test_many_keyword_arguments_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
-1%
19.6 µs19.7 µs
test_proto_call_py
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
-1%
15.4 µs15.5 µs

Commits

Click on a commit to change the comparison range
Base
main
20246a8
-0.11%
Remove static type references
05475d1
2 months ago
by bschoenmaeckers
-0.02%
Fix error
7a5445f
2 months ago
by bschoenmaeckers
-0.03%
Correctly import `TracebackType`
c21508f
2 months ago
by bschoenmaeckers
+0.15%
Do not use `PyType_FastSubclass` when compiling for `RustPython`
bcbd085
2 months ago
by bschoenmaeckers
© 2026 CodSpeed Technology
Home Terms Privacy Docs