-
-
Notifications
You must be signed in to change notification settings - Fork 25
80 lines (68 loc) · 2.02 KB
/
manual_benchmarking.yaml
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
name: "Manual: Benchmarking"
on:
workflow_dispatch
jobs:
python:
runs-on: ubuntu-latest
name: Python Benchmark
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Lib Install
run: |
python -m pip install --upgrade requests wurlitzer
python -m pip install -r reqs/requirements.txt
python -m pip install -r scripts/benchmark/requirements.txt
make python
- name: Run Benchmark
run: python scripts/benchmark/benchmark_python.py
- name: Upload
uses: actions/upload-artifact@v1
with:
name: py_benchmark
path: doc/JOSS/py.PNG
cpp:
runs-on: ubuntu-latest
name: C/C++/SML Benchmark
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Package Install
run: |
python -m pip install --upgrade requests
python -m pip install -r reqs/requirements.txt
make python
pip install matplotlib func_timeout wurlitzer
sudo add-apt-repository ppa:kflarsen/mosml
sudo apt update
sudo apt install mosml
- name: TROLL Install
run: |
cd ~
ls -las
wget http://hjemmesider.diku.dk/~torbenm/Troll/Troll.zip
unzip Troll.zip
patch Main.sml /home/runner/work/GNOLL/GNOLL/scripts/benchmark/troll_noprint.patch
sudo chmod +x compile.sh
./compile.sh
ls -las
pwd
- name: DiceParser Install
run: |
cd ~
git clone https://github.com/EBailey67/DiceParser
cd DiceParser
make
cp diceparser ~/diceparser
ls -las
pwd
- name: Benchmark
run: |
python3 scripts/benchmark/benchmark_cmd.py
- name: Upload
uses: actions/upload-artifact@v1
with:
name: cmd_benchmark
path: doc/JOSS/C++.PNG