Skip to content

Commit

Permalink
Update benchmark action script to run on ubuntu, mac and windows, and…
Browse files Browse the repository at this point in the history
… for both workloads presentations and stocks.
  • Loading branch information
fmcarvalho committed Jan 24, 2024
1 parent 72803d8 commit 99966c4
Showing 1 changed file with 23 additions and 19 deletions.
42 changes: 23 additions & 19 deletions .github/workflows/bench-presentations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,30 @@ on:
jobs:
benchmark:
name: Benchmark Presentations
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: baselines
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@v1
with:
java-version: 17
- name: Setup java
uses: actions/setup-java@v1
with:
java-version: 17

- name: Build artifacts
run: mvn clean install
- 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 presentations
- 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@v2
with:
name: presentations
path: ./results.csv
- name: Upload results
uses: actions/upload-artifact@v2
with:
name: bench-results-${{ matrix.os }}-${{ matrix.workload }}
path: ./results.csv

0 comments on commit 99966c4

Please sign in to comment.