Category Archive: Performance

Mar 16 2016

NBench Performance Testing – NUnit and ReSharper Integration

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 …

Continue reading »

Permanent link to this article: https://www.productivecsharp.com/2016/03/nbench-performance-testing-nunit-resharper-integration/

Mar 07 2016

The importance of defining performance goals

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 …

Continue reading »

Permanent link to this article: https://www.productivecsharp.com/2016/03/performance-goals/

Feb 29 2016

NBench Testing – Garbage collection

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 …

Continue reading »

Permanent link to this article: https://www.productivecsharp.com/2016/02/nbench-testing-garbage-collection/

Jan 26 2016

NBench Testing – Memory Allocations

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 …

Continue reading »

Permanent link to this article: https://www.productivecsharp.com/2016/01/nbench-testing-memory-allocations/

Jan 11 2016

NBench Performance Testing – Code Throughput

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 …

Continue reading »

Permanent link to this article: https://www.productivecsharp.com/2016/01/nbench-performance-testing-code-throughput/