FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
lpython/bench.sh at main · certik/lpython · GitHub
certik
/
lpython
Public
forked from
lcompilers/lpython
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
lpython
/
bench.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
51 lines (43 loc) · 972 Bytes
Breadcrumbs
lpython
/
bench.sh
Copy path
File metadata and controls
executable file
·
51 lines (43 loc) · 972 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#!
/usr/bin/env bash
#
#
Compile the latest master and a given MR in Release mode from scratch.
#
#
Example:
#
#
CC=gcc-10 CXX=g++-10 ./bench.sh 448
#
bench/master/src/bin/parse
#
bench/mr/src/bin/parse
#
bench/master/src/bin/parse2
#
bench/mr/src/bin/parse2
set
-ex
MR=
$1
if
[[
$MR
==
"
"
]]
;
then
echo
"
Specify the MR number as an argument
"
exit
1
fi
echo
"
Benchmarking the latest master against the MR !
$1
"
rm -rf bench
mkdir bench
cd
bench
git clone https://gitlab.com/lfortran/lfortran
cd
lfortran
./build0.sh
cd
..
mkdir master
cd
master
#
cmake -DCMAKE_CXX_FLAGS_RELEASE="-Wall -Wextra -O3 -funroll-loops -DNDEBUG" ../lfortran
cmake -DWITH_FMT=yes ../lfortran
make -j
cd
..
cd
lfortran
git clean -dfx
git fetch origin merge-requests/
$MR
/head:mr-origin-
$MR
git checkout mr-origin-
$MR
./build0.sh
cd
..
mkdir mr
cd
mr
#
cmake -DCMAKE_CXX_FLAGS_RELEASE="-Wall -Wextra -O3 -funroll-loops -DNDEBUG" ../lfortran
cmake -DWITH_FMT=yes ../lfortran
make -j
cd
..
Back
|
FazBrowse Home
|
New Git URL