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

minor fix in benchmark to correct the exit code.

parent c49c162a
No related branches found
No related tags found
No related merge requests found
...@@ -122,4 +122,5 @@ mv "${BASE_DIR}/OpenTelemetry.log" "${RESULTS_DIR}/OpenTelemetry.log" ...@@ -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 "${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}" [ -f "${BASE_DIR}/errorlog.txt" ] && mv "${BASE_DIR}/errorlog.txt" "${RESULTS_DIR}"
exit 0
# end # end
...@@ -43,6 +43,11 @@ function createRLabels() { ...@@ -43,6 +43,11 @@ function createRLabels() {
## Generate Results file ## Generate Results file
function runStatistics() { 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 R --vanilla --silent << EOF
results_fn="${RAWFN}" results_fn="${RAWFN}"
out_yaml_fn="${RESULTS_DIR}/results.yaml" out_yaml_fn="${RESULTS_DIR}/results.yaml"
...@@ -51,7 +56,7 @@ configs.recursion=${RECURSION_DEPTH} ...@@ -51,7 +56,7 @@ configs.recursion=${RECURSION_DEPTH}
configs.labels=c($LABELS) configs.labels=c($LABELS)
configs.framework_name="${FRAMEWORK_NAME}" configs.framework_name="${FRAMEWORK_NAME}"
results.count=${TOTAL_NUM_OF_CALLS} results.count=${TOTAL_NUM_OF_CALLS}
results.skip=${TOTAL_NUM_OF_CALLS}/2 results.skip=${SKIP}
source("${RSCRIPT_PATH}") source("${RSCRIPT_PATH}")
EOF EOF
} }
......
...@@ -3,6 +3,6 @@ export NUM_OF_LOOPS=1 ...@@ -3,6 +3,6 @@ export NUM_OF_LOOPS=1
export THREADS=1 export THREADS=1
export RECURSION_DEPTH=1 export RECURSION_DEPTH=1
export TOTAL_NUM_OF_CALLS=1 export TOTAL_NUM_OF_CALLS=1
export METHOD_TIME=1 export METHOD_TIME=0
export DEBUG=false export DEBUG=false
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