-
-
Notifications
You must be signed in to change notification settings - Fork 41
51 lines (47 loc) · 1.26 KB
/
benchmark.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
# These tests benchmark the current code against the previous release
# using both the GCC and Clang compilers. If the new code runs slower
# than the previous release then the tests fail. This helps to detect
# performance regressions.
name: benchmark
on:
push:
branches-ignore:
- backup3
- gh-pages
pull_request:
branches-ignore:
- backup3
- gh-pages
jobs:
linux_gcc_performance_test:
runs-on: ubuntu-latest
env:
CC: gcc
CXX: g++
steps:
- uses: actions/checkout@v4
with:
# Fetch all commits & tags
fetch-depth: 0
- name: Install dependencies
run: |
sudo apt update
sudo apt install bc
- name: Benchmark latest code vs. previous release
run: scripts/./benchmark-vs-prev-release.sh
linux_clang_performance_test:
runs-on: ubuntu-latest
env:
CC: clang
CXX: clang++
steps:
- uses: actions/checkout@v4
with:
# Fetch all commits & tags
fetch-depth: 0
- name: Install dependencies
run: |
sudo apt update
sudo apt install bc libomp-dev
- name: Benchmark latest code vs. previous release
run: scripts/./benchmark-vs-prev-release.sh