Skip to content

Review Limiter interface #27

Review Limiter interface

Review Limiter interface #27

Workflow file for this run

name: benchmark
on:
pull_request:
jobs:
benchmark:
name: Benchmark
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Set up
run: |
sudo apt-get update
sudo apt-get install -y valgrind
- name: Check out source code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
- name: Check out source code (main)
uses: actions/checkout@v4
with:
ref: main
path: main
- name: Run benchmark (main)
run: make benchmark
working-directory: main
- name: Run benchmark using cachegrind (main)
run: make cachegrind
working-directory: main
- name: Run octocov (main)
uses: k1LoW/octocov-action@v0
with:
config: .octocov.benchmark.main.yml
env:
OCTOCOV_GITHUB_REF: refs/heads/main
OCTOCOV_GITHUB_SHA: none
OCTOCOV_CUSTOM_METRICS_BENCHMARK: main/custom_metrics_benchmark.json
OCTOCOV_CUSTOM_METRICS_CACHEGRIND: main/custom_metrics_cachegrind.json
- name: Run benchmark
run: make benchmark
- name: Run benchmark using cachegrind
run: make cachegrind
- name: Run octocov
uses: k1LoW/octocov-action@v0
with:
config: .octocov.benchmark.yml
env:
OCTOCOV_CUSTOM_METRICS_BENCHMARK: custom_metrics_benchmark.json
OCTOCOV_CUSTOM_METRICS_CACHEGRIND: custom_metrics_cachegrind.json
- name: Show diff
run: |
cg_diff cachegrind.out main/cachegrind.out > cachegrind.out.diff
cg_annotate cachegrind.out.diff --show=Ir
cg_annotate cachegrind.out --show-percs=no --auto=no --show=Ir
cg_annotate main/cachegrind.out --show-percs=no --auto=no --show=Ir