pydantic
pydantic
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Make validation `Extra` immutable, like with serialization
#13081
Merged
Comparing
dh/no-rebind-extra
(
f20a472
) with
main
(
b7e81cf
)
CodSpeed Performance Gauge
-16%
Regression
1
Untouched
214
Ignored
2
Different runtime environments detected
Some benchmarks with significant performance changes were compared across different runtime environments, which may affect the accuracy of the results.
Learn more about regression causes
.
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Regression
Untouched
Ignored
217 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_simple_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py
CodSpeed Performance Gauge
-16%
635.2 µs
757.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_definition_model_core
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+4%
1.1 ms
1 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_core_raw
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUUID
CodSpeed Performance Gauge
+3%
15.7 µs
15.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_validate_literal[python-few_ints]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+3%
16.3 µs
15.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_validate_literal[json-few_small_strings]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+3%
18 µs
17.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_uuid_from_uuid_pyd
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUUID
CodSpeed Performance Gauge
+3%
16.6 µs
16.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_validate_literal[python-few_str_enum]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+3%
17 µs
16.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_tuple_many_variable
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+3%
19.5 µs
19 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_validate_literal[json-few_ints]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+3%
17.7 µs
17.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_validate_literal[json-many_small_strings]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
17.9 µs
17.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_validators_build
tests/benchmarks/test_validators_build.py
CodSpeed Performance Gauge
+2%
1,014 µs
989.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_core_str
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUUID
CodSpeed Performance Gauge
+2%
21.9 µs
21.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_validate_literal[json-few_mixed]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
20.6 µs
20.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_core_raw
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateTime
CodSpeed Performance Gauge
+2%
15.8 µs
15.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_core_python
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateTime
CodSpeed Performance Gauge
+2%
27.9 µs
27.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_validate_literal[json-many_ints]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
17.7 µs
17.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_date_from_datetime
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateX
CodSpeed Performance Gauge
+2%
19.2 µs
18.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_enum_str_core
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
16.6 µs
16.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_nested_model_validation[__init__]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
+2%
51.3 µs
50.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_core_string_lax
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
15.4 µs
15.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_core_future_str
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateX
CodSpeed Performance Gauge
+2%
18.1 µs
17.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_tuple_many_positional
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
19.5 µs
19.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_validate_literal[python-many_small_strings]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
16.5 µs
16.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_validate_literal[python-many_ints]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
16.2 µs
15.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_validate_literal[python-few_large_strings]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
16.7 µs
16.3 µs
1
2
3
4
5
...
9
Commits
Click on a commit to change the comparison range
Base
main
b7e81cf
+0.03%
Make validation `Extra` immutable, like with serialization
f9227ea
1 month ago
by davidhewitt
-16.14%
tidy up accessor type aliases
f20a472
1 month ago
by davidhewitt
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs