python-attrs
cattrs
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Introduce hook factories for enums
#705
Merged
Comparing
tin/enum-factories
(
bcd7a80
) with
main
(
6941413
)
CodSpeed Performance Gauge
+11%
Improvement
3
Untouched
51
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Improvement
Untouched
54 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_structure_simple_enum[BaseConverter]
bench/test_enums.py
CodSpeed Performance Gauge
+11%
30.1 µs
27.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_unstructure_simple_enum[MsgspecJsonConverter]
bench/test_enums.py
CodSpeed Performance Gauge
+11%
27.2 µs
24.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_unstructure_simple_int_enum[MsgspecJsonConverter]
bench/test_enums.py
CodSpeed Performance Gauge
+10%
27.4 µs
24.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_unstructure_simple_enum[Converter]
bench/test_enums.py
CodSpeed Performance Gauge
+10%
27.1 µs
24.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_unstructure_simple_enum[OrjsonConverter]
bench/test_enums.py
CodSpeed Performance Gauge
+10%
27.2 µs
24.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_unstructure_simple_int_enum[OrjsonConverter]
bench/test_enums.py
CodSpeed Performance Gauge
+10%
27.3 µs
24.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_unstructure_attrs_lists[UnstructureStrategy.AS_DICT-Converter]
bench/test_attrs_collections.py
CodSpeed Performance Gauge
+9%
121.9 µs
111.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_unstructure_simple_enum[BaseConverter]
bench/test_enums.py
CodSpeed Performance Gauge
+9%
28.4 µs
26 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_unstructure_simple_int_enum[Converter]
bench/test_enums.py
CodSpeed Performance Gauge
+7%
27.9 µs
26 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_unstructure_attrs_primitives[UnstructureStrategy.AS_DICT-Converter]
bench/test_attrs_primitives.py
CodSpeed Performance Gauge
+7%
57.4 µs
53.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_structure_simple_enum[MsgspecJsonConverter]
bench/test_enums.py
CodSpeed Performance Gauge
+7%
29.6 µs
27.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_structure_simple_enum[OrjsonConverter]
bench/test_enums.py
CodSpeed Performance Gauge
+6%
29.7 µs
27.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_structure_simple_enum[Converter]
bench/test_enums.py
CodSpeed Performance Gauge
+6%
29.6 µs
27.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_unstructure_attrs_lists[UnstructureStrategy.AS_TUPLE-Converter]
bench/test_attrs_collections.py
CodSpeed Performance Gauge
+6%
195.4 µs
184.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_unstructure_attrs_primitives[UnstructureStrategy.AS_DICT-BaseConverter]
bench/test_attrs_primitives.py
CodSpeed Performance Gauge
+6%
87.5 µs
82.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_unstructure_simple_int_enum[BaseConverter]
bench/test_enums.py
CodSpeed Performance Gauge
+5%
28.4 µs
27 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_unstructure_attrs_primitives[UnstructureStrategy.AS_TUPLE-Converter]
bench/test_attrs_primitives.py
CodSpeed Performance Gauge
+5%
87.3 µs
83.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_unstructure_attrs_primitives[UnstructureStrategy.AS_TUPLE-BaseConverter]
bench/test_attrs_primitives.py
CodSpeed Performance Gauge
+4%
87.2 µs
84.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_unstructure_attrs_lists[UnstructureStrategy.AS_DICT-BaseConverter]
bench/test_attrs_collections.py
CodSpeed Performance Gauge
+3%
295.1 µs
285.1 µ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
+3%
39.5 µs
38.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_unstructure_attrs_lists[UnstructureStrategy.AS_TUPLE-BaseConverter]
bench/test_attrs_collections.py
CodSpeed Performance Gauge
+2%
284.7 µs
277.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_structure_attrs_primitives[UnstructureStrategy.AS_DICT-Converter]
bench/test_attrs_primitives.py
CodSpeed Performance Gauge
+1%
73.1 µs
72.3 µ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%
20.4 µs
20.3 µ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%
21.1 µs
21 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_unstructure_simple_str_enum[MsgspecJsonConverter]
bench/test_enums.py
CodSpeed Performance Gauge
0%
21.1 µs
21 µs
1
2
3
Commits
Click on a commit to change the comparison range
Base
main
6941413
+10.54%
Add PR link
bcd7a80
2 months ago
by Tinche
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs