Avatar for the pydantic user
pydantic
pydantic
BlogDocsChangelog

`CoreMetadata` refactor with an emphasis on documentation and reducing complexity

#10675Merged
Comparing
metadata-stuck-on-a-flight
(
2a08ddf
) with
main
(
19f7d41
)
CodSpeed Performance Gauge
+1%
Untouched
43
Ignored
2

Benchmarks

45 total
test_deeply_nested_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py
CodSpeed Performance Gauge
+3%
1.7 ms1.6 ms
test_recursive_discriminated_union_with_base_model
tests/benchmarks/test_model_schema_generation_recursive.py
CodSpeed Performance Gauge
+2%
2.1 ms2.1 ms
test_simple_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py
CodSpeed Performance Gauge
+2%
1,005.3 µs988.6 µs
test_nested_model_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
+2%
1.4 ms1.4 ms
test_tagged_union_with_str_discriminator_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
+2%
1.9 ms1.9 ms
test_simple_model_validation[__init__]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
+2%
43.1 µs42.5 µs
test_generic_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py
CodSpeed Performance Gauge
+1%
1.2 ms1.2 ms
test_nested_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py
CodSpeed Performance Gauge
+1%
2.4 ms2.3 ms
test_nested_recursive_generic_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py
CodSpeed Performance Gauge
+1%
2.4 ms2.3 ms
test_construct_dataclass_schema
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
+1%
2.2 ms2.2 ms
test_lots_of_models_with_lots_of_fields
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
+1%
3.5 s3.5 s
test_model_validators_serializers
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
+1%
1.1 ms1.1 ms
test_simple_model_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
+1%
1 ms1 ms
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_generics.py
CodSpeed Performance Gauge
+1%
256.6 ms254 ms
test_complex_model_validation[__init__]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
+1%
58.2 µs57.6 µs
test_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
+1%
1.4 ms1.4 ms
test_north_star_json_dumps
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
+1%
24.1 ms23.8 ms
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_simple.py
CodSpeed Performance Gauge
+1%
31.7 ms31.5 ms
test_nested_model_validation[__init__]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
+1%
60.4 µs60 µs
test_schema_build
tests/benchmarks/test_discriminated_unions.py
CodSpeed Performance Gauge
+1%
3.5 ms3.4 ms
test_nested_model_validation[model_validate]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
0%
57.2 µs56.9 µs
test_complex_model_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
2.8 ms2.8 ms
test_simple_model_schema_lots_of_fields_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
41.3 ms41.1 ms
test_list_of_models_validation[__init__]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
0%
100.4 µs100.2 µs
test_complex_model_validation[model_validate]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
0%
58.4 µs58.3 µs

Commits

Click on a commit to change the comparison range
Base
main
19f7d41
+0.8%
standardizing dict updates and json schema extra
f9c346d
1 year ago
by sydney-runkle
+0.11%
remove deprecated internal function
e3b7426
1 year ago
by sydney-runkle
-0.17%
adding warnings for lack of mixed composure support for json_schema_extra
a1ebd03
1 year ago
by sydney-runkle
-0.04%
typing fix for 3.13
41bc424
1 year ago
by sydney-runkle
-0.36%
fix circular reference issue
7e479fe
1 year ago
by sydney-runkle
+0.38%
add list of failing tests
aea1c00
1 year ago
by sydney-runkle
-0.02%
maybe this is the way you skip that test?
d8429f1
1 year ago
by sydney-runkle
0%
import fix
d66ae3b
1 year ago
by sydney-runkle
-0.08%
deselect multiple
5f8b5ba
1 year ago
by sydney-runkle
+0.01%
fix test skip formatting
2a08ddf
1 year ago
by sydney-runkle
© 2026 CodSpeed Technology
Home Terms Privacy Docs