-
Notifications
You must be signed in to change notification settings - Fork 674
45 lines (35 loc) · 1.2 KB
/
benchmark.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
40
41
42
43
44
45
name: Benchmark
on:
push:
branches: ["master", "dev"]
pull_request:
branches: ["dev"]
env:
BUILD_DIR: Dist
jobs:
benchmark:
runs-on: ubuntu-latest
container: seladb/ubuntu2204
steps:
- name: Checkout code
uses: actions/checkout@v4
# Checkout is performed out of the container and doesn't match our user
- name: Fix checkout ownership
run: chown -R "$(id -u):$(id -g)" "$GITHUB_WORKSPACE"
- name: Configure PcapPlusPlus
run: cmake -DPCAPPP_BUILD_BENCHMARK_SUITE=ON -S . -B "$BUILD_DIR"
- name: Run PcapPlusPlus benchmark
run: cd Tests/Benchmarks/PcppBenchmark && ./PcppBenchmark --verbose --benchmark_out=benchmark_result.json
- name: Download previous benchmark data
uses: actions/cache@v4
with:
path: ./cache
key: ${{ runner.os }}-benchmark
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
tool: 'googlecpp'
output-file-path: Tests/Benchmarks/PcppBenchmark/benchmark_result.json
external-data-json-path: ./cache/benchmark_result.json
fail-on-alert: true
summary-always: true