pydantic
pydantic
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Use overloads for `Field` and `PrivateAttr` functions
#10651
Merged
Comparing
fields-func-overloads
(
60e97ce
) with
main
(
0359a21
)
CodSpeed Performance Gauge
0%
Untouched
43
Ignored
2
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Untouched
Ignored
45 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_simple_model_validation[__init__]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
+4%
45 µs
43.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_list_of_models_validation[__init__]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
+1%
101.6 µs
101 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_list_of_models_serialization
tests/benchmarks/test_model_serialization.py
CodSpeed Performance Gauge
+1%
63.9 µs
63.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_list_of_models_validation[model_validate]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
0%
101 µs
100.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_model_validators_serializers
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
1.1 ms
1.1 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_construct_dataclass_schema
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
2.2 ms
2.2 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_nested_model_validation[model_validate]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
0%
57.3 µs
57.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
1.4 ms
1.4 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_complex_model_serialization
tests/benchmarks/test_model_serialization.py
CodSpeed Performance Gauge
0%
62.3 µs
62.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_tagged_union_with_str_discriminator_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
1.9 ms
1.9 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_simple_model_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
1 ms
1 ms
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
0%
1,000.7 µs
999.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_efficiency_with_highly_nested_examples
tests/benchmarks/test_discriminated_unions.py
CodSpeed Performance Gauge
0%
960.8 µs
959.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_nested_model_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
1.4 ms
1.4 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_nested_recursive_generic_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py
CodSpeed Performance Gauge
0%
2.3 ms
2.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_generic_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py
CodSpeed Performance Gauge
0%
1.2 ms
1.2 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_simple.py
CodSpeed Performance Gauge
0%
31.7 ms
31.6 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_north_star_dump_python
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
17.3 ms
17.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_north_star_validate_python_strict
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
29.3 ms
29.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_complex_model_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
2.8 ms
2.8 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_simple_model_validation[model_validate]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
0%
43.8 µs
43.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_north_star_validate_python
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
44.1 ms
44 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_nested_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py
CodSpeed Performance Gauge
0%
2.3 ms
2.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_lots_of_models_with_lots_of_fields
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
3.5 s
3.5 s
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_complex_model_validation[model_validate]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
0%
58.8 µs
58.8 µs
1
2
Commits
Click on a commit to change the comparison range
Base
main
0359a21
+0.04%
Use overloads for `Field` and `PrivateAttr` functions
1d47dcc
1 year ago
by Viicos
-0.14%
Update mypy tests
f7fbb86
1 year ago
by Viicos
+0.13%
Feedback
8a1c7d6
1 year ago
by Viicos
+0.1%
Disable mypy tests
60e97ce
1 year ago
by Viicos
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs