Our great sponsors
-
BenchmarkDotNet is one of those tools that all .NET developers need to know how to use. If you want to compare the performance of multiple ways of doing the same thing, you need this tool. If you want to decide which 3rd party library provides the fastest and most memory efficient implementation, you need this tool. If you want to compare the performance of code running on different versions of the .NET platform, you need this tool. If you want to monitor changes to your code base for changes that degrade performance, you need this tool.
-
SharpLab is another great tool that will show you what the JIT compiler will do initially. In the case of Sqrt1, it will compile out dead code because the result of the square root isn't used so it doesn't need to run the instructions to perform the square root. So you still need to be careful with how you write your benchmarks otherwise you may not be measuring what you think you are measuring!
-
SonarQube
Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.