From 09fb2900d3811d76ef145e5f960e5b824bb0bfb6 Mon Sep 17 00:00:00 2001 From: enricotenuti Date: Mon, 21 Oct 2024 16:36:13 +0200 Subject: Benchmark setup --- benchmark.sh | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100755 benchmark.sh (limited to 'benchmark.sh') diff --git a/benchmark.sh b/benchmark.sh new file mode 100755 index 0000000..8f0ccc6 --- /dev/null +++ b/benchmark.sh @@ -0,0 +1,65 @@ +#!/bin/bash +if [ -z "$1" ]; then + echo "No argument provided. Possible values:" + echo " - performance" + echo " - architecture" + echo " - memory" + echo " - nodes" + echo " - multithread" + exit 1 +fi + +input=$1 +ARGS="h48h6k2" +THREADS=8 + +case $input in + performance) + echo "Performance Benchmark..." + make clean + THREADS=$THREADS ./configure.sh + TOOL=benchmark_performance TOOLARGS="$ARGS" make tool + ;; + architecture) + echo "Architecture Benchmark..." + make clean + THREADS=$THREADS ./configure.sh + TOOL=benchmark_common TOOLARGS="$ARGS" make tool + make clean + THREADS=$THREADS ARCH=PORTABLE ./configure.sh + TOOL=benchmark_common TOOLARGS="$ARGS" make tool + ;; + memory) + echo "Memory Benchmark..." + for i in {0..7}; do + make clean + THREADS=$THREADS ./configure.sh + M_ARGS="h48h${i}k2" + TOOL=benchmark_common TOOLARGS="$M_ARGS" make tool + done + ;; + nodes) + echo "Nodes Benchmark..." + make clean + THREADS=1 ./configure.sh + TOOL=benchmark_nodes TOOLARGS="$ARGS" make tool + ;; + multithread) + echo "Multithread Benchmark..." + make clean + for i in 1 2 4 8 16; do + make clean + THREADS=$i ./configure.sh + TOOL=benchmark_common TOOLARGS="$ARGS" make tool + done + ;; + *) + echo "Invalid argument. Possible values:" + echo " - performance" + echo " - architecture" + echo " - memory" + echo " - nodes" + echo " - multithread" + exit 1 + ;; +esac \ No newline at end of file -- cgit v1.3