diff --git a/frameworks/OpenTelemetry/benchmark.sh b/frameworks/OpenTelemetry/benchmark.sh index 2e671693ab8a14736695ef865afbb2aa2a64194d..96f4de191ace5bbf204146190e81836f455483f8 100755 --- a/frameworks/OpenTelemetry/benchmark.sh +++ b/frameworks/OpenTelemetry/benchmark.sh @@ -122,4 +122,5 @@ mv "${BASE_DIR}/OpenTelemetry.log" "${RESULTS_DIR}/OpenTelemetry.log" [ -f "${RESULTS_DIR}/hotspot-1-${RECURSION_DEPTH}-1.log" ] && grep "<task " "${RESULTS_DIR}/"hotspot-*.log > "${RESULTS_DIR}/OpenTelemetry.log" [ -f "${BASE_DIR}/errorlog.txt" ] && mv "${BASE_DIR}/errorlog.txt" "${RESULTS_DIR}" +exit 0 # end diff --git a/frameworks/common-functions.sh b/frameworks/common-functions.sh index 9f520f3f4227088234f7d09e1ba476e35c415156..e49f8a2eb225250122099c555bd954b466435c6a 100755 --- a/frameworks/common-functions.sh +++ b/frameworks/common-functions.sh @@ -43,6 +43,11 @@ function createRLabels() { ## Generate Results file function runStatistics() { +if [ "${TOTAL_NUM_OF_CALLS}" == 1 ] ; then + export SKIP=0 +else + export SKIP=${TOTAL_NUM_OF_CALLS}/2 +fi R --vanilla --silent << EOF results_fn="${RAWFN}" out_yaml_fn="${RESULTS_DIR}/results.yaml" @@ -51,7 +56,7 @@ configs.recursion=${RECURSION_DEPTH} configs.labels=c($LABELS) configs.framework_name="${FRAMEWORK_NAME}" results.count=${TOTAL_NUM_OF_CALLS} -results.skip=${TOTAL_NUM_OF_CALLS}/2 +results.skip=${SKIP} source("${RSCRIPT_PATH}") EOF } diff --git a/test.rc b/test.rc index 7ae58674bb8c376a19e5034c086f0c13c28fbde0..87bfb6de146e85e9f82a48dc9c48525ec4e0c705 100644 --- a/test.rc +++ b/test.rc @@ -3,6 +3,6 @@ export NUM_OF_LOOPS=1 export THREADS=1 export RECURSION_DEPTH=1 export TOTAL_NUM_OF_CALLS=1 -export METHOD_TIME=1 +export METHOD_TIME=0 export DEBUG=false