pydantic
pydantic-core
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Fixes discriminated union bug regression when using enums
#1286
Merged
Comparing
kfreezen:discriminated-union-bug
(
1e69121
) with
main
(
0e6b377
)
CodSpeed Performance Gauge
0%
Untouched
155
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Untouched
155 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_generator_rust
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+6%
20.1 µs
19 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_decimal_from_string_pyd
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDecimal
CodSpeed Performance Gauge
+4%
33 µs
31.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_small_class_core_model
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+3%
30.7 µs
29.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_core_python
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUUID
CodSpeed Performance Gauge
+2%
29.7 µs
29 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_validate_literal[python-few_ints]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
14.4 µs
14.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_date_format_function_no_info
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
50.6 µs
49.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_strict_int
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
13.4 µs
13.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_bytes_core
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
13.4 µs
13.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_date_from_date
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateX
CodSpeed Performance Gauge
+1%
13.7 µs
13.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_date_from_str
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateX
CodSpeed Performance Gauge
+1%
16.4 µs
16.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_validate_literal[python-many_ints]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
14.4 µs
14.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_enum_str_core
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
14.8 µs
14.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_dont_raise_error_no_info
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
17.8 µs
17.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_model_instance
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
32.7 µs
32.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_enum_int_python
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
24 µs
23.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_date_format
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
51.2 µs
50.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_core_raw
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUUID
CodSpeed Performance Gauge
+1%
13.6 µs
13.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_smart_union_coerce_core
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUnion
CodSpeed Performance Gauge
+1%
17.2 µs
17 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_dataclass_serialization_python
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
23.3 µs
23 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_bool_core
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
22.8 µs
22.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_complete_core_json
tests/benchmarks/test_complete_benchmark.py
CodSpeed Performance Gauge
+1%
491.8 µs
487.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_complete_core_error
tests/benchmarks/test_complete_benchmark.py
CodSpeed Performance Gauge
+1%
1.8 ms
1.8 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_enum_int_core
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
15.3 µs
15.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_chain_list
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
25.4 µs
25.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_date_format_function
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+1%
51.8 µs
51.3 µs
1
2
...
7
Commits
Click on a commit to change the comparison range
Base
main
0e6b377
+0.41%
Fixes pydantic#9235
c60d65c
2 years ago
by kfreezen
-0.1%
Adds test
1e69121
2 years ago
by kfreezen
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs