Skip to content

Commit c14cf2c

Browse files
committed
added: code in run_benchmarks.jl
1 parent de3925c commit c14cf2c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ LocalPreferences.toml
77
docs/Manifest.toml
88
lcov.info
99
benchmark/Manifest.toml
10+
/.benchmarkci
11+
/benchmark/*.json

benchmark/run_benchmarks.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# To run benchmarks locally, BenchmarkCI should be added to root project. Then call:
2+
# ```bash
3+
# julia benchmark/run_benchmarks.jl
4+
# ```
5+
6+
using BenchmarkCI
7+
on_CI = haskey(ENV, "GITHUB_ACTIONS")
8+
9+
BenchmarkCI.judge(; baseline = "origin/main")
10+
on_CI ? BenchmarkCI.postjudge() : BenchmarkCI.displayjudgement()

0 commit comments

Comments
 (0)