My buddy TomB just passed this my way, it is a very nice looking performance benchmark framework for .NET called NPerf that has been posted on the code project.
As you can see from this sample test it has a very NUnit like feel.
[PerfTester(typeof(IDictionary),10)]
public class DictionaryTester
{
// explained below
private int count;
private Random rnd = new Random();
[PerfTest]
public void ItemAssign(IDictionary dic)
{
for(int i=0;i<this.count;++i)
dic[rnd.Next()]=null;
}
}
-James

Comments on this entry are closed.