Avatar for the pydantic user
pydantic
pydantic-core
BlogDocsChangelog

Support complex numbers

#1331Merged
Comparing
changhc:implement-complex
(
8919589
) with
main
(
863640b
)
CodSpeed Performance Gauge
0%
Untouched
155

Benchmarks

155 total
test_strict_union_error_core
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUnion
CodSpeed Performance Gauge
+4%
33.4 µs32.1 µs
test_int_error
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
40.8 µs39.8 µs
test_filter
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+2%
42.7 µs41.8 µs
test_core_json_fs
tests/benchmarks/test_micro_benchmarks.py::TestModelLarge
CodSpeed Performance Gauge
+2%
159.6 µs157.1 µs
test_list_of_strs_json_uncached
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
452.5 µs445.7 µs
test_datetime
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
26.6 µs26.4 µs
test_date_format_function
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
52 µs51.5 µs
test_date_format_function_no_info
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
50.5 µs50.1 µs
test_model_core_json
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateTime
CodSpeed Performance Gauge
+1%
36.1 µs35.9 µs
test_dataclass_serialization_json
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
25.1 µs24.9 µs
test_json_direct_list_str
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
155.4 µs154.3 µs
test_complete_core_serializer_to_json
tests/benchmarks/test_complete_benchmark.py
CodSpeed Performance Gauge
+1%
279.7 µs277.9 µs
test_to_string_direct
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
19.6 µs19.5 µs
test_core_dict_filter
tests/benchmarks/test_serialization_micro.py::TestBenchmarkSimpleModel
CodSpeed Performance Gauge
+1%
77.9 µs77.5 µs
test_core_python
tests/benchmarks/test_micro_benchmarks.py::TestModelLarge
CodSpeed Performance Gauge
+1%
140 µs139.2 µs
test_core_json_fs
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkSimpleModel
CodSpeed Performance Gauge
+1%
122.2 µs121.5 µs
test_model_list_core_json
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
150.3 µs149.6 µs
test_date_format
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
0%
51.1 µs50.9 µs
test_to_string_format
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
0%
24.2 µs24.1 µs
test_model_core_json
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUUID
CodSpeed Performance Gauge
0%
47.3 µs47.1 µs
test_complete_core_serializer_to_python
tests/benchmarks/test_complete_benchmark.py
CodSpeed Performance Gauge
0%
269.4 µs268.5 µs
test_decimal_from_string_limit
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDecimal
CodSpeed Performance Gauge
0%
18.1 µs18 µs
test_list_of_ints_core_json
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
768.5 µs766.3 µs
test_arguments
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
26 µs25.9 µs
test_list_of_strs_json_cached
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
314.4 µs313.6 µs

Commits

Click on a commit to change the comparison range
Base
main
863640b
+0.29%
fix tests
ca12c2b
2 years ago
by changhc
+0.01%
handle real numbers
1e7dbd9
2 years ago
by changhc
-0.37%
handle complex strings
419ec8d
2 years ago
by changhc
+0.1%
add test cases
930519e
2 years ago
by changhc
-0.01%
fix tests
8529a72
2 years ago
by changhc
-0.02%
fix typo
c68a975
2 years ago
by changhc
+0.48%
add error type
c3bc5c7
2 years ago
by changhc
-0.44%
fix tests
e589080
2 years ago
by changhc
-0.11%
fix tests
90b0946
2 years ago
by changhc
+0.17%
fix format
7da4284
2 years ago
by changhc
-0.01%
Merge branch 'main' into implement-complex
ee119b0
2 years ago
by changhc
-0.03%
fix tests
9d373ef
2 years ago
by changhc
-0.32%
update tests
cc53b24
2 years ago
by changhc
+0.13%
fix tests
6c8c222
2 years ago
by changhc
-0.21%
use isinstance error
8919589
2 years ago
by changhc
© 2026 CodSpeed Technology
Home Terms Privacy Docs