MeasureIt is now published on NuGet , and updated to play nicely with LinqPad. To use open this linq file or:
- Add MeasureIt.exe as a NuGet assembly.
- Experiment with statements like:
LinqPadUX.ComputerSpecs.Dump();
LinqPadUX.Measure.Action(()=>{}).Dump();}}
From Vance Morrison::
Almost a year ago now I wrote part 1 and part 2 of a MSDN article entitled 'Measure Early and Measure Often for Good Performance'. In this article I argued that if you want to design high performance applications you need to be measuring performance early and often in the design process. To help doing this I posted a tool call 'MeasureIt'. It basically makes it easy to write benchmarks for .NET code. In particular it also comes with at set of built-in benchmarks that measure the most important fundamental operations in .NET, so you can know what is expensive and what is not.
Even though you can extract the code for MeasureIt by running MeasureIt /edit, it's published here under source control in case the community wishes to make changes.