mirror of
https://github.com/hibiken/asynq.git
synced 2024-11-10 03:21:55 +08:00
ci: upgrade benchstat actions, go version -> 1.21.x
* closes #759
Squashed commit of the following:
commit 3d94ee14aeaf9a868dbeed4b65f90ccdda1f08d6
Author: Mohammed Sohail <sohailsameja@gmail.com>
Date: Thu Dec 7 11:49:07 2023 +0300
ci: upgrade benchstat actions, go version -> 1.21.x
commit 129e225311
Author: angshumukherjee100 <angshumukherjee100@gmail.com>
Date: Sun Oct 8 11:20:43 2023 +0530
(workflow): bump go version to 1.18 in benchstat
This commit is contained in:
parent
1ec90810db
commit
7ef0511f35
32
.github/workflows/benchstat.yml
vendored
32
.github/workflows/benchstat.yml
vendored
@ -11,20 +11,20 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
services:
|
services:
|
||||||
redis:
|
redis:
|
||||||
image: redis
|
image: redis:7
|
||||||
ports:
|
ports:
|
||||||
- 6379:6379
|
- 6379:6379
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: 1.16.x
|
go-version: 1.21.x
|
||||||
- name: Benchmark
|
- name: Benchmark
|
||||||
run: go test -run=^$ -bench=. -count=5 -timeout=60m ./... | tee -a new.txt
|
run: go test -run=^$ -bench=. -count=5 -timeout=60m ./... | tee -a new.txt
|
||||||
- name: Upload Benchmark
|
- name: Upload Benchmark
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: bench-incoming
|
name: bench-incoming
|
||||||
path: new.txt
|
path: new.txt
|
||||||
@ -33,22 +33,22 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
services:
|
services:
|
||||||
redis:
|
redis:
|
||||||
image: redis
|
image: redis:7
|
||||||
ports:
|
ports:
|
||||||
- 6379:6379
|
- 6379:6379
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: master
|
ref: master
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: 1.15.x
|
go-version: 1.21.x
|
||||||
- name: Benchmark
|
- name: Benchmark
|
||||||
run: go test -run=^$ -bench=. -count=5 -timeout=60m ./... | tee -a old.txt
|
run: go test -run=^$ -bench=. -count=5 -timeout=60m ./... | tee -a old.txt
|
||||||
- name: Upload Benchmark
|
- name: Upload Benchmark
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: bench-current
|
name: bench-current
|
||||||
path: old.txt
|
path: old.txt
|
||||||
@ -58,25 +58,25 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: 1.15.x
|
go-version: 1.21.x
|
||||||
- name: Install benchstat
|
- name: Install benchstat
|
||||||
run: go get -u golang.org/x/perf/cmd/benchstat
|
run: go get -u golang.org/x/perf/cmd/benchstat
|
||||||
- name: Download Incoming
|
- name: Download Incoming
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: bench-incoming
|
name: bench-incoming
|
||||||
- name: Download Current
|
- name: Download Current
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: bench-current
|
name: bench-current
|
||||||
- name: Benchstat Results
|
- name: Benchstat Results
|
||||||
run: benchstat old.txt new.txt | tee -a benchstat.txt
|
run: benchstat old.txt new.txt | tee -a benchstat.txt
|
||||||
- name: Upload benchstat results
|
- name: Upload benchstat results
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: benchstat
|
name: benchstat
|
||||||
path: benchstat.txt
|
path: benchstat.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user