-
Notifications
You must be signed in to change notification settings - Fork 2
71 lines (63 loc) · 2.23 KB
/
perf_gcc.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
name: Perf GCC
on: [push, pull_request]
jobs:
build-and-test:
strategy:
matrix:
include:
- type: 'unordered_map'
gcc_ver: '12'
- type: 'unordered_map_open'
gcc_ver: '12'
- type: 'map'
gcc_ver: '12'
- type: 'data_table_static'
gcc_ver: '12'
runs-on: ubuntu-22.04
steps:
- name: Checkout hash-table-shootout
uses: actions/checkout@v4
with:
repository: 'morzhovets/hash-table-shootout'
ref: 'regress'
- name: Checkout momo_v32
uses: actions/checkout@v4
with:
repository: 'morzhovets/momo'
ref: 'v3.2'
path: 'momo_v32'
- name: Checkout momo_v35
uses: actions/checkout@v4
with:
repository: 'morzhovets/momo'
ref: 'v3.5'
path: 'momo_v35'
- name: Checkout momo_v37
uses: actions/checkout@v4
with:
repository: 'morzhovets/momo'
ref: 'v3.7'
path: 'momo_v37'
- name: Checkout momo_v39
uses: actions/checkout@v4
with:
repository: 'morzhovets/momo'
ref: 'v3.9'
path: 'momo_v39'
- name: Checkout momo_cur
uses: actions/checkout@v4
with:
path: 'momo_cur'
- name: Install GCC
run: sudo apt install g++-${{ matrix.gcc_ver }}
- name: Build
run: |
mkdir build
g++-${{ matrix.gcc_ver }} -Imomo_v32 -O3 -DNDEBUG -march=native -std=c++17 -o build/momo_${{ matrix.type }}_1 src/momo_${{ matrix.type }}.cc
g++-${{ matrix.gcc_ver }} -Imomo_v35 -O3 -DNDEBUG -march=native -std=c++17 -o build/momo_${{ matrix.type }}_2 src/momo_${{ matrix.type }}.cc
g++-${{ matrix.gcc_ver }} -Imomo_v37 -O3 -DNDEBUG -march=native -std=c++17 -o build/momo_${{ matrix.type }}_3 src/momo_${{ matrix.type }}.cc
g++-${{ matrix.gcc_ver }} -Imomo_v39/include -O3 -DNDEBUG -march=native -std=c++17 -o build/momo_${{ matrix.type }}_4 src/momo_${{ matrix.type }}.cc
g++-${{ matrix.gcc_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