Avatar for the PyO3 user
PyO3
pyo3
BlogDocsChangelog

Add PyMemoryView::from_owned_buffer for zero-copy memoryview creation

#5937
Comparing
alex:claude/implement-pyo3-api-5871-kzVaG
(
800c7dc
) with
main
(
92bbf01
)
CodSpeed Performance Gauge
-16%
Regression
1
Untouched
104
Ignored
21
Skipped
1

Benchmarks

127 total
call_method_one_arg
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-16%
612.7 µs731.6 µs
format_complex
pyo3-benches/benches/bench_pystring_from_fmt.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+6%
7.2 µs6.8 µs
call_method
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+6%
1.3 ms1.2 ms
extract_float_extract_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+5%
8.6 µs8.1 µs
enum_from_pyobject
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+2%
20 µs19.6 µs
bench_pyclass_create
pyo3-benches/benches/bench_pyclass.rs::benches::bench_pyclass
CodSpeed Performance Gauge
+1%
4 µs3.9 µs
test_args_kwargs_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
12 µs11.8 µs
tuple_into_pyobject
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
2.6 µs2.5 µs
extract_bigint_small
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
2.6 µs2.6 µs
test_simple_args_kwargs_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
16.3 µs16.1 µs
test_method_call
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+1%
13.7 µs13.6 µs
ordered_richcmp
pyo3-benches/benches/bench_comparisons.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
2.9 µs2.8 µs
ordered_dunder_methods
pyo3-benches/benches/bench_comparisons.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
2.9 µs2.9 µs
test_simple_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
14.8 µs14.6 µs
test_many_keyword_arguments_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
15.5 µs15.3 µs
test_none_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
10.4 µs10.3 µs
test_positional_only_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
11.5 µs11.4 µs
test_class_attribute
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+1%
12.4 µs12.3 µs
test_many_keyword_arguments_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
17.5 µs17.3 µs
test_simple_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
13.9 µs13.8 µs
test_class_method
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+1%
14.6 µs14.5 µs
test_simple_args_kwargs_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
16.4 µs16.3 µs
test_empty_class_init_py
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+1%
11.1 µs11.1 µs
call_method_1
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
709.4 µs705.9 µs
test_setter
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
0%
14 µs14 µs

Commits

Click on a commit to change the comparison range
Base
main
92bbf01
-16.25%
Add PyMemoryView::from_owned_buffer for zero-copy memoryview creation
800c7dc
7 hours ago
by claude
© 2026 CodSpeed Technology
Home Terms Privacy Docs