Skip to content
Snippets Groups Projects
Commit c741814c authored by Reiner Jung's avatar Reiner Jung
Browse files

Adapted configuration value design to be faster on Jenkins.

parent f2b96f11
No related branches found
No related tags found
No related merge requests found
......@@ -238,24 +238,12 @@ RESULTS_DIR="${BASE_DIR}/results-${FRAMEWORK_NAME}"
RAWFN="${RESULTS_DIR}/raw"
# Initialize all unset parameters
if [ -z $SLEEP_TIME ]; then
SLEEP_TIME=30 ## 30
fi
if [ -z $NUM_OF_LOOPS ]; then
NUM_OF_LOOPS=10 ## 10
fi
if [ -z $THREADS ]; then
THREADS=1 ## 1
fi
if [ -z $RECURSION_DEPTH ]; then
RECURSION_DEPTH=10 ## 10
fi
if [ -z $TOTAL_NUM_OF_CALLS ]; then
TOTAL_NUM_OF_CALLS=2000000 ## 2000000
fi
if [ -z $METHOD_TIME ]; then
METHOD_TIME=0 ## 500000
fi
if [ -z $DEBUG ]; then
DEBUG=false ## false
fi
SLEEP_TIME=30 ## 30
NUM_OF_LOOPS=10 ## 10
THREADS=1 ## 1
RECURSION_DEPTH=10 ## 10
TOTAL_NUM_OF_CALLS=2000000 ## 2 000 000
METHOD_TIME=0 ## 500 000
DEBUG=false ## false
# end
## Moobench setup script
MOOBENCH_ARCHIVE="${BASE_DIR}/tools/benchmark/build/distributions/benchmark.tar"
experiment.rc
\ No newline at end of file
export SLEEP_TIME=30
export NUM_OF_LOOPS=10
export THREADS=1
export RECURSION_DEPTH=10
export TOTAL_NUM_OF_CALLS=200000
export METHOD_TIME=0
export DEBUG=false
......@@ -17,18 +17,20 @@ if [ ! -d "${BASE_DIR}" ] ; then
exit 1
fi
# load configuration and common functions
if [ -f "${BASE_DIR}/config.rc" ] ; then
source "${BASE_DIR}/config.rc"
MAIN_DIR="${BASE_DIR}/../../.."
if [ -f "${MAIN_DIR}/common-functions.sh" ] ; then
source "${MAIN_DIR}/common-functions.sh"
else
echo "Missing configuration: ${BASE_DIR}/config.rc"
echo "Missing library: ${MAIN_DIR}/common-functions.sh"
exit 1
fi
if [ -f "${MAIN_DIR}/frameworks/common-functions.sh" ] ; then
source "${MAIN_DIR}/frameworks/common-functions.sh"
# load configuration and common functions
if [ -f "${BASE_DIR}/config.rc" ] ; then
source "${BASE_DIR}/config.rc"
else
echo "Missing library: ${MAIN_DIR}/frameworks/common-functions.sh"
echo "Missing configuration: ${BASE_DIR}/config.rc"
exit 1
fi
......
##
# MooBench configuration parameter
source ${MAIN_DIR}/config.rc
# path setup
JAVA_BIN=`which java`
......
......@@ -17,25 +17,27 @@ if [ ! -d "${BASE_DIR}" ] ; then
exit 1
fi
# load configuration and common functions
if [ -f "${BASE_DIR}/config.rc" ] ; then
source "${BASE_DIR}/config.rc"
MAIN_DIR="${BASE_DIR}/../../.."
if [ -f "${MAIN_DIR}/common-functions.sh" ] ; then
source "${MAIN_DIR}/common-functions.sh"
else
echo "Missing configuration: ${BASE_DIR}/config.rc"
echo "Missing library: ${MAIN_DIR}/common-functions.sh"
exit 1
fi
if [ -f "${MAIN_DIR}/frameworks/common-functions.sh" ] ; then
source "${MAIN_DIR}/frameworks/common-functions.sh"
# load configuration and common functions
if [ -f "${BASE_DIR}/config.rc" ] ; then
source "${BASE_DIR}/config.rc"
else
echo "Missing library: ${MAIN_DIR}/frameworks/common-functions.sh"
echo "Missing configuration: ${BASE_DIR}/config.rc"
exit 1
fi
if [ -f "${BASE_DIR}/functions.sh" ] ; then
source "${BASE_DIR}/functions.sh"
else
echo "Missing: ${BASE_DIR}/functions.sh"
echo "Missing functions: ${BASE_DIR}/functions.sh"
exit 1
fi
if [ -f "${BASE_DIR}/labels.sh" ] ; then
......
# benchmark setup script
source ${MAIN_DIR}/config.rc
PYTHON=`which python3`
PIP=`which pip`
......@@ -11,7 +13,6 @@ GIT=`which git`
RSCRIPT_PATH="${BASE_DIR}/../../statistics.r"
MAIN_DIR="${BASE_DIR}/../../.."
DATA_DIR="${BASE_DIR}/data"
KIEKER_4_PYTHON_REPO_URL="https://github.com/rju/kieker-lang-pack-python.git"
......
......@@ -17,18 +17,20 @@ if [ ! -d "${BASE_DIR}" ] ; then
exit 1
fi
# load configuration and common functions
if [ -f "${BASE_DIR}/config.rc" ] ; then
source "${BASE_DIR}/config.rc"
MAIN_DIR="${BASE_DIR}/../.."
if [ -f "${MAIN_DIR}/common-functions.sh" ] ; then
source "${MAIN_DIR}/common-functions.sh"
else
echo "Missing configuration: ${BASE_DIR}/config.rc"
echo "Missing library: ${MAIN_DIR}/common-functions.sh"
exit 1
fi
if [ -f "${BASE_DIR}/../common-functions.sh" ] ; then
source "${BASE_DIR}/../common-functions.sh"
# load configuration and common functions
if [ -f "${BASE_DIR}/config.rc" ] ; then
source "${BASE_DIR}/config.rc"
else
echo "Missing library: ${BASE_DIR}/../common-functions.sh"
echo "Missing configuration: ${BASE_DIR}/config.rc"
exit 1
fi
......
# OpenTelementry configuration
source ${MAIN_DIR}/config.rc
JAVA_BIN=`which java`
RSCRIPT_PATH="${BASE_DIR}/../statistics.r"
......
......@@ -17,18 +17,20 @@ if [ ! -d "${BASE_DIR}" ] ; then
exit 1
fi
# load configuration and common functions
if [ -f "${BASE_DIR}/config.rc" ] ; then
source "${BASE_DIR}/config.rc"
MAIN_DIR="${BASE_DIR}/../.."
if [ -f "${MAIN_DIR}/common-functions.sh" ] ; then
source "${MAIN_DIR}/common-functions.sh"
else
echo "Missing configuration: ${BASE_DIR}/config.rc"
echo "Missing library: ${MAIN_DIR}/common-functions.sh"
exit 1
fi
if [ -f "${BASE_DIR}/../common-functions.sh" ] ; then
source "${BASE_DIR}/../common-functions.sh"
# load configuration and common functions
if [ -f "${BASE_DIR}/config.rc" ] ; then
source "${BASE_DIR}/config.rc"
else
echo "Missing library: ${BASE_DIR}/../common-functions.sh"
echo "Missing configuration: ${BASE_DIR}/config.rc"
exit 1
fi
......
# inspectIT configurations
source ${MAIN_DIR}/config.rc
JAVA_BIN=`which java`
RSCRIPT_PATH="${BASE_DIR}/../statistics.r"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment