Avatar for the pydantic user
pydantic
pydantic
BlogDocsChangelog

Remove unnecessary logic for definitions schema gen with discriminated unions

#8951Merged
Comparing
test-alternative-fix
(
0717cb4
) with
main
(
a25882c
)
CodSpeed Performance Gauge
+1%
Improvement
1
Untouched
9

Benchmarks

10 total
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_generics.py
CodSpeed Performance Gauge
+6%
713.9 ms672.5 ms
test_north_star_validate_json_strict
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
+4%
64.3 ms61.9 ms
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_simple.py
CodSpeed Performance Gauge
+2%
225.8 ms222.4 ms
test_north_star_validate_python_strict
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
23.4 ms23.4 ms
test_north_star_dump_json
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
39.4 ms39.3 ms
test_north_star_dump_python
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
15.9 ms15.8 ms
test_north_star_validate_json
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
63.4 ms63.3 ms
test_north_star_json_dumps
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
38.1 ms38 ms
test_north_star_validate_python
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
36.7 ms36.6 ms
test_north_star_json_loads
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
18.2 ms18.2 ms

Commits

Click on a commit to change the comparison range
Base
main
a25882c
+0.27%
example of alternative approach
3fbbece
2 years ago
by sydney-runkle
+0.42%
Merge branch 'main' into test-alternative-fix
5fe1954
2 years ago
by sydney-runkle
+0.59%
fix failing test
0717cb4
2 years ago
by sydney-runkle
© 2026 CodSpeed Technology
Home Terms Privacy Docs