Avatar for the pydantic user
pydantic
pydantic
BlogDocsChangelog

Do not duplicate metadata on model rebuild

#11902Merged
Comparing
11870-2.11-fix
(
cb10455
) with
v2.11-fixes
(
1f967d7
)
CodSpeed Performance Gauge
0%
Untouched
46
Ignored
2

Benchmarks

48 total
test_north_star_validate_python_strict
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
+4%
23.6 ms22.6 ms
test_efficiency_with_highly_nested_examples
tests/benchmarks/test_discriminated_unions.py
CodSpeed Performance Gauge
+4%
715 µs690.7 µs
test_list_of_models_validation[__init__]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
+3%
82.3 µs79.6 µs
test_north_star_validate_python
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
+3%
38.9 ms37.9 ms
test_north_star_validate_json_strict
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
+2%
39.1 ms38.3 ms
test_nested_model_validation[__init__]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
+2%
53.2 µs52.2 µs
test_north_star_validate_json
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
+2%
39.2 ms38.4 ms
test_complex_model_validation[__init__]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
+2%
50.3 µs49.3 µs
test_simple_model_validation[__init__]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
+2%
37.4 µs36.8 µs
test_setattr
tests/benchmarks/test_attribute_access.py
CodSpeed Performance Gauge
+2%
90 µs88.6 µs
test_list_of_models_validation[model_validate]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
+2%
79.7 µs78.4 µs
test_nested_model_validation[model_validate]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
+1%
51.1 µs50.4 µs
test_complex_model_validation[model_validate]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
+1%
51.7 µs51.2 µs
test_simple_model_validation[model_validate]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
+1%
39.7 µs39.5 µs
test_isinstance_basemodel
tests/benchmarks/test_isinstance.py
CodSpeed Performance Gauge
0%
26.6 ms26.5 ms
test_list_of_models_serialization
tests/benchmarks/test_model_serialization.py
CodSpeed Performance Gauge
0%
55.2 µs55 µs
test_complex_model_serialization
tests/benchmarks/test_model_serialization.py
CodSpeed Performance Gauge
0%
43.9 µs43.8 µs
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_simple.py
CodSpeed Performance Gauge
0%
19.9 ms19.9 ms
test_model_json_serialization
tests/benchmarks/test_model_serialization.py
CodSpeed Performance Gauge
0%
49.5 µs49.4 µs
test_failed_rebuild
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
216.6 µs216.4 µs
test_north_star_json_loads
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
19.6 ms19.6 ms
test_north_star_json_dumps
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
23.6 ms23.6 ms
test_getattr
tests/benchmarks/test_attribute_access.py
CodSpeed Performance Gauge
0%
54.7 µs54.8 µs
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_generics.py
CodSpeed Performance Gauge
0%
84 ms84.2 ms
test_import_field
tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
0%
26 µs26.1 µs

Commits

Click on a commit to change the comparison range
Base
main
1f967d7
-0.1%
Do not duplicate metadata on model rebuild
301bbde
9 months ago
by Viicos
-0.03%
Fixup
cb10455
9 months ago
by Viicos
© 2026 CodSpeed Technology
Home Terms Privacy Docs