-
Notifications
You must be signed in to change notification settings - Fork 28
39 lines (33 loc) · 1.15 KB
/
benchmark-linux-x64.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Benchmark Linux-X64
on: [ push, pull_request ]
jobs:
build:
strategy:
matrix:
go-version: [1.18.x]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Testdata
run: |
go get -t github.com/cloudwego/dynamicgo/testdata
go get github.com/json-iterator/go@latest
go get github.com/thrift-iterator/go@latest
go get github.com/cloudwego/kitex/pkg/remote/codec/thrift@latest
go get github.com/cloudwego/kitex/pkg/generic@latest
go get github.com/cloudwego/kitex/pkg/retry@latest
go get github.com/cloudwego/frugal@latest
go test -race github.com/cloudwego/dynamicgo/testdata
- name: Benchmark sonic
run: |
go test -benchmem -run=^$ -bench . github.com/cloudwego/dynamicgo/testdata