-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (25 loc) · 880 Bytes
/
performance.yml
File metadata and controls
27 lines (25 loc) · 880 Bytes
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
name: Performance Benchmarks
on:
push:
branches: ["main"]
pull_request:
jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y build-essential cmake
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
- name: Build
run: cmake --build build --config Release
- name: Run benchmarks
run: ./build/bitvector_benchmark --benchmark_min_time=0.01s
- name: Dump benchmark assembly
run: |
chmod +x scripts/dump_benchmark_asm.sh
scripts/dump_benchmark_asm.sh \
build/CMakeFiles/bitvector_benchmark.dir/bitvector_benchmark.cpp.o \
BM_Bowen_Set BM_Std_Set BM_Bowen_PushBack BM_Std_PushBack \
BM_Bowen_Access BM_Std_Access