Avatar for the python-attrs user
python-attrs
cattrs
BlogDocsChangelog

Introduce benchmarks for tuples

#735Merged
Comparing
tin/tuple-benchmarks
(
483ac28
) with
main
(
7d18f81
)
CodSpeed Performance Gauge
0%
Untouched
54
New
10

Benchmarks

64 total
test_unstructure_hetero_tuple[Converter]
bench/test_tuples.py
CodSpeed Performance Gauge
N/A
N/A17.2 µs
test_structure_hetero_tuple[True-BaseConverter]
bench/test_tuples.py
CodSpeed Performance Gauge
N/A
N/A46.4 µs
test_structure_homo_tuple[True-Converter]
bench/test_tuples.py
CodSpeed Performance Gauge
N/A
N/A34.7 µs
test_structure_hetero_tuple[False-BaseConverter]
bench/test_tuples.py
CodSpeed Performance Gauge
N/A
N/A40.5 µs
test_structure_homo_tuple[False-Converter]
bench/test_tuples.py
CodSpeed Performance Gauge
N/A
N/A38.1 µs
test_structure_homo_tuple[False-BaseConverter]
bench/test_tuples.py
CodSpeed Performance Gauge
N/A
N/A38.4 µs
test_structure_hetero_tuple[False-Converter]
bench/test_tuples.py
CodSpeed Performance Gauge
N/A
N/A40 µs
test_structure_homo_tuple[True-BaseConverter]
bench/test_tuples.py
CodSpeed Performance Gauge
N/A
N/A36 µs
test_unstructure_hetero_tuple[BaseConverter]
bench/test_tuples.py
CodSpeed Performance Gauge
N/A
N/A14.8 µs
test_structure_hetero_tuple[True-Converter]
bench/test_tuples.py
CodSpeed Performance Gauge
N/A
N/A42.2 µs
test_unstruct_attrs_deep_nest[UnstructureStrategy.AS_TUPLE-BaseConverter]
bench/test_attrs_nested.py
CodSpeed Performance Gauge
+2%
5.7 ms5.5 ms
test_unstruct_attrs_deep_nest[UnstructureStrategy.AS_TUPLE-Converter]
bench/test_attrs_nested.py
CodSpeed Performance Gauge
+2%
5.6 ms5.5 ms
test_structure_attrs_mappings[BaseConverter]
bench/test_attrs_collections.py
CodSpeed Performance Gauge
+2%
268.5 µs263.8 µs
test_unstructure_simple_enum[MsgspecJsonConverter]
bench/test_enums.py
CodSpeed Performance Gauge
+2%
19.4 µs19.1 µs
test_unstructure_attrs_mappings[UnstructureStrategy.AS_DICT-BaseConverter]
bench/test_attrs_collections.py
CodSpeed Performance Gauge
+2%
252.2 µs248.4 µs
test_unstructure_attrs_mappings[UnstructureStrategy.AS_TUPLE-BaseConverter]
bench/test_attrs_collections.py
CodSpeed Performance Gauge
+1%
248.3 µs245 µs
test_unstructure_simple_int_enum[Converter]
bench/test_enums.py
CodSpeed Performance Gauge
+1%
19.8 µs19.6 µs
test_unstruct_attrs_deep_nest[UnstructureStrategy.AS_DICT-BaseConverter]
bench/test_attrs_nested.py
CodSpeed Performance Gauge
+1%
5.7 ms5.6 ms
test_unstructure_simple_int_enum[OrjsonConverter]
bench/test_enums.py
CodSpeed Performance Gauge
+1%
19.5 µs19.3 µs
test_unstructure_simple_enum[Converter]
bench/test_enums.py
CodSpeed Performance Gauge
+1%
19.3 µs19.1 µs
test_unstructure_simple_int_enum[MsgspecJsonConverter]
bench/test_enums.py
CodSpeed Performance Gauge
+1%
19.6 µs19.4 µs
test_unstructure_attrs_primitives[UnstructureStrategy.AS_TUPLE-Converter]
bench/test_attrs_primitives.py
CodSpeed Performance Gauge
+1%
66.7 µs66.1 µs
test_unstructure_attrs_primitives[UnstructureStrategy.AS_TUPLE-BaseConverter]
bench/test_attrs_primitives.py
CodSpeed Performance Gauge
+1%
66.6 µs66 µs
test_structure_attrs_primitives[UnstructureStrategy.AS_DICT-Converter]
bench/test_attrs_primitives.py
CodSpeed Performance Gauge
+1%
58.3 µs57.7 µs
test_unstructure_attrs_primitives[UnstructureStrategy.AS_DICT-BaseConverter]
bench/test_attrs_primitives.py
CodSpeed Performance Gauge
+1%
65.5 µs64.9 µs

Commits

Click on a commit to change the comparison range
Base
main
7d18f81
+0.24%
Introduce benchmarks for tuples
483ac28
8 days ago
by Tinche
© 2026 CodSpeed Technology
Home Terms Privacy Docs