python-attrs
cattrs
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Introduce tuple structuring hook factories
#737
Comparing
tin/tuple-factories
(
52e553a
) with
main
(
ec6f824
)
CodSpeed Performance Gauge
+57%
Improvement
2
Untouched
62
No successful run was found on
main
(
2ebbe30
) during the generation of this report, so
ec6f824
was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Improvement
Untouched
64 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_structure_hetero_tuple[False-Converter]
bench/test_tuples.py
CodSpeed Performance Gauge
+57%
40 µs
25.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_structure_hetero_tuple[True-Converter]
bench/test_tuples.py
CodSpeed Performance Gauge
+34%
42.5 µs
31.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_structure_homo_tuple[True-Converter]
bench/test_tuples.py
CodSpeed Performance Gauge
+4%
34.7 µs
33.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_unstructure_attrs_nested[UnstructureStrategy.AS_DICT-Converter]
bench/test_attrs_nested.py
CodSpeed Performance Gauge
+4%
32.9 µs
31.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_unstructure_hetero_tuple[BaseConverter]
bench/test_tuples.py
CodSpeed Performance Gauge
+2%
14.8 µs
14.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_unstructure_simple_str_enum[MsgspecJsonConverter]
bench/test_enums.py
CodSpeed Performance Gauge
+2%
16.1 µs
15.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_unstructure_attrs_nested[UnstructureStrategy.AS_DICT-BaseConverter]
bench/test_attrs_nested.py
CodSpeed Performance Gauge
+1%
57.1 µs
56.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_unstructure_simple_str_enum[OrjsonConverter]
bench/test_enums.py
CodSpeed Performance Gauge
+1%
16 µs
15.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_unstructure_simple_str_enum[Converter]
bench/test_enums.py
CodSpeed Performance Gauge
+1%
16 µs
15.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_unstructure_int[Converter]
bench/test_primitives.py
CodSpeed Performance Gauge
+1%
16.1 µs
15.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_unstructure_simple_str_enum[BaseConverter]
bench/test_enums.py
CodSpeed Performance Gauge
+1%
15.4 µs
15.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_unstructure_hetero_tuple[Converter]
bench/test_tuples.py
CodSpeed Performance Gauge
+1%
17.3 µs
17.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_structure_simple_enum[BaseConverter]
bench/test_enums.py
CodSpeed Performance Gauge
0%
21.6 µs
21.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_structure_simple_int_enum[BaseConverter]
bench/test_enums.py
CodSpeed Performance Gauge
0%
21.2 µs
21.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_structure_hetero_tuple[False-BaseConverter]
bench/test_tuples.py
CodSpeed Performance Gauge
0%
40.7 µs
40.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_unstructure_int[BaseConverter]
bench/test_primitives.py
CodSpeed Performance Gauge
0%
15.4 µs
15.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_unstructure_float[Converter]
bench/test_primitives.py
CodSpeed Performance Gauge
0%
16 µs
16 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_structure_homo_tuple[False-BaseConverter]
bench/test_tuples.py
CodSpeed Performance Gauge
0%
38.3 µs
38.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_structure_simple_str_enum[BaseConverter]
bench/test_enums.py
CodSpeed Performance Gauge
-1%
21.3 µs
21.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_structure_simple_int_enum[MsgspecJsonConverter]
bench/test_enums.py
CodSpeed Performance Gauge
-1%
22.2 µs
22.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_structure_simple_int_enum[Converter]
bench/test_enums.py
CodSpeed Performance Gauge
-1%
22 µs
22.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_structure_hetero_tuple[True-BaseConverter]
bench/test_tuples.py
CodSpeed Performance Gauge
-1%
46.4 µs
46.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_unstructure_float[BaseConverter]
bench/test_primitives.py
CodSpeed Performance Gauge
-1%
15.3 µs
15.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_structure_homo_tuple[True-BaseConverter]
bench/test_tuples.py
CodSpeed Performance Gauge
-1%
36 µs
36.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_unstructure_simple_enum[OrjsonConverter]
bench/test_enums.py
CodSpeed Performance Gauge
-1%
19.1 µs
19.2 µs
1
2
3
Commits
Click on a commit to change the comparison range
Base
main
ec6f824
+55.08%
Introduce tuple structuring hook factories
2fa4266
7 days ago
by Tinche
+1.6%
Add test for coverage
52e553a
7 days ago
by Tinche
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs