The Middleware That Looked Expensive Was Not the One Spending the Bytes
Removing UseRouting dropped per-request allocation by 2.29 KB in isolation — separated from authorization's share, routing itself costs about 24 bytes.

S/06 · Series · 2 parts
How an ASP.NET Core request moves through the framework, stage by stage, read from the source rather than described at the API level.
Removing UseRouting dropped per-request allocation by 2.29 KB in isolation — separated from authorization's share, routing itself costs about 24 bytes.

A minimal Kestrel endpoint took 19 to 27 % longer than a bare socket listener at concurrency 1, 10 and 100, and allocated 2.4 to 3.2 times more.
