Avatar for the pydantic user
pydantic
pydantic
BlogDocsChangelog

Use the globals of the function when evaluating the return type of serializers and computed_fields

#10929Merged
Comparing
func-rt
(
821184f
) with
main
(
3cb6852
)
CodSpeed Performance Gauge
0%
Untouched
45
Ignored
2

Benchmarks

47 total
test_nested_model_validation[model_validate]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
+1%
58.9 µs58.3 µs
test_import_basemodel
tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
0%
25.6 µs25.5 µs
test_import_field
tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
0%
25.5 µs25.4 µs
test_setattr
tests/benchmarks/test_attribute_access.py
CodSpeed Performance Gauge
0%
87.5 µs87.1 µs
test_nested_model_validation[__init__]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
0%
61.7 µs61.4 µs
test_complex_model_validation[model_validate]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
0%
59.6 µs59.3 µs
test_complex_model_validation[__init__]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
0%
59.3 µs59.1 µs
test_recursive_discriminated_union_with_base_model
tests/benchmarks/test_model_schema_generation_recursive.py
CodSpeed Performance Gauge
0%
2 ms2 ms
test_model_validators_serializers
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
1 ms1 ms
test_simple_model_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
908.2 µs906 µs
test_simple_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py
CodSpeed Performance Gauge
0%
876.9 µs875.1 µs
test_simple_model_validation[model_validate]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
0%
44.1 µs44 µs
test_list_of_models_validation[__init__]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
0%
102 µs101.8 µs
test_simple_model_schema_lots_of_fields_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
38.8 ms38.7 ms
test_deeply_nested_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py
CodSpeed Performance Gauge
0%
1.5 ms1.5 ms
test_simple_model_serialization
tests/benchmarks/test_model_serialization.py
CodSpeed Performance Gauge
0%
34.9 µs34.9 µs
test_tagged_union_with_callable_discriminator_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
2 ms2 ms
test_complex_model_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
2.6 ms2.6 ms
test_lots_of_models_with_lots_of_fields
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
3.3 s3.3 s
test_schema_build
tests/benchmarks/test_discriminated_unions.py
CodSpeed Performance Gauge
0%
3.3 ms3.3 ms
test_model_json_serialization
tests/benchmarks/test_model_serialization.py
CodSpeed Performance Gauge
0%
66.6 µs66.5 µs
test_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
1.3 ms1.3 ms
test_north_star_dump_json
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
31.7 ms31.6 ms
test_nested_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py
CodSpeed Performance Gauge
0%
2.2 ms2.2 ms
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_generics.py
CodSpeed Performance Gauge
0%
254.8 ms254.6 ms

Commits

Click on a commit to change the comparison range
Base
main
3cb6852
-0.09%
Use the globals of the function when evaluating the return type of serializers and computed_fields
821184f
1 year ago
by Viicos
© 2026 CodSpeed Technology
Home Terms Privacy Docs