NPerf – .NET Benchmark Framework

by javery on January 27, 2004

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;
    }
}


[Code Project - NPerf]


-James

Comments on this entry are closed.

Previous post: .NET Nightly 96

Next post: “Guts” by Chuck Palahniuk