pydantic
pydantic
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Add default factory with validated data to PrivateAttr
#11685
Comparing
andresliszt:add/validated-data-to-private-factory
(
0f435d3
) with
main
(
61a0673
)
CodSpeed Performance Gauge
0%
Untouched
212
Ignored
2
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Untouched
Ignored
214 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_north_star_validate_json
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
+4%
36 ms
34.7 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_list_of_strs_json_cached
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+3%
313.1 µs
304.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_validators_build
tests/benchmarks/test_validators_build.py
CodSpeed Performance Gauge
+3%
1,011.6 µs
983.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_raise_error_custom
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+3%
41 µs
40 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_simple_model_validation[__init__]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
+3%
39.2 µs
38.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_list_of_ints_core_json
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
760.9 µs
744.1 µs
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
+2%
40.1 µs
39.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_dict_of_ints_core_json
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
1.4 ms
1.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_model_list_core_json
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
170 µs
168 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_core_future
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateX
CodSpeed Performance Gauge
+1%
15.9 µs
15.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_north_star_dump_python
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
+1%
17.5 ms
17.3 ms
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
+1%
16.6 µs
16.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_smart_union_coerce_core
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUnion
CodSpeed Performance Gauge
+1%
19.5 µs
19.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_url_core
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
26.1 µs
25.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_north_star_dump_json
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
+1%
28.2 ms
27.9 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
+1%
15.5 µs
15.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
+1%
20.3 µs
20.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
+1%
17.5 µs
17.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_strict_union_core
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUnion
CodSpeed Performance Gauge
+1%
18.1 µs
18 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_nested_schema_using_defs
pydantic-core/tests/benchmarks/test_nested_benchmark.py
CodSpeed Performance Gauge
+1%
15 ms
15 ms
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
+1%
17.1 µs
17 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_north_star_json_dumps
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
24.6 ms
24.5 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_validate_literal[json-few_large_strings]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
18 µs
17.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_failed_rebuild
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
244.2 µs
243 µ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
0%
19 µs
18.9 µs
1
2
3
4
5
...
9
Commits
Click on a commit to change the comparison range
Base
main
61a0673
-0.12%
Add default factory with validated data to PrivateAttr
0f435d3
1 year ago
by andresliszt
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs