pydantic
pydantic
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Add configuration options for validation and JSON serialization of temporal types
#12068
Merged
Comparing
ollz272:implement_ser_json
(
894de9a
) with
main
(
5a6ff49
)
CodSpeed Performance Gauge
0%
Improvements
0
Regressions
0
Untouched
46
New
0
Dropped
0
Ignored
2
Benchmarks
Passed
test_isinstance_basemodel
tests/benchmarks/test_isinstance.py::test_isinstance_basemodel
CodSpeed Performance Gauge
+1%
26.3 ms
26 ms
test_tagged_union_with_callable_discriminator_schema_generation
tests/benchmarks/test_model_schema_generation.py::test_tagged_union_with_callable_discriminator_schema_generation
CodSpeed Performance Gauge
+1%
1.1 ms
1 ms
test_simple_model_serialization
tests/benchmarks/test_model_serialization.py::test_simple_model_serialization
CodSpeed Performance Gauge
0%
33.4 µs
33.3 µs
test_list_of_models_serialization
tests/benchmarks/test_model_serialization.py::test_list_of_models_serialization
CodSpeed Performance Gauge
0%
58.3 µs
58.1 µs
test_complex_model_serialization
tests/benchmarks/test_model_serialization.py::test_complex_model_serialization
CodSpeed Performance Gauge
0%
45.1 µs
45 µs
test_getattr
tests/benchmarks/test_attribute_access.py::test_getattr
CodSpeed Performance Gauge
0%
55.7 µs
55.6 µs
test_north_star_validate_json
tests/benchmarks/test_north_star.py::test_north_star_validate_json
CodSpeed Performance Gauge
0%
39.3 ms
39.3 ms
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_generics.py::test_fastapi_startup_perf
CodSpeed Performance Gauge
0%
84.7 ms
84.6 ms
test_efficiency_with_highly_nested_examples
tests/benchmarks/test_discriminated_unions.py::test_efficiency_with_highly_nested_examples
CodSpeed Performance Gauge
0%
728.6 µs
727.9 µs
test_north_star_validate_json_strict
tests/benchmarks/test_north_star.py::test_north_star_validate_json_strict
CodSpeed Performance Gauge
0%
39.2 ms
39.1 ms
test_north_star_validate_python_strict
tests/benchmarks/test_north_star.py::test_north_star_validate_python_strict
CodSpeed Performance Gauge
0%
23.8 ms
23.8 ms
test_recursive_discriminated_union_with_base_model
tests/benchmarks/test_model_schema_generation_recursive.py::test_recursive_discriminated_union_with_base_model
CodSpeed Performance Gauge
0%
1.5 ms
1.5 ms
test_import_basemodel
tests/benchmarks/test_imports.py::test_import_basemodel
CodSpeed Performance Gauge
0%
26.1 µs
26.1 µs
test_north_star_json_loads
tests/benchmarks/test_north_star.py::test_north_star_json_loads
CodSpeed Performance Gauge
0%
19.6 ms
19.6 ms
test_import_field
tests/benchmarks/test_imports.py::test_import_field
CodSpeed Performance Gauge
0%
26 µs
26 µs
test_complex_model_validation[__init__]
tests/benchmarks/test_model_validation.py::test_complex_model_validation[__init__]
CodSpeed Performance Gauge
0%
50.3 µs
50.3 µs
test_north_star_validate_python
tests/benchmarks/test_north_star.py::test_north_star_validate_python
CodSpeed Performance Gauge
0%
39.1 ms
39.1 ms
test_nested_model_validation[__init__]
tests/benchmarks/test_model_validation.py::test_nested_model_validation[__init__]
CodSpeed Performance Gauge
0%
52.9 µs
52.9 µs
test_north_star_dump_json
tests/benchmarks/test_north_star.py::test_north_star_dump_json
CodSpeed Performance Gauge
0%
30.2 ms
30.2 ms
test_simple_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py::test_simple_recursive_model_schema_generation
CodSpeed Performance Gauge
0%
618.4 µs
619 µs
test_complex_model_schema_generation
tests/benchmarks/test_model_schema_generation.py::test_complex_model_schema_generation
CodSpeed Performance Gauge
0%
1.5 ms
1.5 ms
test_north_star_dump_python
tests/benchmarks/test_north_star.py::test_north_star_dump_python
CodSpeed Performance Gauge
0%
18.6 ms
18.6 ms
test_construct_dataclass_schema
tests/benchmarks/test_model_schema_generation.py::test_construct_dataclass_schema
CodSpeed Performance Gauge
0%
1.1 ms
1.1 ms
test_model_validators_serializers
tests/benchmarks/test_model_schema_generation.py::test_model_validators_serializers
CodSpeed Performance Gauge
0%
759.4 µs
760.6 µs
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_simple.py::test_fastapi_startup_perf
CodSpeed Performance Gauge
0%
19.8 ms
19.8 ms
test_schema_build
tests/benchmarks/test_discriminated_unions.py::test_schema_build
CodSpeed Performance Gauge
0%
2.6 ms
2.6 ms
test_deeply_nested_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py::test_deeply_nested_recursive_model_schema_generation
CodSpeed Performance Gauge
0%
1.3 ms
1.3 ms
test_model_json_serialization
tests/benchmarks/test_model_serialization.py::test_model_json_serialization
CodSpeed Performance Gauge
0%
50.2 µs
50.3 µs
test_lots_of_models_with_lots_of_fields
tests/benchmarks/test_model_schema_generation.py::test_lots_of_models_with_lots_of_fields
CodSpeed Performance Gauge
0%
2 s
2 s
test_generic_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py::test_generic_recursive_model_schema_generation
CodSpeed Performance Gauge
0%
741.1 µs
742.8 µs
test_nested_recursive_generic_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py::test_nested_recursive_generic_model_schema_generation
CodSpeed Performance Gauge
0%
1.4 ms
1.4 ms
test_nested_model_schema_generation
tests/benchmarks/test_model_schema_generation.py::test_nested_model_schema_generation
CodSpeed Performance Gauge
0%
823.6 µs
826.5 µs
test_nested_model_validation[model_validate]
tests/benchmarks/test_model_validation.py::test_nested_model_validation[model_validate]
CodSpeed Performance Gauge
0%
50.7 µs
50.9 µs
test_tagged_union_with_str_discriminator_schema_generation
tests/benchmarks/test_model_schema_generation.py::test_tagged_union_with_str_discriminator_schema_generation
CodSpeed Performance Gauge
0%
1 ms
1.1 ms
test_simple_model_schema_lots_of_fields_generation
tests/benchmarks/test_model_schema_generation.py::test_simple_model_schema_lots_of_fields_generation
CodSpeed Performance Gauge
0%
22 ms
22.1 ms
test_list_of_models_validation[__init__]
tests/benchmarks/test_model_validation.py::test_list_of_models_validation[__init__]
CodSpeed Performance Gauge
0%
81.8 µs
82.2 µs
test_simple_model_schema_generation
tests/benchmarks/test_model_schema_generation.py::test_simple_model_schema_generation
CodSpeed Performance Gauge
0%
613.4 µs
616.4 µs
test_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation.py::test_recursive_model_schema_generation
CodSpeed Performance Gauge
-1%
838.3 µs
842.9 µs
test_simple_model_validation[__init__]
tests/benchmarks/test_model_validation.py::test_simple_model_validation[__init__]
CodSpeed Performance Gauge
-1%
37.3 µs
37.5 µs
test_setattr
tests/benchmarks/test_attribute_access.py::test_setattr
CodSpeed Performance Gauge
-1%
89.2 µs
89.8 µs
test_simple_model_validation[model_validate]
tests/benchmarks/test_model_validation.py::test_simple_model_validation[model_validate]
CodSpeed Performance Gauge
-1%
39.7 µs
40.1 µs
test_nested_recursive_model_schema_generation
tests/benchmarks/test_model_schema_generation_recursive.py::test_nested_recursive_model_schema_generation
CodSpeed Performance Gauge
-1%
1.5 ms
1.5 ms
test_complex_model_validation[model_validate]
tests/benchmarks/test_model_validation.py::test_complex_model_validation[model_validate]
CodSpeed Performance Gauge
-1%
51.4 µs
51.9 µs
test_list_of_models_validation[model_validate]
tests/benchmarks/test_model_validation.py::test_list_of_models_validation[model_validate]
CodSpeed Performance Gauge
-1%
80.3 µs
81.1 µs
test_failed_rebuild
tests/benchmarks/test_model_schema_generation.py::test_failed_rebuild
CodSpeed Performance Gauge
-1%
215.5 µs
218.4 µs
test_north_star_json_dumps
tests/benchmarks/test_north_star.py::test_north_star_json_dumps
CodSpeed Performance Gauge
-1%
23.3 ms
23.6 ms
Ignored
test_field_validators_serializers
Ignored
tests/benchmarks/test_model_schema_generation.py::test_field_validators_serializers
CodSpeed Performance Gauge
+19%
1.7 ms
1.4 ms
test_nested_model_serialization
Ignored
tests/benchmarks/test_model_serialization.py::test_nested_model_serialization
CodSpeed Performance Gauge
+1%
43.1 µs
42.7 µs
Commits
Click on a commit to change the comparison range
Base
main
5a6ff49
-0.09%
feat: implement ser_json_temporal
6c673da
2 months ago
by ollz272
+0.41%
Merge branch 'main' into implement_ser_json
9539594
1 month ago
by ollz272
-0.24%
feat: implement val_temporal_unit
b268079
1 month ago
by ollz272
+0.13%
fix: fix docs reference
ecbc4ec
28 days ago
by ollz272
-0.2%
Merge branch 'main' into implement_ser_json
757701e
25 days ago
by ollz272
-0.25%
Merge branch 'main' into implement_ser_json
960b492
25 days ago
by ollz272
+0.19%
Update pydantic/config.py Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
a20efc1
21 days ago
by ollz272
-0.26%
Update pydantic/config.py Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
6955530
21 days ago
by ollz272
-0.04%
Update pydantic/config.py Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com>
aefa4f1
21 days ago
by ollz272
-0.05%
test: add a bunch of tests for coverage
2fbd6d2
20 days ago
by ollz272
+0.23%
style: formatting :
6f615d2
20 days ago
by ollz272
-0.04%
Merge branch 'main' into implement_ser_json
8644c72
20 days ago
by ollz272
-0.01%
style: lint:
52a8a47
20 days ago
by ollz272
+0.41%
Merge branch 'main' into implement_ser_json
4b295af
12 days ago
by ollz272
-0.13%
fix: add mathjax config
a1a94f3
12 days ago
by ollz272
-0.22%
Merge branch 'main' into implement_ser_json
5ae1f67
9 days ago
by Viicos
-0.1%
Update JavaScript includes in mkdocs.yml
4b68065
9 days ago
by Viicos
+0.03%
Apply suggestions from code review
894de9a
9 days ago
by Viicos
© 2025 CodSpeed Technology
Home
Terms
Privacy
Docs