From 8c30110e644d0cda9fd4e0299ce8224f6da81022 Mon Sep 17 00:00:00 2001 From: AKP Date: Wed, 8 Dec 2021 22:51:18 +0000 Subject: [PATCH] Tweak benchmark code --- runtime/benchmark/benchmark.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/runtime/benchmark/benchmark.go b/runtime/benchmark/benchmark.go index a52b5c8..e4828b3 100644 --- a/runtime/benchmark/benchmark.go +++ b/runtime/benchmark/benchmark.go @@ -145,12 +145,6 @@ func benchmarkImplementation(implementation string, dir string, inputString stri } fmt.Println() - pb = progressbar.NewOptions( - len(results) + 1, // two parts means 2x the number of runs - progressbar.OptionSetDescription( - fmt.Sprintf("Processing %s results", runners.RunnerNames[implementation]), - ), - ) var ( p1, p2 []float64 @@ -164,12 +158,8 @@ func benchmarkImplementation(implementation string, dir string, inputString stri } else if strings.HasPrefix(result.TaskID, p2id) { p2 = append(p2, result.Duration) } - _ = pb.Add(1) } - _ = pb.Finish() - fmt.Println() - if cleanup != nil { cleanup() }