-->

.NET benchmarking frameworks

2019-03-29 08:55发布

问题:

Are there any .NET frameworks for writing micro-benchmarks like Japex or this (both are for Java)?

回答1:

Jon Skeet wrote one: http://msmvps.com/blogs/jonskeet/archive/2009/01/26/benchmarking-made-easy.aspx

It also lives on google-code

Unfortunately, it not as rich as Japex



回答2:

Check this out, it is really cool library, VERY easy to use http://blogs.msdn.com/vancem/archive/2009/02/06/measureit-update-tool-for-doing-microbenchmarks.aspx

The best feature I like in it is the normalization feature, it lets you compare different results in a meaningful way.

Hope this helps



回答3:

I think you can try https://perfdotnet.github.io/BenchmarkDotNet/, which's a good tool currently. I'm very happy to used it everyday.