-
Notifications
You must be signed in to change notification settings - Fork 1
/
run.sh
executable file
·62 lines (44 loc) · 1.1 KB
/
run.sh
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
#!/bin/bash
set -x
exec 3>&1 4>&2
trap 'exec 2>&4 1>&3' 0 1 2 3
exec 1>exprtk_perftest_`date "+%Y%m%d%H%M%S"`.log 2>&1
# Define compiler
if [ "$#" -eq 1 ]; then
export CC=$1
else
export CC='g++-6'
fi
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Compile benchmarks
make clean all
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Run vector benchmarks - parameter: vector size
./exprtk_vector_benchmark 100
./exprtk_vector_benchmark 500
./exprtk_vector_benchmark 1000
./exprtk_vector_benchmark 5000
./exprtk_vector_benchmark 10000
./exprtk_vector_benchmark 50000
./exprtk_vector_benchmark 100000
./exprtk_vector_benchmark 500000
./exprtk_vector_benchmark 1000000
./exprtk_vector_benchmark 5000000
./exprtk_vector_benchmark 10000000
./exprtk_vector_benchmark 50000000
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Run general computation benchmark
./exprtk_benchmark
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Dump os/kernal version info
uname -a
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Dump CPU details
lscpu
cat /proc/cpuinfo
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~