Avatar for the PyO3 user
PyO3
pyo3
BlogDocsChangelog

Make `intern!` & `py_format!` strings immortal

#5794
Comparing
bschoenmaeckers:intern-immortal
(
bb3f570
) with
main
(
46c16e4
)
CodSpeed Performance Gauge
+1%
Untouched
100
Ignored
21

Benchmarks

121 total
format_simple
pyo3-benches/benches/bench_pystring_from_fmt.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+9%
368.6 ns338.9 ns
err_new_without_gil
pyo3-benches/benches/bench_err.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+7%
1.3 µs1.2 µs
list_new
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+7%
4 ms3.7 ms
tuple_new
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+7%
4 ms3.7 ms
extract_str_extract_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+6%
2 µs1.9 µs
test_simple_args_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+3%
14.7 µs14.3 µs
call_method_1
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+3%
708.4 µs688.7 µs
err_new_restore_and_fetch
pyo3-benches/benches/bench_err.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+3%
6.7 µs6.5 µs
dict_new
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+3%
20.4 ms19.9 ms
extract_bigint_small
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+2%
2.6 µs2.6 µs
test_static_method
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+2%
13.8 µs13.5 µs
byte_slice_into_pyobject_medium
pyo3-benches/benches/bench_intopyobject.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+2%
1.5 µs1.4 µs
test_class_method
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+2%
14.4 µs14.2 µs
dict_get_item
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+2%
15.3 ms15 ms
test_class_attribute
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+2%
12.2 µs12 µs
test_positional_only_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
10.7 µs10.6 µs
test_proto_call
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+1%
10.9 µs10.8 µs
test_method_call
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+1%
13.3 µs13.2 µs
test_many_keyword_arguments_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
15.3 µs15.1 µs
test_none_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
11.2 µs11.1 µs
test_proto_call_py
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+1%
11.5 µs11.3 µs
test_method_call_py
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+1%
11.6 µs11.4 µs
test_many_keyword_arguments_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
17.4 µs17.2 µs
call_method_one_arg
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
631 µs623.4 µs
test_none_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
10.4 µs10.3 µs

Commits

Click on a commit to change the comparison range
Base
main
46c16e4
+0.51%
fix async functions
bb3f570
21 days ago
by bschoenmaeckers
© 2026 CodSpeed Technology
Home Terms Privacy Docs