3 ms·
> faster on startup than .NET [0] This is unlikely. When you invoke 'dotnet run' you're essentially going through the entire build system, it doesn't "just" la
by neonsunset 2y ago
> faster on startup than .NET [0]
This is unlikely. When you invoke 'dotnet run' you're essentially going through the entire build system, it doesn't "just" launch the application - it also builds it or verifies that it doesn't need to.
The actual startup time for compiled applications is <100ms for JIT (sometimes even <50ms) and ~10ms for AOT.
Feel free to verify this with:
dotnet new console --aot
dotnet publish -o .
hyperfine ./{name of the program}
(make sure to use up-to-date version of the SDK, can be installed with sudo apt install dotnet9 / brew install dotnet)
Of course performance of the code itself is going to have more than an order of magnitude of difference: https://benchmarksgame-team.pages.debian.net/benchmarksgame/performance/comparable.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...