aspnet/Logging

The default console logging performance is abysmal

davidfowl opened this issue · 1 comments

I took a file new ASP.NET Core 2.1 API project on my dev box and hit it with wrk in various scenarios. This was in release mode and I didn't publish so it was using the Development environment. Here's the wrk command I used:

wrk -c 100 -t 10 -d 10 http://10.211.55.4:8080/

env: ASPNETCORE_ENVIRONMENT=Development

The results (RPS numbers):

Scenario RPS
No changes to template 166
No loggers 13271.84
With null logger 10785.37
With debug logger 10069.20

This is only a problem in development.