mirror of
https://github.com/ii64/sonic.git
synced 2026-06-21 00:46:43 +08:00
* opt: remove most bound check in quote * opt: remove branch in copied escaped chars * opt: use cache-friendly bool array * opt: use loop unrolling in quote * feat: add `-t` for bench.py Change-Id: I3f41218187597126ef960eab09c6fa6fe252f347 * test:(bench) adjust repeat_time * test: add Diff on CI * test: update bench.py * doc: update README.md Co-authored-by: liuqiang <liuqiang.06@bytedance.com> Co-authored-by: duanyi.aster <duanyi.aster@bytedance.com>
30 lines
654 B
YAML
30 lines
654 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
|
|
run: sh bench.sh
|
|
|
|
# - name: Diff
|
|
# run: ./bench.py -b '"^Benchmark.*Sonic"' -c
|