When I run our Web Api (.NET Framework 4.6.2project on IISExpress with the Visual Studio debugger on, some of our endpoints are really slow: 16 seconds instead of 200ms, or as in the example 8 seconds instead of 3 seconds.
When I stop the debugger of Visual Studio and the application is still running on IISExpress in the background, the API is very fast again.
I guess it could will be a setting in Visual Studio, but I can't find it. I have searched and tried some settings which I found on StackOverflow for example: - 'Just my code', which is on - Symbols are cached in a folder and Microsoft Symbol Servers is off - Browser link is off