-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbench.sh
More file actions
executable file
·47 lines (37 loc) · 994 Bytes
/
Copy pathbench.sh
File metadata and controls
executable file
·47 lines (37 loc) · 994 Bytes
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
#!/bin/bash
declare -a qarr=("6" "30" "210" "2310")
declare -a modearr=("1" "2" "3" "4")
declare -a numarr=("65521" "4294967291" "0")
#declare -a numarr=("100")
rm -rf bench_build
mkdir bench_build
if [ -z "$1" ]
then
compiler="g++"
else
compiler="$1"
fi
mv CMakeLists.txt CMakeLists.txt.bak
sed -e "/metaprimes/d" -e "s/g++/${compiler}/g" CMakeLists.txt.bak > CMakeLists.txt
cd bench_build
echo "============ C++11 and variadic templates ================"
for i in "${modearr[@]}"
do
echo ">>>>>>>>>>>> ${qarr[$i-1]}k+r <<<<<<<<<<<"
for n in "${numarr[@]}"
do
cmake -DCPP="11" -DMODE="${i}" -DNUM="${n}" -B. -H..; time make
done
# read -p "Press [Enter] key to continue..."
done
echo "============ Using Loki::Typelist ================"
for i in "${modearr[@]}"
do
echo ">>>>>>>>>>>> ${qarr[$i-1]}k+r <<<<<<<<<<<"
for n in "${numarr[@]}"
do
cmake -DCPP="98" -DMODE="${i}" -DNUM="${n}" -B. -H..; time make
done
done
cd ..
mv CMakeLists.txt.bak CMakeLists.txt