Level up with the easiest way to measure the performance of your .NET Code. Stop wondering whether your code is slow, start testing to ensure the code you're shipping doesn't have any crippling speed or memory issues. BenchmarkDotNet is the go-to choice for anything performance related in the C#/.NET environment.
There are a lot of ways to return a collection of things. List, IList, IEnumerable, ICollection. Which collection type gives the best performance? Which one should you be using in your code? We benchmark them all to figure out the tidbits of what the costs of each are.
What type of for loop is the fastest? The regular for loop, the foreach loop? Using BenchmarkDotNet, we'll answer that question and give you the information you need to know when choosing the best for loop for your situation.
Async methods are one of the best tools to write performant and scalable web applications. But what is the cost of having async methods that don't actually have any asynchronous functionality? I'm sure you've written one before. Lets take a look at how it degrades the performance of the function.