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_model_instance_abc
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-6%
32.3 µs34.4 µs
test_strict_union_error_core
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUnion
CodSpeed Performance Gauge
+4%
33.4 µs32.1 µs
test_decimal_from_string_pyd
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDecimal
CodSpeed Performance Gauge
-4%
32 µs33.2 µs
test_dataclass_to_json
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
-3%
39.1 µs40.3 µs
test_validate_literal[python-few_large_strings]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-3%
14.6 µs15 µs
test_small_class_core_model
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-3%
29.6 µs30.4 µ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_date_from_date
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateX
CodSpeed Performance Gauge
-2%
13.8 µs14.1 µs
test_validate_literal[python-few_ints]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-2%
14.4 µs14.7 µs
test_validate_literal[python-many_ints]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-2%
14.4 µs14.7 µs
test_core_string_strict
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-2%
13.5 µs13.7 µ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_core_raw
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateTime
CodSpeed Performance Gauge
-1%
13.9 µs14.1 µs
test_strict_union_core
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUnion
CodSpeed Performance Gauge
-1%
16.3 µs16.5 µs
test_validate_literal[python-many_large_strings]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-1%
14.7 µs14.9 µs
test_uuid_from_uuid_pyd
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUUID
CodSpeed Performance Gauge
-1%
14.5 µs14.7 µs
test_core_string_lax
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-1%
13.5 µs13.7 µs
test_core_raw
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUUID
CodSpeed Performance Gauge
-1%
13.7 µs13.9 µs
test_date_from_str
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateX
CodSpeed Performance Gauge
-1%
16.4 µs16.6 µs
test_tuple_many_variable
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-1%
18.8 µs19 µs
test_core_string_strict_wrong
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-1%
26.3 µs26.6 µs
test_validate_literal[python-few_small_strings]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-1%
14.6 µs14.7 µs
test_with_default
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-1%
22 µs22.2 µ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