From 346d0bb8dad53824750556db4599e46ce79aff95 Mon Sep 17 00:00:00 2001 From: Peter Heywood Date: Thu, 31 Oct 2024 18:06:21 +0000 Subject: [PATCH] WIP: Demo scaling benchmark sweep setup Part of #10. Mostly done now to make sure performance JSON data is usable. Will be refined over time --- .gitignore | 1 + data/scaling/bench.sh | 21 +++++++++++++ data/scaling/params.csv | 9 ++++++ tools/plot-performance.py | 65 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 96 insertions(+) create mode 100755 data/scaling/bench.sh create mode 100644 data/scaling/params.csv create mode 100755 tools/plot-performance.py 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