pydantic
pydantic-core
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Optimizations
Branches
Benchmarks
Runs
`JsonValue`: Deduplicate keys before populating Dict
#1865
Merged
Comparing
friendlymatthew/dedup-keys-before-building-dict
(
2bbac0c
) with
main
(
f892755
)
CodSpeed Performance Gauge
-11%
Untouched
163
Benchmarks
Mode
CPU Simulation
Walltime
Memory
Status
Untouched
163 total
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_set_of_ints_core_json_duplicates
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-11%
382.7 µs
431.9 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_list_of_strs_json_cached
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-7%
292.4 µs
313 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_many_models_core_dict
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+6%
1,002 µs
944.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_list_of_strs_json_uncached
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-6%
383.3 µs
405.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_list_of_ints_core_json
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-5%
727.7 µs
764.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_complete_core_isinstance
tests/benchmarks/test_complete_benchmark.py
CodSpeed Performance Gauge
+3%
1.8 ms
1.7 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_core_json_fs
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkSimpleModel
CodSpeed Performance Gauge
-3%
105.4 µs
108.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_core_json_fs
tests/benchmarks/test_micro_benchmarks.py::TestModelLarge
CodSpeed Performance Gauge
-2%
172.9 µs
177.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
-2%
832.2 µs
852.7 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_multi_host_url_core
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
34 µs
33.3 µ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.7 µs
14.4 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_validate_literal[json-few_ints]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
15.9 µs
15.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_validate_literal[json-many_ints]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
15.9 µs
15.6 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_core_root_model
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
-2%
36.1 µs
36.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_core_python
tests/benchmarks/test_micro_benchmarks.py::TestModelLarge
CodSpeed Performance Gauge
-2%
126.1 µs
128.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_validate_literal[python-many_large_strings]
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_validate_literal[json-few_large_strings]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+2%
16.4 µs
16.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_to_json_list_of_lists
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
-2%
1.8 ms
1.8 ms
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_date_from_datetime_str
tests/benchmarks/test_micro_benchmarks.py::TestBenchmarkDateX
CodSpeed Performance Gauge
+2%
19.4 µs
19.1 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_validate_literal[json-few_mixed]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
18.5 µs
18.3 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_datetime_seconds
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
-1%
24.5 µs
24.8 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_validate_literal[json-many_small_strings]
tests/benchmarks/test_micro_benchmarks.py
CodSpeed Performance Gauge
+1%
16.2 µs
16 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_dataclass_to_json
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
-1%
39.3 µs
39.8 µ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.5 µs
52.2 µs
Uses the
CPU Simulation instrument
to collect CPU performance metrics.
test_core_model_py
tests/benchmarks/test_serialization_micro.py
CodSpeed Performance Gauge
-1%
26.2 µs
26.5 µs
1
2
3
4
5
6
7
Commits
Click on a commit to change the comparison range
Base
main
f892755
-11.39%
Deduplicate keys before populating PyDict
2bbac0c
1 year ago
by friendlymatthew
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs