Make test and benchmark durations configurable #11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |