BenchmarkIt
BenchmarkIt copied to clipboard
PrintComparison() is printing only the last line
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%
This is fixed in my branch here: https://github.com/Pommersche92/BenchmarkIt Also see my PR #5