mirror of
https://github.com/hibiken/asynq.git
synced 2025-04-22 16:50:18 +08:00
Tweak benchstat workflow
This commit is contained in:
parent
f0d455742a
commit
bcc639d083
20
.github/workflows/benchstat.yml
vendored
20
.github/workflows/benchstat.yml
vendored
@ -17,12 +17,12 @@ jobs:
|
|||||||
ports:
|
ports:
|
||||||
- 6379:6379
|
- 6379:6379
|
||||||
steps:
|
steps:
|
||||||
- name: Install Go
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: 1.15.x
|
go-version: 1.15.x
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: Benchmark
|
- name: Benchmark
|
||||||
run: go test -run=^$ -bench=. -count=5 -timeout=60m ./... | tee -a bench.txt
|
run: go test -run=^$ -bench=. -count=5 -timeout=60m ./... | tee -a bench.txt
|
||||||
- name: Upload Benchmark
|
- name: Upload Benchmark
|
||||||
@ -30,6 +30,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: bench-incoming
|
name: bench-incoming
|
||||||
path: bench.txt
|
path: bench.txt
|
||||||
|
|
||||||
current:
|
current:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
services:
|
services:
|
||||||
@ -38,14 +39,14 @@ jobs:
|
|||||||
ports:
|
ports:
|
||||||
- 6379:6379
|
- 6379:6379
|
||||||
steps:
|
steps:
|
||||||
- name: Install Go
|
|
||||||
uses: actions/setup-go@v2
|
|
||||||
with:
|
|
||||||
go-version: 1.15.x
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
ref: master
|
ref: master
|
||||||
|
- name: Set up Go
|
||||||
|
uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: 1.15.x
|
||||||
- name: Benchmark
|
- name: Benchmark
|
||||||
run: go test -run=^$ -bench=. -count=5 -timeout=60m ./... | tee -a bench.txt
|
run: go test -run=^$ -bench=. -count=5 -timeout=60m ./... | tee -a bench.txt
|
||||||
- name: Upload Benchmark
|
- name: Upload Benchmark
|
||||||
@ -53,11 +54,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: bench-current
|
name: bench-current
|
||||||
path: bench.txt
|
path: bench.txt
|
||||||
|
|
||||||
benchstat:
|
benchstat:
|
||||||
needs: [incoming, current]
|
needs: [incoming, current]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install Go
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: 1.15.x
|
go-version: 1.15.x
|
||||||
|
Loading…
x
Reference in New Issue
Block a user