Avatar for the pydantic user
pydantic
pydantic-core
BlogDocsChangelog

Introduce a schema variant to reuse Validators, Serializers and CoreSchema

#1414Closed
Comparing
boxy/validator_serializer_reuse
(
f6508d2
) with
main
(
ba8eab4
)
CodSpeed Performance Gauge
0%
Untouched
155

Benchmarks

155 total
test_to_string_direct
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
-5%
18.5 µs19.5 µs
test_datetime
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+4%
27.6 µs26.5 µs
test_generator_rust
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-3%
19.9 µs20.6 µs
test_arguments
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-3%
25.4 µs26.3 µs
test_chain_nested_functions
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+3%
28.4 µs27.6 µs
test_decimal_from_string_pyd
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDecimal
CodSpeed Performance Gauge
+3%
32.8 µs32 µs
test_complete_core_isinstance
tests/benchmarks/test_complete_benchmark.py
CodSpeed Performance Gauge
-2%
1.8 ms1.8 ms
test_strict_union_error_core
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUnion
CodSpeed Performance Gauge
+2%
32.7 µs32 µs
test_smart_union_core
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUnion
CodSpeed Performance Gauge
-2%
15.5 µs15.8 µs
test_bool_core
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-2%
22.4 µs22.8 µs
test_date_format_function
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
-2%
50.8 µs51.6 µs
test_validate_literal[json-few_mixed]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-1%
18.2 µs18.5 µs
test_date_format
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
-1%
50.3 µs51.1 µs
test_core_dict_filter
tests/benchmarks/test_serialization_micro.py::TestBenchmarkSimpleModel
CodSpeed Performance Gauge
+1%
78.5 µs77.4 µs
test_dict_of_ints_core_json
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-1%
1.4 ms1.4 ms
test_core_json_fs
tests/benchmarks/test_micro_benchmarks.py::TestModelLarge
CodSpeed Performance Gauge
+1%
159.4 µs157.3 µs
test_strict_int_fails
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-1%
26.2 µs26.5 µs
test_uuid_from_uuid_pyd
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUUID
CodSpeed Performance Gauge
-1%
14.5 µs14.7 µs
test_enum_int_python
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-1%
23.8 µs24.1 µs
test_enum_str_core
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-1%
14.8 µs15 µs
test_smart_union_coerce_core
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUnion
CodSpeed Performance Gauge
-1%
17.1 µs17.3 µs
test_core_raw
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateTime
CodSpeed Performance Gauge
-1%
14 µs14.1 µs
test_list_of_ints_core_py
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-1%
488.6 µs493.6 µs
test_tagged_union_int_keys_json
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-1%
26.2 µs26.4 µs
test_core_future_str
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateX
CodSpeed Performance Gauge
-1%
17.3 µs17.5 µs

Commits

Click on a commit to change the comparison range
Base
main
ba8eab4
-0.29%
WIP
f6508d2
2 years ago
by BoxyUwU
© 2026 CodSpeed Technology
Home Terms Privacy Docs