pydantic
pydantic-core
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Validate enum values against other possible forms of expected values
#1502
Comparing
changhc:10629-fix-enum
(
06ac56d
) with
main
(
cd0346d
)
CodSpeed Performance Gauge
+1%
Untouched
155
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Untouched
155 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_strict_union_core
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUnion
CodSpeed Performance Gauge
+9%
17.5 µs
16.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_isinstance_string_strict_false
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+8%
16 µs
14.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_many_models_core_model
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+6%
2.4 ms
2.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_dict_of_ints_core_json
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-4%
1.4 ms
1.4 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_list_of_nullable_core
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+4%
102.6 µs
99.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_definition_model_core
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+3%
1.1 ms
1 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_model_core_json
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateTime
CodSpeed Performance Gauge
+3%
31.4 µs
30.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_definition_in_tree
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
726.9 µs
710.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_definition_out_of_tree
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
989 µs
967.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_decimal_from_string_core
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDecimal
CodSpeed Performance Gauge
+2%
23.4 µs
22.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_validate_literal[python-few_str_enum]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
15.1 µs
14.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_nested_schema_inlined
tests/benchmarks/test_nested_benchmark.py
CodSpeed Performance Gauge
-2%
16 ms
16.4 ms
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.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_raise_error_custom
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
37.7 µs
36.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_enum_str_core
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
14.8 µs
14.5 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_core_string_lax_wrong
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-2%
27.3 µs
27.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_enum_int_core
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
15.2 µs
14.9 µ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
+2%
13.8 µs
13.5 µ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
+2%
32.3 µs
31.7 µ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
+2%
14.3 µs
14.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_validate_literal[python-many_small_strings]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
14.5 µs
14.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_date_format_function
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
+2%
52.2 µs
51.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_list_of_ints_core_py
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
511 µs
502 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_positional_tuple
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
18 µs
17.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_core_raw
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateTime
CodSpeed Performance Gauge
+2%
13.9 µs
13.7 µs
1
2
3
4
5
6
7
Commits
Click on a commit to change the comparison range
Base
main
cd0346d
+0.1%
fix enum
6aac326
2 years ago
by changhc
-0.14%
fix test
578c893
2 years ago
by changhc
+0.31%
validate values against their json form
48de7c6
2 years ago
by changhc
+0.34%
Merge branch 'main' into 10629-fix-enum
5435ba7
2 years ago
by changhc
+0.27%
add tests
a1abde7
2 years ago
by changhc
+0.01%
fix tests
06ac56d
2 years ago
by changhc
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs