示例#1
0
 internal void LogResult(BenchmarkResult result)
 {
     WriteLine($"{result.Name}\t{(result.Output ?? "<null>").ToString()}\t{result.ToResultCount()}\t{result.Elapsed.TotalMilliseconds:n0}ms\t{result.Iterations:n0}");
 }
示例#2
0
 internal void LogResult(BenchmarkResult x1, BenchmarkResult x2, BenchmarkResult x4)
 {
     WriteLine($"{x1.Name}\t{(x1.Output ?? "<null>").ToString()}\t{x1.ToResultCount()}\t{x2.ToResultCount()}\t{x4.ToResultCount()}");
 }
示例#3
0
 public void Measure(string name, int itemCount, Func <object> method)
 {
     WriteEntry(BenchmarkResult.Measure(name, itemCount, method, _measureForMilliseconds));
 }