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}"); }
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()}"); }
public void Measure(string name, int itemCount, Func <object> method) { WriteEntry(BenchmarkResult.Measure(name, itemCount, method, _measureForMilliseconds)); }