PyO3
pyo3
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
avoid incrementing reference count of function args where possible
#5941
Merged
Comparing
davidhewitt:borrowed-func-args
(
44c62ab
) with
main
(
46d9ca3
)
CodSpeed Performance Gauge
×2.4
Improvement
5
Untouched
100
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.
call_method_1
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
×2.4
709.4 µs
300.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
call_method_one_arg
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
×2.3
612.7 µs
271.5 µ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
+60%
1,268.2 µs
791.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
call_1
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+36%
270 µs
198.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
call
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+14%
607.2 µs
534.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
call_one_arg
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+9%
200.5 µs
183.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
bench_pyclass_create
pyo3-benches/benches/bench_pyclass.rs::benches::bench_pyclass
CodSpeed Performance Gauge
+4%
4 µs
3.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_with_typed_args_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
14.6 µs
14.5 µ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.6 µs
2.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
ordered_dunder_methods
pyo3-benches/benches/bench_comparisons.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
2.8 µs
2.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
ordered_richcmp
pyo3-benches/benches/bench_comparisons.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
2.8 µs
2.8 µ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
0%
6.4 µs
6.4 µ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
0%
6.5 µs
6.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_int_extract_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
8.2 µs
8.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_float_extract_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
8.6 µs
8.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
first_time_init
pyo3-benches/benches/bench_pyclass.rs::benches::bench_first_time_init
CodSpeed Performance Gauge
0%
40.8 µs
40.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_simple_args_kwargs_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
16.2 µs
16.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_empty_class_init
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
0%
21.7 µs
21.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
drop_many_objects_without_gil
pyo3-benches/benches/bench_py.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
55.8 µs
55.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
call_0
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
166.2 µs
166.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
set_new
pyo3-benches/benches/bench_set.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
18.3 ms
18.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
dict_new
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
20.4 ms
20.4 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
iter_tuple
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
5.1 ms
5.1 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
list_get_item
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
5 ms
5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
collect_generic_iterator
pyo3-benches/benches/bench_any.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
120.2 ms
120.2 ms
1
2
3
4
5
6
Commits
Click on a commit to change the comparison range
Base
main
46d9ca3
×2.4
avoid incrementing reference count of function args where possible
052a62d
2 months ago
by davidhewitt
0%
Merge remote-tracking branch 'origin/main' into borrowed-func-args
44c62ab
2 months ago
by davidhewitt
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs