feat: Add min and max and try to improve the performance

This commit is contained in:
rjianu
2023-07-17 20:18:16 +03:00
parent f837a1d217
commit 607561b9fe
9 changed files with 37 additions and 5 deletions

View File

@@ -76,7 +76,7 @@ func BenchmarkRun(b *testing.B) {
// reset the time before running the benchmark loop
b.ResetTimer()
for i := 0; i < b.N; i++ {
if err := run(filenames, "avg", 2, io.Discard); err != nil {
if err := run(filenames, "max", 2, io.Discard); err != nil {
b.Error(err)
}
}