Single Site class. #1006
Workflow file for this run
This file contains 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: Benchmarks | |
on: | |
push: | |
branches: | |
- '*' | |
paths-ignore: | |
- 'README.md' | |
- 'examples/**' | |
- 'scripts/*' | |
- 'web/**' | |
- 'tests/**' | |
- 'unit/**' | |
- '.github/workflows/**' | |
- '!.github/workflows/benchmark.yml' | |
jobs: | |
benchmark: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: "./.github/workflows/setup" | |
- name: Install Prerequisites | |
run: | | |
sudo apt-get update -q | |
sudo apt-get install ninja-build python3-setuptools uuid uuid-dev | |
git submodule update --init --recursive | |
- name: Install Conan | |
run: | | |
sudo pip3 install wheel | |
sudo pip3 install conan==1.* | |
- name: Retrieve ANTLR4 Java | |
run: | | |
wget https://www.antlr.org/download/antlr-${{ env.antlrVersion }}-complete.jar -O antlr4.jar | |
- name: Build | |
run: | | |
set -ex | |
mkdir build && cd build | |
cmake ../ -G "Ninja" -DBUILD_BENCHMARKS:bool=true -DANTLR_EXECUTABLE:path=`pwd`/../antlr4.jar | |
ninja | |
- name: Run benchmarks | |
run: | | |
set -ex | |
export LD_LIBRARY_PATH=`pwd`/build/onetbb/lib | |
cd build | |
# Run individual benchmarks | |
for bm in benchmark_* | |
do | |
./${bm} --benchmark_format=json > ${bm}_result.json | |
done | |
# Combine benchmark results | |
jq -s '[.[] | to_entries] | flatten | reduce .[] as $dot ({}; .[$dot.key] += $dot.value)' benchmark_*.json > all_benchmark_results.json | |
cat all_benchmark_results.json | |
- name: Store benchmark result | |
uses: rhysd/github-action-benchmark@v1 | |
if: ${{ github.ref_name == 'develop' }} | |
with: | |
tool: 'googlecpp' | |
output-file-path: build/all_benchmark_results.json | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
auto-push: true | |
comment-on-alert: true | |
alert-threshold: '200%' | |
alert-comment-cc-users: '@disorderedmaterials/dissolve-devs' |