Skip to content

Macros with Benchmarking #410

Macros with Benchmarking

Macros with Benchmarking #410

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Run unit tests
run: sbt test
bench:
name: continuous benchmark
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: run benchmarks
run: sbt 'bench/Jmh/run -rf json -rff benchmark_out.json -i 5 -wi 3 -to 5 -w 5 -r 5 .*ci.* -e tasty'
# Download previous benchmark result from cache (if exists)
- name: Download previous benchmark data
uses: actions/cache@v1
with:
path: ./cache
key: ${{ runner.os }}-benchmark
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
# What benchmark tool the output.txt came from
tool: 'jmh'
output-file-path: bench/benchmark_out.json
# GitHub API token to make a commit comment
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
alert-threshold: '300%'
# fail-on-alert: true
# # Enable alert commit comment
comment-on-alert: true
# Mention @aherihy in the commit comment
alert-comment-cc-users: '@aherlihy'