aboutsummaryrefslogtreecommitdiff
path: root/benchmark.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xbenchmark.sh65
1 files changed, 65 insertions, 0 deletions
diff --git a/benchmark.sh b/benchmark.sh
new file mode 100755
index 0000000..8f0ccc6
--- /dev/null
+++ b/benchmark.sh
@@ -0,0 +1,65 @@
1#!/bin/bash
2if [ -z "$1" ]; then
3 echo "No argument provided. Possible values:"
4 echo " - performance"
5 echo " - architecture"
6 echo " - memory"
7 echo " - nodes"
8 echo " - multithread"
9 exit 1
10fi
11
12input=$1
13ARGS="h48h6k2"
14THREADS=8
15
16case $input in
17 performance)
18 echo "Performance Benchmark..."
19 make clean
20 THREADS=$THREADS ./configure.sh
21 TOOL=benchmark_performance TOOLARGS="$ARGS" make tool
22 ;;
23 architecture)
24 echo "Architecture Benchmark..."
25 make clean
26 THREADS=$THREADS ./configure.sh
27 TOOL=benchmark_common TOOLARGS="$ARGS" make tool
28 make clean
29 THREADS=$THREADS ARCH=PORTABLE ./configure.sh
30 TOOL=benchmark_common TOOLARGS="$ARGS" make tool
31 ;;
32 memory)
33 echo "Memory Benchmark..."
34 for i in {0..7}; do
35 make clean
36 THREADS=$THREADS ./configure.sh
37 M_ARGS="h48h${i}k2"
38 TOOL=benchmark_common TOOLARGS="$M_ARGS" make tool
39 done
40 ;;
41 nodes)
42 echo "Nodes Benchmark..."
43 make clean
44 THREADS=1 ./configure.sh
45 TOOL=benchmark_nodes TOOLARGS="$ARGS" make tool
46 ;;
47 multithread)
48 echo "Multithread Benchmark..."
49 make clean
50 for i in 1 2 4 8 16; do
51 make clean
52 THREADS=$i ./configure.sh
53 TOOL=benchmark_common TOOLARGS="$ARGS" make tool
54 done
55 ;;
56 *)
57 echo "Invalid argument. Possible values:"
58 echo " - performance"
59 echo " - architecture"
60 echo " - memory"
61 echo " - nodes"
62 echo " - multithread"
63 exit 1
64 ;;
65esac \ No newline at end of file

Generated with cgit - Back to sebastiano.tronto.net