BenchmarkIt icon indicating copy to clipboard operation
BenchmarkIt copied to clipboard

PrintComparison() is printing only the last line

Open tonivix opened this issue 8 years ago • 1 comments

This is happening only on v1.2.0 (1.1.1 is ok). 1.2.0 is the last release available in NuGet Package.

Benchmark.This("string.Contains", () => "abcdef".Contains("ef"))
    .Against.This("string.IndexOf", () => "abcdef".IndexOf("ef"))
    .For(5)
    .Seconds().PrintComparison();

Result:

Name                                    Iterations          Percent
string.IndexOf                          20667517            43,1%

Expected Result:

Name    Iterations      Percent
string.Contains 46140669        100%
string.IndexOf  17512912        37,9554791457402%

tonivix avatar May 29 '17 20:05 tonivix

This is fixed in my branch here: https://github.com/Pommersche92/BenchmarkIt Also see my PR #5

Pommersche92 avatar Sep 19 '19 16:09 Pommersche92