MCPcopy Create free account
hub / github.com/encode/starlette / warm_form

Function warm_form

benchmarks/urlencoded_benchmark.py:110–114  ·  view source on GitHub ↗
(asgi_runner: ASGIRunner)

Source from the content-addressed store, hash-verified

108
109@pytest.fixture(scope="module", autouse=True)
110def warm_form(asgi_runner: ASGIRunner) -> None:
111 case = BenchmarkCase("warm", fields=1, field_size=1)
112 body = urlencode(make_fields(case)).encode()
113 for _ in range(100):
114 dispatch(asgi_runner, FormApp(case), (body,))
115
116
117@pytest.mark.parametrize("case", CASES, ids=lambda case: case.id)

Callers

nothing calls this directly

Calls 4

make_fieldsFunction · 0.85
FormAppClass · 0.85
BenchmarkCaseClass · 0.70
dispatchFunction · 0.70

Tested by

no test coverage detected