diff --git a/.github/workflows/integrate.yml b/.github/workflows/integrate.yml index b082869..55c225e 100644 --- a/.github/workflows/integrate.yml +++ b/.github/workflows/integrate.yml @@ -19,7 +19,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: "1.20" + go-version: "1.21" - name: Build run: go build -v diff --git a/go.mod b/go.mod index c91ed0b..c52a986 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/Shravan-1908/bench -go 1.20 +go 1.21 require ( github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 diff --git a/main.go b/main.go index 07942fb..c6e9767 100644 --- a/main.go +++ b/main.go @@ -107,7 +107,9 @@ func benchmark(iterations int, command []string, verbose bool, ignoreError bool, bar.Finish() return nil, true } - // bar.Describe(fmt.Sprintf("Current estimate: %s", dur.String())) + if !warmup { + bar.Describe(fmt.Sprintf("Current estimate: %s", dur.String())) + } runs = append(runs, (dur.Microseconds())) } }