pydantic
pydantic-core
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Fix validation of `Literal` from JSON keys when used as `dict` key
#1075
Merged
Comparing
fix-literal-from-json-keys
(
8ba84cb
) with
main
(
73b1184
)
CodSpeed Performance Gauge
+12%
Improvement
1
Untouched
139
Benchmarks
Mode
CPU Simulation
Wall Time
Memory
Status
Improvement
Untouched
140 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_small_class_core_model
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+12%
34.8 µs
31 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_complete_core_error
tests/benchmarks/test_complete_benchmark.py
CodSpeed Performance Gauge
+6%
2 ms
1.8 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_complete_core_isinstance
tests/benchmarks/test_complete_benchmark.py
CodSpeed Performance Gauge
+4%
1.9 ms
1.8 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_strict_union_error_core
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkUnion
CodSpeed Performance Gauge
+3%
32.5 µs
31.6 µ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%
34.5 µs
33.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_arguments
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
27.3 µs
27 µ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
+1%
3.2 ms
3.2 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_tagged_union_int_keys_json
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
31.3 µs
31.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
+1%
1.2 ms
1.2 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_build_schema
tests/benchmarks/test_complete_benchmark.py
CodSpeed Performance Gauge
+1%
867.8 µs
863.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
0%
53.2 µs
52.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_validate_literal[json-many_large_strings]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
17.2 µs
17.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_int_error
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
43.9 µs
43.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_tuple_many_positional
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
20.7 µs
20.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_int_range_json
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
15.3 µs
15.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_validate_literal[json-few_small_strings]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
16.8 µs
16.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_field_function_validator
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
404 µs
402.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_nested_schema_using_defs
tests/benchmarks/test_nested_benchmark.py
CodSpeed Performance Gauge
0%
20.4 ms
20.3 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_nested_schema_inlined
tests/benchmarks/test_nested_benchmark.py
CodSpeed Performance Gauge
0%
21 ms
21 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_list_of_dict_models_core
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
136.6 µs
136.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_raise_error_value_error
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
37.9 µs
37.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_frozenset_of_ints_duplicates_core
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
155.8 µs
155.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_frozenset_of_ints_core
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
264.6 µs
264.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_set_of_ints_core_duplicates
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
335.5 µs
335.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_set_of_ints_core_json
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
0%
1.2 ms
1.2 ms
1
2
...
6
Commits
Click on a commit to change the comparison range
Base
main
73b1184
-12.58%
Fix literal from JSON keys
17572db
2 years ago
by dmontagu
+24.82%
adding v3 todo
8ba84cb
2 years ago
by sydney-runkle
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs