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.