Skip to content

Make test and benchmark durations configurable #11

Make test and benchmark durations configurable

Make test and benchmark durations configurable #11

Workflow file for this run

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