Browse Source

BUILD: Use BenchmarkCI.jl to run package benchmarks on GitHub PRs.

pull/334/head
Evan Patterson 2 months ago
parent
commit
1883e536de
2 changed files with 19 additions and 1 deletions
  1. +17
    -0
      .github/workflows/benchmarks.yml
  2. +2
    -1
      .gitignore

+ 17
- 0
.github/workflows/benchmarks.yml View File

@ -0,0 +1,17 @@
name: Benchmarks
on: [pull_request]
jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Julia
uses: julia-actions/setup-julia@latest
with:
version: 1.5
- name: Install dependencies
run: julia -e 'using Pkg; pkg"add PkgBenchmark BenchmarkCI@0.1"'
- name: Run benchmarks
run: julia -e 'using BenchmarkCI; BenchmarkCI.judge()'
- name: Print results
run: julia -e 'using BenchmarkCI; BenchmarkCI.displayjudgement()'

+ 2
- 1
.gitignore View File

@ -5,7 +5,8 @@
.ipynb_checkpoints
# Julia
benchmark/tune.json
.benchmarkci
benchmark/*.json
Manifest.toml
*.jl.cov
*.jl.*.cov


Loading…
Cancel
Save