pydantic
pydantic
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Improve performance of `_typing_extra` module
#11255
Merged
Comparing
typing-extra-perf
(
6f56712
) with
main
(
e9ff00c
)
CodSpeed Performance Gauge
+1%
Untouched
45
Ignored
2
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Untouched
Ignored
47 total
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
+4%
2.7 ms
2.6 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_simple_model_schema_lots_of_fields_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
+4%
39.3 ms
37.7 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
+3%
3.2 s
3.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
+3%
1.3 ms
1.2 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
+2%
2.2 ms
2.1 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_schema_build
tests/benchmarks/test_discriminated_unions.py
CodSpeed Performance Gauge
+2%
3.3 ms
3.3 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
+2%
30.2 ms
29.6 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
+2%
2.2 ms
2.1 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
+2%
1.1 ms
1 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_list_of_models_serialization
tests/benchmarks/test_model_serialization.py
CodSpeed Performance Gauge
+2%
59.4 µs
58.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_recursive_discriminated_union_with_base_model
tests/benchmarks/test_model_schema_generation_recursive.py
CodSpeed Performance Gauge
+2%
2 ms
1.9 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_generics.py
CodSpeed Performance Gauge
+2%
247.9 ms
243.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_tagged_union_with_callable_discriminator_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
+2%
1.8 ms
1.8 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_deeply_nested_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py
CodSpeed Performance Gauge
+2%
1.5 ms
1.5 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
+1%
2.2 ms
2.1 ms
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
+1%
1.3 ms
1.3 ms
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
+1%
1.8 ms
1.7 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
+1%
859.5 µs
851.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_import_field
tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+1%
25.5 µs
25.3 µs
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
+1%
835.9 µs
829.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
+1%
54.9 µs
54.6 µ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
+1%
1 ms
1 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_import_basemodel
tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
+1%
25.6 µs
25.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_model_json_serialization
tests/benchmarks/test_model_serialization.py
CodSpeed Performance Gauge
+1%
61.2 µs
60.9 µs
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%
54.3 µs
54.1 µs
1
2
Commits
Click on a commit to change the comparison range
Base
main
e9ff00c
+0.55%
Improve performance of `_typing_extra` module
c219e23
1 year ago
by Viicos
+0.39%
Feedback
6f56712
1 year ago
by Viicos
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs