PyO3
pyo3
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
docs: document using as_borrowed in the Bound migration
#3833
Merged
Comparing
LilyFoote:document-as-borrowed
(
097f32c
) with
main
(
e308c8d
)
CodSpeed Performance Gauge
+19%
Improvement
1
Untouched
61
Ignored
17
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Improvement
Untouched
Ignored
79 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
f64_from_pyobject
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+19%
366.7 ns
308.3 ns
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%
3.1 µs
3.1 µ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
+1%
18.8 µs
18.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_none_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
11.9 µs
11.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
not_a_list_via_extract_enum
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
13 µs
13 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_simple_args_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
17.9 µs
17.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_simple_kwargs_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
21.9 µs
21.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_empty_class_init_py
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
0%
15.9 µs
15.9 µ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%
22.2 µs
22.2 µ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%
213.9 µs
213.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_hashmap
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
19.7 ms
19.7 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_bigint_huge_positive
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
12.3 µs
12.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
call_method_0
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
618 µs
618 µ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%
11.5 µs
11.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
iter_dict
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
10.9 ms
10.9 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_btreeset
pyo3-benches/benches/bench_set.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
15.4 ms
15.4 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
dirty_acquire_gil
pyo3-benches/benches/bench_gil.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
4.5 µs
4.5 µ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
0%
1.3 µs
1.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
err_new_restore_and_fetch
pyo3-benches/benches/bench_err.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
7.5 µs
7.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
drop_many_objects
pyo3-benches/benches/bench_pyobject.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
11.7 µs
11.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
clean_acquire_gil
pyo3-benches/benches/bench_gil.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
3.6 µs
3.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_args_kwargs_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
16.8 µs
16.8 µ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
0%
3 µs
3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
tuple_into_py
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
2.9 µs
2.9 µ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
0%
2.1 µs
2.1 µs
1
2
3
4
Commits
Click on a commit to change the comparison range
Base
main
e308c8d
+18.92%
Document using as_borrowed in the Bound migration
097f32c
2 years ago
by LilyFoote
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs