Skip to content
Snippets Groups Projects
Commit e3afda30 authored by Florian Heinrichs's avatar Florian Heinrichs
Browse files

benchmark-script for gp

parent 15a8eab6
Branches
No related merge requests found
#!/bin/bash
BIN=../build/gp-bnb
OPT="-l gp"
TIMEOUT=600
if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then
echo "Aufruf: sh execute.sh [PATH-TO-BINARY]"
exit 0
elif [ -n "$1" ]; then
BIN=$1
fi
for i in $(ls sample2); do
FILE=sample/${i}
NAME="$(echo "${i}" | sed 's/^.*_//' | sed 's/.graph//')"
IFS=' ' read -r -a A <<< "$(head -n 1 ${FILE})"
echo "##################################################################################"
echo "Start partitioning of graph ${NAME} (#nodes:${A[0]};#edges:${A[1]})"
echo "##################################################################################"
timeout ${TIMEOUT} ${BIN} ${FILE} ${OPT}
echo ""
done
exit 0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment