diff --git a/.gitignore b/.gitignore index 17a35ba..595a504 100644 --- a/.gitignore +++ b/.gitignore @@ -507,6 +507,7 @@ venv**/ .venv**/ *.png *.csv +*.sh # vscode configuration files (debugging etc) .vscode/ diff --git a/data/scaling/bench.sh b/data/scaling/bench.sh new file mode 100755 index 0000000..327bcd5 --- /dev/null +++ b/data/scaling/bench.sh @@ -0,0 +1,21 @@ +#! /usr/bin/env bash +# Demo bash script showing how a scaling benchmark might be carried out. + +# change to this directory +SCRIPT_DIR=$(realpath $(dirname "$0")) +cd "$(dirname "$0")" +echo ${SCRIPT_DIR} + +BINARY=$(realpath ../../build/bin/Release/exatepp_abm) +PARAMS=$(realpath params.csv) +OUTPUT_DIR="outputs" +COUNT=$(($(wc -l <"$PARAMS") - 1)) + +mkdir -p ${OUTPUT_DIR} + +for ((i=0;i