Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pydantic/pydantic
/ t
Function
t
pydantic-core/tests/benchmarks/test_micro_benchmarks.py:129–131 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
127
128
@benchmark
129
def
t():
130
for
case in bool_cases:
131
schema_validator.validate_python(case)
132
133
134
small_class_data = {
'name'
:
'John'
,
'age'
: 42}
Callers
1
encode_default
Function · 0.50
Calls
3
validate_python
Method · 0.45
validate_json
Method · 0.45
errors
Method · 0.45
Tested by
no test coverage detected