pydantic
pydantic
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Make `__signature__` lazy for dataclasses, too
#10832
Merged
Comparing
lazy-sig-dcs
(
c714536
) with
main
(
783a62c
)
CodSpeed Performance Gauge
+6%
Improvement
1
Untouched
42
Ignored
2
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Improvement
Untouched
Ignored
45 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_construct_dataclass_schema
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
+6%
2.2 ms
2.1 ms
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%
44.8 µs
43.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
0%
61.5 µs
61.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.3 ms
1.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_import_basemodel
tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
0%
26.1 µs
26 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_complex_model_serialization
tests/benchmarks/test_model_serialization.py
CodSpeed Performance Gauge
0%
63.2 µs
63 µs
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_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_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_generic_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py
CodSpeed Performance Gauge
0%
1.1 ms
1.1 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.6 s
3.6 s
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
0%
41.9 ms
41.8 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%
940.2 µs
938 µ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
0%
904.9 µs
902.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_import_field
tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
0%
25.4 µs
25.4 µ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
0%
2 ms
2 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_schema_build
tests/benchmarks/test_discriminated_unions.py
CodSpeed Performance Gauge
0%
3.5 ms
3.5 ms
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
0%
101.1 µs
100.9 µ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.3 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
0%
1.6 ms
1.6 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
0%
2 ms
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.8 ms
31.7 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_simple_model_serialization
tests/benchmarks/test_model_serialization.py
CodSpeed Performance Gauge
0%
34.5 µs
34.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_generics.py
CodSpeed Performance Gauge
0%
262.2 ms
261.9 ms
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%
59.6 µs
59.5 µs
1
2
Commits
Click on a commit to change the comparison range
Base
main
783a62c
+6.01%
make signature lazy for dataclasses as well
c714536
1 year ago
by sydney-runkle
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs