PyO3
pyo3
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
use raw references instead of `addr_of!` / `addr_of_mut!`
#5879
Merged
Comparing
Icxolu:raw-references
(
571ec6a
) with
main
(
7aa6163
)
CodSpeed Performance Gauge
+28%
Improvement
2
Untouched
103
Ignored
21
Archived
1
Different runtime environments detected
Some benchmarks with significant performance changes were compared across different runtime environments, which may affect the accuracy of the results.
Learn more about regression causes
.
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Improvement
Untouched
Ignored
Archived
127 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
format_simple
pyo3-benches/benches/bench_pystring_from_fmt.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+28%
397.8 ns
310.3 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
critical_section_creation
pyo3-benches/benches/bench_critical_sections.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+14%
703.1 ns
615.6 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
vec_bytes_from_py_bytearray_medium
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+5%
2.9 µs
2.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_str_extract_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+5%
2 µs
1.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
critical_section_creation2
pyo3-benches/benches/bench_critical_sections.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+4%
859.7 ns
830.6 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_simple_args_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+3%
14.7 µs
14.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
getattr_intern
pyo3-benches/benches/bench_intern.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+3%
3.4 µs
3.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
dirty_attach
pyo3-benches/benches/bench_attach.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+2%
3.7 µs
3.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
err_new_without_gil
pyo3-benches/benches/bench_err.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+2%
1.3 µs
1.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
tuple_nth
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+2%
6.1 µs
5.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
byte_slice_into_pyobject_medium
pyo3-benches/benches/bench_intopyobject.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+2%
1.5 µs
1.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
tuple_nth_back
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+2%
6.1 µs
6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
call_method_1
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+2%
708.2 µs
695.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
enum_from_pyobject
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+2%
20.1 µs
19.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_bigint_big_negative
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+2%
3.9 µs
3.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_bigint_small
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
2.7 µs
2.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
list_nth
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
8.6 µs
8.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
list_nth_back
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
8.6 µs
8.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_bigint_big_positive
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
3.6 µs
3.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_proto_call_py
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+1%
11.5 µs
11.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_none_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
10.5 µs
10.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
identify_object_type
pyo3-benches/benches/bench_any.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
15 µs
15 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
drop_many_objects
pyo3-benches/benches/bench_py.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
14.7 µs
14.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_proto_call
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
0%
11 µs
10.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
call_method
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
1.2 ms
1.2 ms
1
2
3
4
5
6
Commits
Click on a commit to change the comparison range
Base
main
7aa6163
+28.2%
use raw references instead of `addr_of!` / `addr_of_mut!`
571ec6a
2 months ago
by Icxolu
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs