Benchmark Stocks and Presentations #6
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: Benchmark Stocks and Presentations | |
# Controls when the action will run. | |
# Workflow runs when manually triggered using the UI or API. | |
on: | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
benchmark: | |
strategy: | |
matrix: | |
workload: [ 'presentations', 'stocks' ] | |
os: [ ubuntu-latest, macos-latest, windows-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: dev | |
- name: Setup java | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: corretto | |
- name: Build artifacts | |
run: mvn clean install | |
- name: Run Benchmark | |
run: java -jar target/benchmarks.jar -i 4 -wi 4 -f 1 -r 2 -w 2 -rff results.csv -rf csv -tu ms ${{ matrix.workload }} | |
- name: Upload results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: bench-results-${{ matrix.os }}-${{ matrix.workload }} | |
path: ./results.csv |