pydantic
pydantic
BlogDocsChangelog

validate JSON model data by iteration

#12550
Comparing
dh/validate-by-iteration
(
c8387cc
) with
main
(
b834e98
)
CodSpeed Performance Gauge
-10%
Improvements
1
Regressions
1
Untouched
209
Ignored
2

Benchmarks

Failed

test_build_schema
pydantic-core/tests/benchmarks/test_complete_benchmark.py
Regression
CodSpeed Performance Gauge
-10%
274 µs303.6 µs

Improved

test_core_json_fs
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestModelLarge
CodSpeed Performance Gauge
+41%
174.6 µs123.8 µs

Passed

test_dataclass_serialization_json
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+2%
25.8 µs25.4 µs
test_uuid_from_uuid_core
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUUID
CodSpeed Performance Gauge
+2%
15.4 µs15.2 µs
test_core_future_str
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateX
CodSpeed Performance Gauge
+1%
17.9 µs17.7 µs
test_complete_core_isinstance
pydantic-core/tests/benchmarks/test_complete_benchmark.py
CodSpeed Performance Gauge
+1%
1.8 ms1.8 ms
test_json_direct_list_str
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
183.9 µs181.4 µs
test_model_json_serialization
tests/benchmarks/test_model_serialization.py
CodSpeed Performance Gauge
+1%
55.7 µs55 µs
test_enum_int_core
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
16.2 µs16 µs
test_core_python
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateTime
CodSpeed Performance Gauge
+1%
28.6 µs28.3 µs
test_complete_core_json
pydantic-core/tests/benchmarks/test_complete_benchmark.py
CodSpeed Performance Gauge
+1%
425.1 µs420.2 µs
test_core_model_py
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
27.3 µs27 µs
test_date_from_datetime_str
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateX
CodSpeed Performance Gauge
+1%
20.3 µs20.1 µs
test_date_from_str
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateX
CodSpeed Performance Gauge
+1%
17.8 µs17.6 µs
test_core_raw
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUUID
CodSpeed Performance Gauge
+1%
16.3 µs16.1 µs
test_uuid_from_uuid_pyd
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUUID
CodSpeed Performance Gauge
+1%
16.4 µs16.2 µs
test_isinstance_string_lax_false
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
17.2 µs17 µs
test_validate_literal[python-few_large_strings]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
16.5 µs16.3 µs
test_decimal_from_string_core
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDecimal
CodSpeed Performance Gauge
+1%
24.8 µs24.6 µs
test_model_exclude_unset_false
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
31.5 µs31.2 µs
test_complete_core_root_json
pydantic-core/tests/benchmarks/test_complete_benchmark.py
CodSpeed Performance Gauge
+1%
432.5 µs428.2 µs
test_isinstance_string_strict_true
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
15.3 µs15.1 µs
test_model_exclude_unset_true
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
36.9 µs36.6 µs
test_core_raw
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateTime
CodSpeed Performance Gauge
+1%
15.6 µs15.5 µs
test_smart_union_coerce_core
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUnion
CodSpeed Performance Gauge
+1%
19.4 µs19.2 µs
test_json_any_list_str
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
238.7 µs236.5 µs
test_complete_core_error
pydantic-core/tests/benchmarks/test_complete_benchmark.py
CodSpeed Performance Gauge
+1%
1.8 ms1.8 ms
test_enum_str_python
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
25.3 µs25.1 µs
test_core_string_lax_wrong
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
29.1 µs28.8 µs
test_isinstance_string_lax_true
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
15.3 µs15.2 µs
test_strict_union_error_core
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUnion
CodSpeed Performance Gauge
+1%
34.7 µs34.4 µs
test_date_from_date
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateX
CodSpeed Performance Gauge
+1%
15.5 µs15.4 µs
test_uuid_from_string_core
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUUID
CodSpeed Performance Gauge
+1%
32.9 µs32.6 µs
test_to_string_direct
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
20.1 µs19.9 µs
test_core_future
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateTime
CodSpeed Performance Gauge
+1%
26.4 µs26.2 µs
test_bool_core
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
23.9 µs23.7 µs
test_getattr
tests/benchmarks/test_attribute_access.py
CodSpeed Performance Gauge
+1%
63.2 µs62.7 µs
test_uuid
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
25.3 µs25.1 µs
test_list_of_ints_core_py
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
526.1 µs522.5 µs
test_validate_literal[python-few_str_enum]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
16.7 µs16.6 µs
test_chain_two_functions
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
29.8 µs29.6 µs
test_strict_union_core
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUnion
CodSpeed Performance Gauge
+1%
18 µs17.9 µs
test_core_model_json_extra
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
30.1 µs29.9 µs
test_enum_int_python
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
26.9 µs26.8 µs
test_north_star_dump_python
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
+1%
17.5 ms17.4 ms
test_core_string_strict
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
15.2 µs15.1 µs
test_to_string_format
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
23.7 µs23.5 µs
test_decimal_from_string_limit
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDecimal
CodSpeed Performance Gauge
+1%
19.4 µs19.3 µs
test_with_default
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
24.8 µs24.7 µs
test_isinstance_json
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
20.7 µs20.6 µs
test_core_future_str
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateTime
CodSpeed Performance Gauge
+1%
20.2 µs20.1 µs
test_dont_raise_error_no_info
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
19.8 µs19.7 µs
test_validate_literal[json-few_str_enum]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
21.8 µs21.7 µs
test_core_str
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUUID
CodSpeed Performance Gauge
+1%
32.8 µs32.6 µs
test_core_model_json
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
26.2 µs26 µs
test_validate_literal[python-few_ints]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
16 µs15.9 µs
test_date_format_function_no_info
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
52.5 µs52.2 µs
test_validate_literal[python-many_small_strings]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
16.3 µs16.2 µs
test_filter
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
44.2 µs44 µs
test_smart_union_core
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUnion
CodSpeed Performance Gauge
+1%
17.6 µs17.5 µs
test_enum_str_core
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
16.5 µs16.4 µs
test_list_of_models_serialization
tests/benchmarks/test_model_serialization.py
CodSpeed Performance Gauge
+1%
57.3 µs57 µs
test_uuid_from_string_pyd
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUUID
CodSpeed Performance Gauge
0%
49.3 µs49 µs
test_core_model_py_extra
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
0%
30.3 µs30.2 µs
test_int_error
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
43.6 µs43.4 µs
test_raise_error_custom
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
39.7 µs39.5 µs
test_url_core
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
25.6 µs25.4 µs
test_generator_rust
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
19.4 µs19.3 µs
test_core_str
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateTime
CodSpeed Performance Gauge
0%
20 µs19.9 µs
test_list_of_dict_models_core
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
96.7 µs96.3 µs
test_raise_error_value_error
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
37.7 µs37.5 µs
test_dont_raise_error
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
21.8 µs21.8 µs
test_isinstance_string_strict_false
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
16.8 µs16.7 µs
test_bytes_core
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
15.2 µs15.1 µs
test_validate_literal[json-many_ints]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
17.2 µs17.2 µs
test_validate_literal[json-few_small_strings]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
17.6 µs17.5 µs
test_generator_python
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
24.7 µs24.7 µs
test_import_basemodel
tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
0%
26.8 µs26.7 µs
test_chain_function
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
25.3 µs25.2 µs
test_core_dict
pydantic-core/tests/benchmarks/test_serialization_micro.py::TestBenchmarkSimpleModel
CodSpeed Performance Gauge
0%
73.5 µs73.3 µs
test_strict_int_fails
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
28.6 µs28.5 µs
test_core_string_strict_wrong
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
28.7 µs28.6 µs
test_set_of_ints_core_json
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
841.1 µs838.5 µs
test_north_star_json_loads
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
21.5 ms21.4 ms
test_validate_literal[python-few_mixed]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
18.4 µs18.3 µs
test_core_string_strict_wrong_str_e
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
40.4 µs40.2 µs
test_dataclass_to_json
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
0%
39.7 µs39.6 µs
test_variable_tuple
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
19.7 µs19.6 µs
test_core_future
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateX
CodSpeed Performance Gauge
0%
18.4 µs18.4 µs
test_tuple_many_positional
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
19.4 µs19.4 µs
test_tuple_many_variable
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
19.5 µs19.4 µs
test_positional_tuple
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
20 µs19.9 µs
test_complex_model_validation[model_validate]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
0%
51.5 µs51.4 µs
test_decimal_from_string_pyd
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDecimal
CodSpeed Performance Gauge
0%
34.3 µs34.2 µs
test_set_of_ints_core_length
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
741.4 µs739.6 µs
test_json_direct_list_int
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
0%
152.9 µs152.5 µs
test_import_field
tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
0%
26.3 µs26.3 µs
test_set_of_ints_core
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
720.1 µs718.5 µs
test_dataclass_serialization_python
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
0%
22.9 µs22.8 µs
test_json_any_list_int
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
0%
202.1 µs201.7 µs
test_chain_list
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
25.9 µs25.9 µs
test_datetime_seconds
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
0%
26.2 µs26.1 µs
test_core_string_lax
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
15.2 µs15.2 µs
test_core_dict_filter
pydantic-core/tests/benchmarks/test_serialization_micro.py::TestBenchmarkSimpleModel
CodSpeed Performance Gauge
0%
80.4 µs80.3 µs
test_validate_literal[json-few_ints]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
17.2 µs17.2 µs
test_validate_literal[json-many_large_strings]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
17.7 µs17.6 µs
test_validate_literal[json-few_large_strings]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
17.7 µs17.7 µs
test_function_wrap_json
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
0%
32.8 µs32.7 µs
test_strict_int
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
15.2 µs15.1 µs
test_python_json_list_int
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
0%
161.7 µs161.4 µs
test_int_range
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
16.2 µs16.1 µs
test_validate_literal[python-few_small_strings]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
16.3 µs16.3 µs
test_ser_list_of_lists
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
0%
1.4 ms1.4 ms
test_complex_model_serialization
tests/benchmarks/test_model_serialization.py
CodSpeed Performance Gauge
0%
48.1 µs48.1 µs
test_validate_literal[python-many_ints]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
16 µs15.9 µs
test_python_json_list_str
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
0%
167 µs166.7 µs
test_chain_nested_functions
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
29.5 µs29.4 µs
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_generics.py
CodSpeed Performance Gauge
0%
82.3 ms82.2 ms
test_small_class_core_dict
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
19.9 µs19.8 µs
test_python_json_list_none
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
0%
133.3 µs133.1 µs
test_to_json_list_of_lists
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
0%
1.8 ms1.8 ms
test_validators_build
tests/benchmarks/test_validators_build.py
CodSpeed Performance Gauge
0%
1 ms1 ms
test_complete_core_root
pydantic-core/tests/benchmarks/test_complete_benchmark.py
CodSpeed Performance Gauge
0%
278.4 µs278.1 µs
test_datetime
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
0%
28.9 µs28.9 µs
test_definition_in_tree
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
781.1 µs780.2 µs
test_datetime_milliseconds
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
0%
26.3 µs26.2 µs
test_arguments
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
25.7 µs25.7 µs
test_many_models_core_dict
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
1 ms1 ms
test_definition_out_of_tree
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
1 ms1 ms
test_core_root_model
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
36.9 µs36.9 µs
test_core_json_fs
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkSimpleModel
CodSpeed Performance Gauge
0%
108.9 µs108.9 µs
test_set_of_ints_core_duplicates
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
332.6 µs332.5 µs
test_core_python
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUUID
CodSpeed Performance Gauge
0%
27.6 µs27.6 µs
test_tagged_union_int_keys_json
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
25.2 µs25.2 µs
test_frozenset_of_ints_duplicates_core
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
149.7 µs149.7 µs
test_core_json
pydantic-core/tests/benchmarks/test_serialization_micro.py::TestBenchmarkSimpleModel
CodSpeed Performance Gauge
0%
82.7 µs82.7 µs
test_dict_of_ints_core
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
1 ms1 ms
test_north_star_dump_json
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
30.1 ms30.1 ms
test_isinstance_basemodel
tests/benchmarks/test_isinstance.py
CodSpeed Performance Gauge
0%
5.1 ms5.1 ms
test_nested_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py
CodSpeed Performance Gauge
0%
1.4 ms1.4 ms
test_multi_host_url_core
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
33.5 µs33.5 µs
test_complete_core_serializer_to_json
pydantic-core/tests/benchmarks/test_complete_benchmark.py
CodSpeed Performance Gauge
0%
283.4 µs283.4 µs
test_field_function_validator
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
338.4 µs338.5 µs
test_tagged_union_int_keys_python
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
21.9 µs21.9 µs
test_model_list_core_json
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
0%
172.1 µs172.2 µs
test_list_of_any_core_py
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
102.4 µs102.4 µs
test_date_format_function
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
0%
53.7 µs53.7 µs
test_simple_model_schema_lots_of_fields_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
17.5 ms17.6 ms
test_simple_model_serialization
tests/benchmarks/test_model_serialization.py
CodSpeed Performance Gauge
0%
36.5 µs36.6 µs
test_nested_recursive_generic_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py
CodSpeed Performance Gauge
0%
1.3 ms1.3 ms
test_model_validators_serializers
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
802.3 µs802.9 µs
test_failed_rebuild
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
238.3 µs238.5 µs
test_dict_of_any_core
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
655.9 µs656.7 µs
test_int_range_json
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
17.3 µs17.3 µs
test_date_from_datetime
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateX
CodSpeed Performance Gauge
0%
23.5 µs23.5 µs
test_construct_dataclass_schema
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
1.1 ms1.1 ms
test_complex_model_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
1.3 ms1.3 ms
test_frozenset_of_ints_core
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
247 µs247.3 µs
test_north_star_json_dumps
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
24.5 ms24.6 ms
test_recursive_discriminated_union_with_base_model
tests/benchmarks/test_model_schema_generation_recursive.py
CodSpeed Performance Gauge
0%
1.4 ms1.4 ms
test_generic_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py
CodSpeed Performance Gauge
0%
683.7 µs684.9 µs
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_simple.py
CodSpeed Performance Gauge
0%
18.8 ms18.9 ms
test_simple_model_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
618.2 µs619.6 µs
test_core_python_fs
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkSimpleModel
CodSpeed Performance Gauge
0%
71.6 µs71.7 µs
test_small_class_core_model
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
28.5 µs28.6 µs
test_validate_literal[json-few_mixed]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
19.9 µs20 µs
test_list_of_strs_py_cached
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
133.8 µs134.2 µs
test_deeply_nested_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py
CodSpeed Performance Gauge
0%
1.2 ms1.3 ms
test_simple_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py
CodSpeed Performance Gauge
0%
616.2 µs618 µs
test_validate_literal[json-many_small_strings]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
17.6 µs17.6 µs
test_nested_model_validation[__init__]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
0%
52.3 µs52.4 µs
test_nested_model_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
765.7 µs768.1 µs
test_list_of_nullable_core
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
105.1 µs105.4 µs
test_setattr
tests/benchmarks/test_attribute_access.py
CodSpeed Performance Gauge
0%
95 µs95.3 µs
test_complete_core_lax
pydantic-core/tests/benchmarks/test_complete_benchmark.py
CodSpeed Performance Gauge
0%
271.4 µs272.4 µs
test_lots_of_models_with_lots_of_fields
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
1.9 s1.9 s
test_validate_literal[python-many_large_strings]
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
16.4 µs16.5 µs
test_tagged_union_with_callable_discriminator_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
1 ms1 ms
test_schema_build
tests/benchmarks/test_discriminated_unions.py
CodSpeed Performance Gauge
0%
2.6 ms2.6 ms
test_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
0%
787.1 µs790.2 µs
test_nested_model_validation[model_validate]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
0%
49.4 µs49.6 µs
test_model_instance_abc
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
31.1 µs31.3 µs
test_repeated_regex_pattern
tests/benchmarks/test_regex.py
CodSpeed Performance Gauge
0%
60.2 ms60.4 ms
test_complete_core_serializer_to_python
pydantic-core/tests/benchmarks/test_complete_benchmark.py
CodSpeed Performance Gauge
0%
233.6 µs234.8 µs
test_simple_model_validation[__init__]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
0%
38.2 µs38.3 µs
test_complex_model_validation[__init__]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
-1%
51.5 µs51.8 µs
test_complete_core_strict
pydantic-core/tests/benchmarks/test_complete_benchmark.py
CodSpeed Performance Gauge
-1%
253.5 µs254.9 µs
test_function_wrap_python
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
-1%
31.7 µs31.8 µs
test_north_star_validate_python
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
-1%
35.9 ms36.1 ms
test_model_core_json
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUUID
CodSpeed Performance Gauge
-1%
42.2 µs42.4 µs
test_efficiency_with_highly_nested_examples
tests/benchmarks/test_discriminated_unions.py
CodSpeed Performance Gauge
-1%
649.2 µs653.3 µs
test_list_of_models_validation[__init__]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
-1%
77.6 µs78.2 µs
test_nested_schema_using_defs
pydantic-core/tests/benchmarks/test_nested_benchmark.py
CodSpeed Performance Gauge
-1%
15.2 ms15.3 ms
test_definition_model_core
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-1%
1.1 ms1.1 ms
test_simple_model_validation[model_validate]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
-1%
39.8 µs40.1 µs
test_core_python
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestModelLarge
CodSpeed Performance Gauge
-1%
127.7 µs128.8 µs
test_north_star_validate_python_strict
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
-1%
21.9 ms22.1 ms
test_model_instance
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-1%
30.7 µs31 µs
test_tagged_union_with_str_discriminator_schema_generation
tests/benchmarks/test_model_schema_generation.py
CodSpeed Performance Gauge
-1%
991.1 µs1,002.7 µs
test_list_of_models_validation[model_validate]
tests/benchmarks/test_model_validation.py
CodSpeed Performance Gauge
-1%
74.2 µs75.1 µs
test_dict_of_ints_core_json
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-1%
1.3 ms1.3 ms
test_many_models_core_model
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-1%
2.5 ms2.5 ms
test_model_core_json
pydantic-core/tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateTime
CodSpeed Performance Gauge
-1%
31.6 µs32.1 µs
test_nested_schema_inlined
pydantic-core/tests/benchmarks/test_nested_benchmark.py
CodSpeed Performance Gauge
-1%
16.5 ms16.7 ms
test_date_format
pydantic-core/tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
-2%
51.6 µs52.6 µs
test_north_star_validate_json_strict
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
-2%
37.4 ms38.2 ms
test_north_star_validate_json
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
-2%
37.5 ms38.3 ms
test_list_of_strs_json_uncached
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-2%
383.8 µs392.5 µs
test_list_of_strs_json_cached
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-3%
301.2 µs309.5 µs
test_set_of_ints_core_json_duplicates
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-4%
422.4 µs439.3 µs
test_list_of_ints_core_json
pydantic-core/tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-4%
727 µs758.1 µs

Ignored

test_field_validators_serializers
tests/benchmarks/test_model_schema_generation.py
Ignored
CodSpeed Performance Gauge
+17%
1.8 ms1.5 ms
test_nested_model_serialization
tests/benchmarks/test_model_serialization.py
Ignored
CodSpeed Performance Gauge
0%
42.7 µs42.7 µs

Commits

Click on a commit to change the comparison range
Base
main
b834e98
-7.68%
validate JSON model data by iteration
c78668e
8 days ago
by davidhewitt
-2.09%
fix last test
c8387cc
6 days ago
by davidhewitt
© 2025 CodSpeed Technology
Home Terms Privacy Docs