Skip to content

Commit

Permalink
bump go mod version
Browse files Browse the repository at this point in the history
  • Loading branch information
shravanasati committed Jan 3, 2024
1 parent 42fba0d commit fdb7272
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
}
}
Expand Down

0 comments on commit fdb7272

Please sign in to comment.