Avatar for the pydantic user
pydantic
pydantic-core
BlogDocsChangelog

Adding definitions support

#406
Comparing
definitions
(
823b316
) with
main
(
3ea00bd
)
CodSpeed Performance Gauge
+1%
Untouched
84
New
9
Dropped
1

Benchmarks

94 total
test_recursive_model_core
tests/benchmarks/test_micro_benchmarks.py
Missing
CodSpeed Performance Gauge
N/A
452.6 µsN/A
test_isinstance_string_lax_false
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
N/A
N/A12.1 µs
test_definition_in_tree
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
N/A
N/A5.1 ms
test_isinstance_string_strict_false
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
N/A
N/A11.9 µs
test_definition_model_core
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
N/A
N/A432.9 µs
test_isinstance_string_strict_true
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
N/A
N/A11.4 µs
test_core_string_strict_wrong
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
N/A
N/A31.5 µs
test_core_string_lax_wrong
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
N/A
N/A31.5 µs
test_definition_out_of_tree
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
N/A
N/A5.1 ms
test_isinstance_string_lax_true
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
N/A
N/A11.4 µs
test_smart_union_coerce_core
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUnion
CodSpeed Performance Gauge
+6%
16 µs15.1 µs
test_core_future
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateTime
CodSpeed Performance Gauge
+4%
26.1 µs25 µs
test_list_of_ints_core_json
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+4%
1.1 ms1 ms
test_with_default
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+3%
21.7 µs21.1 µs
test_core_raw
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateTime
CodSpeed Performance Gauge
+3%
11.7 µs11.4 µs
test_date_from_date
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateX
CodSpeed Performance Gauge
+3%
11.7 µs11.4 µs
test_core_json_fs
tests/benchmarks/test_micro_benchmarks.py::TestModelLarge
CodSpeed Performance Gauge
+2%
187 µs182.7 µs
test_tuple_many_variable
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
18.6 µs18.2 µs
test_core_model_json
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+2%
24.4 µs24 µs
test_positional_tuple
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
23.9 µs23.5 µs
test_bytes_core
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
11.5 µs11.3 µs
test_list_of_any_core_py
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
16.5 µs16.2 µs
test_small_class_core_dict
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
18.1 µs17.7 µs
test_core_python
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateTime
CodSpeed Performance Gauge
+2%
24.9 µs24.5 µs
test_dont_raise_error
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
25.8 µs25.4 µs

Commits

Click on a commit to change the comparison range
Base
main
3ea00bd
+0.52%
adding definitions support
a44a3d6
3 years ago
by samuelcolvin
+0.21%
fix rust benchmarks
df69004
3 years ago
by samuelcolvin
-0.12%
rename "recursive" -> "definition"
8396d70
3 years ago
by samuelcolvin
-0.16%
in-line some valdiators
f300f6c
3 years ago
by samuelcolvin
-0.12%
error positions for definitions errors
00394a3
3 years ago
by samuelcolvin
+0.09%
inlining, take 3
83c4477
3 years ago
by samuelcolvin
+0.14%
cleanup
ffeefaa
3 years ago
by samuelcolvin
+0.11%
correctly inline serializers
2eaf2df
3 years ago
by samuelcolvin
+0.19%
switch to defintions as a core schema type
cd74fd0
3 years ago
by samuelcolvin
-0.01%
errors on repeated refs, more tests
bf3fb9e
3 years ago
by samuelcolvin
-0.21%
Fix benches
9f06451
3 years ago
by dmontagu
+0.2%
Update src/build_context.rs
823b316
3 years ago
by samuelcolvin
© 2026 CodSpeed Technology
Home Terms Privacy Docs