Example #1
0
 public void MeasureParallel(string name, int itemCount, Func <int, int, object> method)
 {
     WriteEntry(
         BenchmarkResult.Measure(name, itemCount, () => method(0, itemCount), _measureForMilliseconds),
         BenchmarkResult.MeasureParallel(name, itemCount, method, 2, _measureForMilliseconds),
         BenchmarkResult.MeasureParallel(name, itemCount, method, 4, _measureForMilliseconds)
         );
 }
Example #2
0
 public void Measure(string name, int itemCount, Func <object> method)
 {
     WriteEntry(BenchmarkResult.Measure(name, itemCount, method, _measureForMilliseconds));
 }