Avatar for the pydantic user
pydantic
pydantic
BlogDocsChangelog

Performance boost: skip caching parent namespaces in most cases

#10113Merged
Comparing
namespace-change
(
2ea648d
) with
main
(
f0d8f65
)
CodSpeed Performance Gauge
0%
Untouched
17

Benchmarks

17 total
test_construct_schema
tests/benchmarks/test_schema_build.py
CodSpeed Performance Gauge
0%
4.8 ms4.8 ms
test_import_field
tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
0%
83.6 µs83.5 µs
test_north_star_json_loads
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
22.1 ms22.1 ms
test_north_star_validate_python
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
44.2 ms44.2 ms
test_import_basemodel
tests/benchmarks/test_imports.py
CodSpeed Performance Gauge
0%
84.7 µs84.7 µs
test_lots_of_models_with_lots_of_fields
tests/benchmarks/test_schema_build.py
CodSpeed Performance Gauge
0%
4.4 s4.4 s
test_schema_build
tests/benchmarks/test_discriminated_unions.py
CodSpeed Performance Gauge
0%
3.5 ms3.5 ms
test_efficiency_with_highly_nested_examples
tests/benchmarks/test_discriminated_unions.py
CodSpeed Performance Gauge
0%
972.5 µs972.9 µs
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_simple.py
CodSpeed Performance Gauge
0%
31.3 ms31.4 ms
test_north_star_validate_json
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
52.8 ms52.8 ms
test_north_star_dump_python
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
17.1 ms17.2 ms
test_north_star_validate_json_strict
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
52.6 ms52.6 ms
test_fastapi_startup_perf
tests/benchmarks/test_fastapi_startup_generics.py
CodSpeed Performance Gauge
0%
255.9 ms256.3 ms
test_north_star_validate_python_strict
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
0%
29.5 ms29.5 ms
test_north_star_dump_json
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
-1%
30.8 ms31 ms
test_isinstance_basemodel
tests/benchmarks/test_isinstance.py
CodSpeed Performance Gauge
-1%
27 ms27.2 ms
test_north_star_json_dumps
tests/benchmarks/test_north_star.py
CodSpeed Performance Gauge
-2%
23.4 ms23.8 ms

Commits

Click on a commit to change the comparison range
Base
main
f0d8f65
-0.42%
Revert "Revert "Experimental feature: opt-in fast build (#10064)""
f427c05
2 years ago
by sydney-runkle
-0.54%
update pytest-examples
d0587da
2 years ago
by sydney-runkle
+0.87%
Let's try it! Might speed up TA by a lot
5742f82
2 years ago
by sydney-runkle
-0.11%
linting and comments
cacb4a3
2 years ago
by sydney-runkle
-0.02%
fix test
46688e0
2 years ago
by sydney-runkle
+0.02%
improve docstring
2ea648d
2 years ago
by sydney-runkle
© 2026 CodSpeed Technology
Home Terms Privacy Docs