Profile and performance test Diagnostics middleware #42700
Labels
area-middleware
Includes: URL rewrite, redirect, response cache/compression, session, and other general middlesware
Milestone
During the #42384 I noticed that the Diagnostics middleware, mainly
StatusCodePages
middleware, allocated much more than expectednostatuscodepages+content =>
endpoints.MapGet("sample", () => Results.Content(new string(' ', 500), statusCode: 415));
new string(' ', 500)
is similar to what theStatusCodePages
does.Since this middleware, and other Diagnostics middleware, will become more relevant after the introducing of
ProblemDetails
Services, we should do some profiling and optimizing of these middleware, including scenarios that produce aProblemDetails
payload.The text was updated successfully, but these errors were encountered: