Skip to content

Claculate bins in parallel #633

Claculate bins in parallel

Claculate bins in parallel #633

Workflow file for this run

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
- 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
./build/benchmarks --benchmark_format=json | tee benchmark_result.json
- name: Store benchmark result
uses: rhysd/github-action-benchmark@v1
if: ${{ github.ref_name == 'develop' }}
with:
tool: 'googlecpp'
output-file-path: benchmark_result.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
comment-on-alert: true
alert-threshold: '200%'
alert-comment-cc-users: '@disorderedmaterials/dissolve-devs'