Reputation: 35
Lately I've been looking at some performance comparisons and .NET programs are consistently highly performant. Sometimes they are faster than native programs written in something like Golang.
Some algorithm comparisons vs golang
Why are .NET programs so performant? Is there somewhere I can read about how Microsoft is able to achieve such good results for something that requires a runtime?
Upvotes: 0
Views: 217
Reputation: 4680
I would recommend this talk by Martin Thompson. Note that as the .NET runtime JIT compiles the native code there are opportunities to generate more efficient code based on runtime heuristics. Gil Tene has an intersting talk on this topic which is Java oriented but the same principles apply.
For .NET specific things I would look at the recent performance improvements in the runtime listed here: https://devblogs.microsoft.com/dotnet/author/toub/
Also, there is lots of information posted on Twitter by @davidfowl, @ben_a_adams and others.
Upvotes: 1