Category Archive: Performance

You can run your NBench performance tests using NUnit and ReSharper. All the logic to run performance tests in NBench is actually embedded in the core library and for this reason an external runner is not strictly required. You can easily integrate your unit testing framework and use your favorite tools to run your performance tests. In this …

Let’s start from some questions: Is you application performance unsatisfactory? Are your customers complaining about your application performance? Is your business demanding more performance to increase sales? If the answer is yes, it’s likely that your manager asked your team to spend some time to improve the performance of your application. Most of the time, the …

Full source code is available here This post describes how to create garbage collection tests using the NBench framework. If you are interested in measuring performance or memory usage check out the previous posts: NBench Performance Testing – Code Throughput NBench Testing – Memory Allocations Method Under Test Let’s take a method that intentionally create a lot …

Full source code is available here This post describes how to create a memory test using the NBench framework. If you are interested in measuring performance check out the previous post on NBench Performance Testing – Code Throughput. As an example, we are going to measure the amount of memory required by a Dictionary<int, int>. Creating …

A couple of weeks ago, Aaron Stannard (known for his work on akka.net) introduced a new automated .NET performance framework called NBench. This little framework captured my attention immediately because I am not aware of frameworks that offer a unit testing like experience for performance testing. If you know how to write a unit test you can learn …