-
Notifications
You must be signed in to change notification settings - Fork 2
66 lines (58 loc) · 2 KB
/
perf_clang.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
name: Perf Clang
on: [push, pull_request]
jobs:
build-and-test:
strategy:
matrix:
include:
- type: 'unordered_map'
clang_ver: '15'
- type: 'unordered_map_open'
clang_ver: '15'
- type: 'map'
clang_ver: '15'
- type: 'data_table_static'
clang_ver: '15'
runs-on: ubuntu-22.04
steps:
- name: Checkout hash-table-shootout
uses: actions/checkout@v3
with:
repository: 'morzhovets/hash-table-shootout'
ref: 'regress'
- name: Checkout momo_v32
uses: actions/checkout@v3
with:
repository: 'morzhovets/momo'
ref: 'v3.2'
path: 'momo_v32'
- name: Checkout momo_v35
uses: actions/checkout@v3
with:
repository: 'morzhovets/momo'
ref: 'v3.5'
path: 'momo_v35'
- name: Checkout momo_v38
uses: actions/checkout@v3
with:
repository: 'morzhovets/momo'
ref: 'v3.8'
path: 'momo_v38'
- name: Checkout momo_cur
uses: actions/checkout@v3
with:
path: 'momo_cur'
- name: Setup Clang
uses: egor-tensin/setup-clang@v1
with:
version: ${{ matrix.clang_ver }}
- name: Build
run: |
mkdir build
clang++-${{ matrix.clang_ver }} -Imomo_v32 -O3 -DNDEBUG -march=native -std=c++17 -o build/momo_${{ matrix.type }}_1 src/momo_${{ matrix.type }}.cc
clang++-${{ matrix.clang_ver }} -Imomo_v35 -O3 -DNDEBUG -march=native -std=c++17 -o build/momo_${{ matrix.type }}_2 src/momo_${{ matrix.type }}.cc
clang++-${{ matrix.clang_ver }} -Imomo_v38/include -O3 -DNDEBUG -march=native -std=c++17 -o build/momo_${{ matrix.type }}_3 src/momo_${{ matrix.type }}.cc
clang++-${{ matrix.clang_ver }} -Imomo_cur/include -O3 -DNDEBUG -march=native -std=c++17 -o build/momo_${{ matrix.type }}_0 src/momo_${{ matrix.type }}.cc
- name: Test
run: |
sudo nice -n-20 ionice -c1 -n0 sudo -u $USER python3 momo_${{ matrix.type }}.py