github.com/cloudwego/dynamicgo@v0.2.6-0.20240519101509-707f41b6b834/.github/workflows/benchmark-linux-x64.yml (about)

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