mirror of
https://github.com/ii64/sonic.git
synced 2026-06-21 00:46:43 +08:00
* fix:move benchmarkTests and unitTests related to external json library * remove extra spaces * merge go.mod files * refactor: add external_jsonlib_test into go.work and CI Co-authored-by: Yi Duan <duanyi.aster@bytedance.com>
33 lines
767 B
YAML
33 lines
767 B
YAML
name: Pull Request Benchmark
|
|
|
|
on: pull_request
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: [self-hosted, X64]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Check Branch
|
|
run: ./check_branch_name.sh ${{ github.head_ref }}
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: 1.17.1
|
|
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: ~/go/pkg/mod
|
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-go-
|
|
|
|
- name: Benchmark sonic
|
|
run: sh bench.sh
|
|
|
|
# - name: Benchmark third-party
|
|
# run: go test -benchmem -run=^$ -bench . -v ./generic_test
|
|
|
|
# - name: Diff
|
|
# run: ./bench.py -b '"^Benchmark.*Sonic"' -c
|