Skip to content

Commit

Permalink
Install benchstat
Browse files Browse the repository at this point in the history
  • Loading branch information
julienduchesne committed May 4, 2023
1 parent 992d0c6 commit 0c3615f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .drone/drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,11 @@ local docker(arch, depends_on=[]) =
pipeline('benchmark against main') {
steps: [
go('benchmark', [
'go test -bench=. -benchmem -count=10 -run=^$ ./... | tee bench-pr.txt',
'go test -bench=. -benchmem -count=5 -run=^$ ./... | tee bench-pr.txt',
'git fetch origin main',
'git checkout main',
'go test -bench=. -benchmem -count=10 -run=^$ ./... | tee bench-main.txt',
'go test -bench=. -benchmem -count=5 -run=^$ ./... | tee bench-main.txt',
'go install golang.org/x/perf/cmd/...@latest',
'benchstat bench-main.txt bench-pr.txt',
]),
],
Expand Down
7 changes: 4 additions & 3 deletions .drone/drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,11 @@ kind: pipeline
name: benchmark against main
steps:
- commands:
- go test -bench=. -benchmem -count=10 -run=^$ ./... | tee bench-pr.txt
- go test -bench=. -benchmem -count=5 -run=^$ ./... | tee bench-pr.txt
- git fetch origin main
- git checkout main
- go test -bench=. -benchmem -count=10 -run=^$ ./... | tee bench-main.txt
- go test -bench=. -benchmem -count=5 -run=^$ ./... | tee bench-main.txt
- go install golang.org/x/perf/cmd/...@latest
- benchstat bench-main.txt bench-pr.txt
image: golang:1.19
name: benchmark
Expand Down Expand Up @@ -303,6 +304,6 @@ kind: secret
name: dockerhub_password
---
kind: signature
hmac: eac2a50fa2ba151d92a5b3fbfcf22338f236464004b57f9140ee52901a0e83ce
hmac: 3967256e091e6552f854b4d250b85a29d523a8df71b132ccc88bcd11be7b497e

...

0 comments on commit 0c3615f

Please sign in to comment.