Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Benchmark

Benchmark #1

Workflow file for this run

name: Benchmark
on:
schedule:
- cron: "0 2 * * 1" # Run every Monday at 2:00 AM
workflow_dispatch: # Allow manual triggering
jobs:
benchmark:
name: Run benchmarks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: "1.17.2"
otp-version: "26"
- name: Restore dependencies cache
uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
run: mix deps.get
- name: Run benchmarks
run: mix bench
- name: Store benchmark result
uses: benchmark-action/github-action-benchmark@v1
with:
tool: "benchee"
output-file-path: bench.json
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
# Show alert with commit comment on detecting possible performance regression
alert-threshold: "200%"
comment-on-alert: true
fail-on-alert: true
# Enable Job Summary for PRs
summary-always: true