Avatar for the pydantic user
pydantic
pydantic-core
BlogDocsChangelog

try pyo3 branch without lazy errors

#1675Closed
Comparing
dh/try-pyo3-eager-err
(
0ee4df2
) with
main
(
6c936de
)
CodSpeed Performance Gauge
-11%
Improvement
2
Regression
1
Untouched
154

Benchmarks

157 total
test_raise_error_value_error
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-11%
36.8 µs41.5 µs
test_ser_list_of_lists
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+11%
1.4 ms1.2 ms
test_json_direct_list_int
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+10%
147.8 µs134.1 µs
test_field_function_validator
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+10%
407.3 µs371 µs
test_model_list_core_json
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+9%
167.4 µs153 µs
test_to_json_list_of_lists
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+8%
2 ms1.9 ms
test_json_direct_list_str
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+8%
176.1 µs163.3 µs
test_list_of_strs_py_cached
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+6%
131.4 µs123.5 µs
test_many_models_core_model
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+6%
2.3 ms2.2 ms
test_smart_union_core
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUnion
CodSpeed Performance Gauge
+6%
16.5 µs15.5 µs
test_json_any_list_int
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+6%
224.2 µs212.1 µs
test_python_json_list_none
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+6%
117 µs110.7 µs
test_raise_error_custom
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+6%
38.2 µs36.2 µs
test_bool_core
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+5%
23.9 µs22.8 µs
test_json_any_list_str
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+5%
257.7 µs245 µs
test_smart_union_coerce_core
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUnion
CodSpeed Performance Gauge
+5%
18.2 µs17.3 µs
test_strict_int_fails
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+5%
26.9 µs25.6 µs
test_validate_literal[python-few_ints]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+5%
15.2 µs14.5 µs
test_core_string_strict_wrong
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+5%
26.8 µs25.7 µs
test_definition_in_tree
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+5%
785.7 µs751.2 µs
test_core_string_lax_wrong
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+5%
27.1 µs25.9 µs
test_positional_tuple
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+5%
19.1 µs18.2 µs
test_validate_literal[python-many_ints]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+5%
15.1 µs14.4 µs
test_strict_union_error_core
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUnion
CodSpeed Performance Gauge
+5%
33.1 µs31.6 µs
test_model_instance
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+4%
29.2 µs27.9 µs

Commits

Click on a commit to change the comparison range
Base
main
6c936de
-11.3%
try pyo3 branch without lazy errors
0ee4df2
1 year ago
by davidhewitt
© 2026 CodSpeed Technology
Home Terms Privacy Docs