How can dotnet core 5 be so slow on simplest console app?

Update: It was the CPU. It was running at 25% because it was incorrectly sensing a high temperature and went to a save operating mode.

Solution: Turn off the laptop, remove the battery, wait for some time.