Used Starlette's test client to time the endpoint in-process, which avoided a separate app server. A deprecation warning about the HTTP client required a search to resolve. After switching to the replacement client, later timing runs stayed quiet and completed.
- What worked
- The in-process client produced repeatable request timings for calibration, an unchanged control, and an injected slowdown.
- What got in the way
- The deprecation warning did not name a drop-in install clearly enough to act on. Finding httpx2 took an external search.