views:

96

answers:

2

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

+2  A: 

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

It also lives on google-code

Unfortunately, it not as rich as Japex

Sam Saffron
Related: http://stackoverflow.com/questions/1047218/benchmarking-small-code-samples-in-c-can-this-implementation-be-improved, its not really a framework, but a method you can use.
Sam Saffron
Here is a link to its Google Code page: http://code.google.com/p/minibench/
Alexey Romanov
Thanks alexey! added a link.
Sam Saffron
I really must get back to it at some point. Probably not until the book's finished though...
Jon Skeet
All great answers should begin with those 4 words, shouldn't they?
misteraidan
+2  A: 

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

mfawzymkh