diff options
| author | enricotenuti <tenutz_27@outlook.it> | 2024-10-21 16:36:13 +0200 |
|---|---|---|
| committer | enricotenuti <tenutz_27@outlook.it> | 2024-10-21 16:36:13 +0200 |
| commit | 09fb2900d3811d76ef145e5f960e5b824bb0bfb6 (patch) | |
| tree | 87a9cc8caa68218e76460841164289dd1bfe1c5b /benchmark.sh | |
| parent | ea25a7ccad625c4e664dfd114147971b8a2677f3 (diff) | |
| download | nissy-core-09fb2900d3811d76ef145e5f960e5b824bb0bfb6.tar.gz nissy-core-09fb2900d3811d76ef145e5f960e5b824bb0bfb6.zip | |
Benchmark setup
Diffstat (limited to '')
| -rwxr-xr-x | benchmark.sh | 65 |
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 | ||
| 2 | if [ -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 | ||
| 10 | fi | ||
| 11 | |||
| 12 | input=$1 | ||
| 13 | ARGS="h48h6k2" | ||
| 14 | THREADS=8 | ||
| 15 | |||
| 16 | case $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 | ;; | ||
| 65 | esac \ No newline at end of file | ||
