PyO3
pyo3
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Full ADT support with pyclass for complex enums
#3582
Merged
Comparing
mkovaxx:pyclass_complex_enum
(
3ed5ddb
) with
main
(
43504cd
)
CodSpeed Performance Gauge
0%
Untouched
61
Ignored
17
Benchmarks
Passed
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
+3%
12.2 µs
11.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
+2%
2 µs
1.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_simple_kwargs_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
23.6 µs
23.3 µ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%
3 µs
3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_empty_class_init_py
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
+1%
16.9 µs
16.7 µ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
+1%
7.5 µs
7.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_none_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
12.6 µs
12.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_simple_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
19.7 µs
19.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_empty_class_init
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
0%
23 µs
23 µ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.4 µ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.7 µs
16.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
first_time_init
pyo3-benches/benches/bench_pyclass.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
38.9 µs
38.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_bigint_huge_negative
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
13.5 µs
13.5 µ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%
22.1 ms
22.1 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%
18.1 ms
18.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%
4.3 ms
4.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
iter_set
pyo3-benches/benches/bench_set.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
15.6 ms
15.6 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
tuple_get_item
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
3.5 ms
3.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
iter_list
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
7.3 ms
7.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
list_get_item_unchecked
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
3.7 ms
3.7 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_btreemap
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
38.6 ms
38.6 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.2 ms
5.2 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
dict_get_item
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
16.6 ms
16.6 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%
91.4 ms
91.4 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
tuple_to_list
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
1.9 ms
1.9 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
getattr_intern
pyo3-benches/benches/bench_intern.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
3.1 µs
3.1 µ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.9 µs
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
0%
334.4 ns
334.4 ns
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.
ordered_dunder_methods
pyo3-benches/benches/bench_comparisons.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
2.9 µs
2.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
clean_gilpool_new
pyo3-benches/benches/bench_gil.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
500.8 ns
500.8 ns
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.
extract_bigint_big_positive
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
3.8 µs
3.8 µ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%
9.4 µs
9.4 µ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.
extract_bigint_small
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
3 µs
3 µ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.8 ms
18.8 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
tuple_get_item_unchecked
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
2.9 ms
2.9 ms
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%
13.4 ms
13.4 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
tuple_new_list
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
2.5 ms
2.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
list_new
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
6.7 ms
6.7 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
tuple_new
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
6.7 ms
6.7 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%
25.3 ms
25.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_hashset
pyo3-benches/benches/bench_set.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
22.1 ms
22.1 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_args_kwargs_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
22.3 µs
22.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_bigint_extract_fail
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
11.5 µs
11.5 µs
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.2 µs
12.3 µ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.7 µs
13.7 µ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
0%
19.5 µs
19.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_simple_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
19.1 µs
19.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_simple_args_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
-1%
19 µs
19.1 µs
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
-1%
4.4 µs
4.5 µ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
-1%
4.1 µs
4.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_none_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
-1%
12.9 µs
13 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_simple_args_kwargs_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
-1%
22.6 µs
22.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
decimal_via_extract
pyo3-benches/benches/bench_decimal.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
-1%
15 µs
15.1 µ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
-2%
701.5 µs
713.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_simple_args_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
-2%
22.3 µs
22.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
-2%
24.7 µs
25.2 µ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
-4%
15.5 µs
16.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_simple_kwargs_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
-5%
23.4 µs
24.8 µs
Ignored
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_int_downcast_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
0%
186.9 ns
186.9 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_float_extract_success
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
0%
396.4 ns
396.4 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_float_downcast_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
0%
399.4 ns
399.4 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
not_a_list_via_downcast
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
+24%
148.3 ns
119.2 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
list_via_downcast
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
0%
148.3 ns
148.3 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_float_downcast_success
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
0%
398.1 ns
398.1 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
getattr_direct
pyo3-benches/benches/bench_intern.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
0%
6.8 µs
6.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
not_a_list_via_extract
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
0%
1.8 µs
1.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
sequence_from_tuple
pyo3-benches/benches/bench_tuple.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
0%
306.9 ns
306.9 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
list_via_extract
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
0%
271.4 ns
271.4 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
sequence_from_list
pyo3-benches/benches/bench_list.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
0%
306.4 ns
306.4 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_str_extract_success
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
-5%
583.3 ns
612.5 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_str_downcast_success
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
-5%
525 ns
554.2 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_int_extract_success
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
0%
521.7 ns
521.7 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_int_downcast_success
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
0%
523.1 ns
523.1 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
extract_str_downcast_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
0%
216.1 ns
216.1 ns
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
mapping_from_dict
pyo3-benches/benches/bench_dict.rs::benches::criterion_benchmark
Ignored
CodSpeed Performance Gauge
0%
364.4 ns
364.4 ns
Commits
Click on a commit to change the comparison range
Base
main
43504cd
-0.19%
feat: support pyclass on complex enums
3ed5ddb
2 years ago
by mkovaxx
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs