-
Notifications
You must be signed in to change notification settings - Fork 7
82 lines (82 loc) · 2.53 KB
/
benchmarks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: benchmarks
on:
pull_request:
push:
branches: [master]
tags: ['*']
jobs:
benches:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1' # automatically expands to the latest stable 1.x release of Julia
os:
- ubuntu-latest
arch:
- x64
include:
- os: ubuntu-latest
version: 'nightly'
arch: x64
continue-on-error: true
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- name: Install dependencies
run: julia -e 'using Pkg; pkg"add PkgBenchmark BenchmarkCI"'
- name: run sequential benchmarks
run: julia -e '
using PkgBenchmark, BenchmarkCI;
BenchmarkCI.judge(
PkgBenchmark.BenchmarkConfig(
env = Dict(
"JULIA_NUM_THREADS" => "1",
"OMP_NUM_THREADS" => "1",
),
);
);
'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SSH_KEY: ${{ secrets.DATA_SSH_KEY }}
- name: push results
run: julia -e '
using BenchmarkCI;
BenchmarkCI.pushresult(;
url = "[email protected]:JuliaFolds2/Transducers-data.git",
);
'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SSH_KEY: ${{ secrets.DATA_SSH_KEY }}
- name: run multithread benchmarks
run: julia -e '
using PkgBenchmark, BenchmarkCI;
BenchmarkCI.judge(
PkgBenchmark.BenchmarkConfig(env = Dict("JULIA_NUM_THREADS" => "4"));
script = "benchmark/multi-thread/benchmarks.jl",
project = "benchmark",
);
'
env:
JULIA_NUM_THREADS: 4
- name: push multithread results
run: julia -e '
using BenchmarkCI;
BenchmarkCI.pushresult(;
title = "Multi-thread benchmark result",
url = "[email protected]:JuliaFolds2/Transducers-data.git",
branch = "multi-thread-benchmark-results",
);
'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SSH_KEY: ${{ secrets.DATA_SSH_KEY }}