Avatar for the pydantic user
pydantic
pydantic-core
BlogDocsChangelog

Fix serializing complex values in enums

#1524Merged
Comparing
changhc:fix-complex-infer
(
e1f4bba
) with
main
(
184e7be
)
CodSpeed Performance Gauge
0%
Untouched
155

Benchmarks

155 total
test_to_string_direct
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+6%
19.3 µs18.3 µs
test_small_class_core_model
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+5%
30.1 µs28.7 µs
test_datetime
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+4%
27.5 µs26.5 µs
test_arguments
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+3%
25.1 µs24.3 µs
test_raise_error_custom
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+3%
37.1 µs36.1 µs
test_filter
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+2%
42.2 µs41.2 µs
test_field_function_validator
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
366.8 µs359.5 µs
test_dataclass_serialization_python
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
22.8 µs22.6 µs
test_core_model_py_extra
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
30.7 µs30.4 µs
test_many_models_core_model
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
3.1 ms3 ms
test_model_exclude_unset_false
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
29.1 µs28.8 µs
test_core_json_fs
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkSimpleModel
CodSpeed Performance Gauge
+1%
117.5 µs116.4 µs
test_date_format
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
51.8 µs51.3 µs
test_model_instance
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
30.5 µs30.3 µs
test_tagged_union_int_keys_json
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
26.3 µs26.1 µs
test_list_of_ints_core_json
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
736.7 µs731.1 µs
test_validate_literal[json-few_small_strings]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
15.6 µs15.5 µs
test_validate_literal[json-few_large_strings]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
15.8 µs15.7 µs
test_small_class_core_dict
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
19.2 µs19.1 µs
test_validate_literal[json-many_small_strings]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
15.6 µs15.5 µs
test_core_model_py
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
27.3 µs27.1 µs
test_list_of_ints_core_py
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
496.4 µs493.9 µs
test_core_dict
tests/benchmarks/test_serialization_micro.py::TestBenchmarkSimpleModel
CodSpeed Performance Gauge
0%
76 µs75.7 µs
test_definition_model_core
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
1.2 ms1.2 ms
test_build_schema
tests/benchmarks/test_complete_benchmark.py
CodSpeed Performance Gauge
0%
839 µs835.6 µs

Commits

Click on a commit to change the comparison range
Base
main
184e7be
-0.14%
fix serializing complex
ef007bb
1 year ago
by changhc
-0.03%
Merge branch 'main' into fix-complex-infer
e1f4bba
1 year ago
by changhc
© 2026 CodSpeed Technology
Home Terms Privacy Docs