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

Fixed RECURSION_DEPTH

parent 14c401f1
No related branches found
No related tags found
No related merge requests found
...@@ -46,7 +46,7 @@ echo "NUM_LOOPS=${NUM_LOOPS}" >>${RESULTS_DIR}configuration.txt ...@@ -46,7 +46,7 @@ echo "NUM_LOOPS=${NUM_LOOPS}" >>${RESULTS_DIR}configuration.txt
echo "TOTALCALLS=${TOTALCALLS}" >>${RESULTS_DIR}configuration.txt echo "TOTALCALLS=${TOTALCALLS}" >>${RESULTS_DIR}configuration.txt
echo "METHODTIME=${METHODTIME}" >>${RESULTS_DIR}configuration.txt echo "METHODTIME=${METHODTIME}" >>${RESULTS_DIR}configuration.txt
echo "THREADS=${THREADS}" >>${RESULTS_DIR}configuration.txt echo "THREADS=${THREADS}" >>${RESULTS_DIR}configuration.txt
echo "MAXRECURSIONDEPTH=${MAXRECURSIONDEPTH}" >>${RESULTS_DIR}configuration.txt echo "RECURSION_DEPTH=${RECURSION_DEPTH}" >>${RESULTS_DIR}configuration.txt
sync sync
## Execute Benchmark ## Execute Benchmark
...@@ -54,8 +54,8 @@ sync ...@@ -54,8 +54,8 @@ sync
for ((i=1;i<=${NUM_LOOPS};i+=1)); do for ((i=1;i<=${NUM_LOOPS};i+=1)); do
echo "## Starting iteration ${i}/${NUM_LOOPS}" echo "## Starting iteration ${i}/${NUM_LOOPS}"
for ((j=1;j<=${MAXRECURSIONDEPTH};j+=1)); do for ((j=1;j<=${RECURSION_DEPTH};j+=1)); do
echo "# Starting recursion ${i}.${j}/${MAXRECURSIONDEPTH}" echo "# Starting recursion ${i}.${j}/${RECURSION_DEPTH}"
# 1 No instrumentation # 1 No instrumentation
echo " # ${i}.1 No instrumentation" echo " # ${i}.1 No instrumentation"
......
...@@ -46,7 +46,7 @@ echo "NUM_LOOPS=${NUM_LOOPS}" >>${RESULTS_DIR}configuration.txt ...@@ -46,7 +46,7 @@ echo "NUM_LOOPS=${NUM_LOOPS}" >>${RESULTS_DIR}configuration.txt
echo "TOTALCALLS=${TOTALCALLS}" >>${RESULTS_DIR}configuration.txt echo "TOTALCALLS=${TOTALCALLS}" >>${RESULTS_DIR}configuration.txt
echo "METHODTIME=${METHODTIME}" >>${RESULTS_DIR}configuration.txt echo "METHODTIME=${METHODTIME}" >>${RESULTS_DIR}configuration.txt
echo "THREADS=${THREADS}" >>${RESULTS_DIR}configuration.txt echo "THREADS=${THREADS}" >>${RESULTS_DIR}configuration.txt
echo "MAXRECURSIONDEPTH=${MAXRECURSIONDEPTH}" >>${RESULTS_DIR}configuration.txt echo "RECURSION_DEPTH=${RECURSION_DEPTH}" >>${RESULTS_DIR}configuration.txt
sync sync
## Execute Benchmark ## Execute Benchmark
...@@ -54,8 +54,8 @@ sync ...@@ -54,8 +54,8 @@ sync
for ((i=1;i<=${NUM_LOOPS};i+=1)); do for ((i=1;i<=${NUM_LOOPS};i+=1)); do
echo "## Starting iteration ${i}/${NUM_LOOPS}" echo "## Starting iteration ${i}/${NUM_LOOPS}"
for ((j=1;j<=${MAXRECURSIONDEPTH};j+=1)); do for ((j=1;j<=${RECURSION_DEPTH};j+=1)); do
echo "# Starting recursion ${i}.${j}/${MAXRECURSIONDEPTH}" echo "# Starting recursion ${i}.${j}/${RECURSION_DEPTH}"
# # 1 No instrumentation # # 1 No instrumentation
# echo " # ${i}.1 No instrumentation" # echo " # ${i}.1 No instrumentation"
......
...@@ -11,11 +11,11 @@ BASE_DIR= ...@@ -11,11 +11,11 @@ BASE_DIR=
SLEEP_TIME=30 ## 30 SLEEP_TIME=30 ## 30
NUM_LOOPS=10 ## 10 NUM_LOOPS=10 ## 10
THREADS=1 ## 1 THREADS=1 ## 1
MAXRECURSIONDEPTH=10 ## 10 RECURSION_DEPTH=10 ## 10
TOTALCALLS=2000000 ## 2000000 TOTALCALLS=2000000 ## 2000000
METHODTIME=500000 ## 500000 METHODTIME=500000 ## 500000
TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 2 \* ${MAXRECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEP_TIME} \* 2 \* ${NUM_LOOPS} \* ${MAXRECURSIONDEPTH}` TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 2 \* ${RECURSION_DEPTH} \* ${NUM_LOOPS} + ${SLEEP_TIME} \* 2 \* ${NUM_LOOPS} \* ${RECURSION_DEPTH}`
echo "Experiment will take circa ${TIME} seconds." echo "Experiment will take circa ${TIME} seconds."
# determine correct classpath separator # determine correct classpath separator
...@@ -61,7 +61,7 @@ echo "NUM_LOOPS=${NUM_LOOPS}" >>${RESULTS_DIR}configuration.txt ...@@ -61,7 +61,7 @@ echo "NUM_LOOPS=${NUM_LOOPS}" >>${RESULTS_DIR}configuration.txt
echo "TOTALCALLS=${TOTALCALLS}" >>${RESULTS_DIR}configuration.txt echo "TOTALCALLS=${TOTALCALLS}" >>${RESULTS_DIR}configuration.txt
echo "METHODTIME=${METHODTIME}" >>${RESULTS_DIR}configuration.txt echo "METHODTIME=${METHODTIME}" >>${RESULTS_DIR}configuration.txt
echo "THREADS=${THREADS}" >>${RESULTS_DIR}configuration.txt echo "THREADS=${THREADS}" >>${RESULTS_DIR}configuration.txt
echo "MAXRECURSIONDEPTH=${MAXRECURSIONDEPTH}" >>${RESULTS_DIR}configuration.txt echo "RECURSION_DEPTH=${RECURSION_DEPTH}" >>${RESULTS_DIR}configuration.txt
sync sync
## Execute Benchmark ## Execute Benchmark
...@@ -69,8 +69,8 @@ sync ...@@ -69,8 +69,8 @@ sync
for ((i=1;i<=${NUM_LOOPS};i+=1)); do for ((i=1;i<=${NUM_LOOPS};i+=1)); do
echo "## Starting iteration ${i}/${NUM_LOOPS}" echo "## Starting iteration ${i}/${NUM_LOOPS}"
for ((j=1;j<=${MAXRECURSIONDEPTH};j+=1)); do for ((j=1;j<=${RECURSION_DEPTH};j+=1)); do
echo "# Starting recursion ${i}.${j}/${MAXRECURSIONDEPTH}" echo "# Starting recursion ${i}.${j}/${RECURSION_DEPTH}"
# 1 No logging # 1 No logging
echo " # ${i}.1 No logging (null writer)" echo " # ${i}.1 No logging (null writer)"
......
...@@ -11,11 +11,11 @@ BASE_DIR= ...@@ -11,11 +11,11 @@ BASE_DIR=
SLEEP_TIME=30 ## 30 SLEEP_TIME=30 ## 30
NUM_LOOPS=10 ## 10 NUM_LOOPS=10 ## 10
THREADS=1 ## 1 THREADS=1 ## 1
MAXRECURSIONDEPTH=10 ## 10 RECURSION_DEPTH=10 ## 10
TOTALCALLS=2000000 ## 2000000 TOTALCALLS=2000000 ## 2000000
METHODTIME=500000 ## 500000 METHODTIME=500000 ## 500000
TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${MAXRECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEP_TIME} \* 4 \* ${NUM_LOOPS} \* ${MAXRECURSIONDEPTH}` TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSION_DEPTH} \* ${NUM_LOOPS} + ${SLEEP_TIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSION_DEPTH}`
echo "Experiment will take circa ${TIME} seconds." echo "Experiment will take circa ${TIME} seconds."
# determine correct classpath separator # determine correct classpath separator
...@@ -62,7 +62,7 @@ echo "NUM_LOOPS=${NUM_LOOPS}" >>${RESULTS_DIR}configuration.txt ...@@ -62,7 +62,7 @@ echo "NUM_LOOPS=${NUM_LOOPS}" >>${RESULTS_DIR}configuration.txt
echo "TOTALCALLS=${TOTALCALLS}" >>${RESULTS_DIR}configuration.txt echo "TOTALCALLS=${TOTALCALLS}" >>${RESULTS_DIR}configuration.txt
echo "METHODTIME=${METHODTIME}" >>${RESULTS_DIR}configuration.txt echo "METHODTIME=${METHODTIME}" >>${RESULTS_DIR}configuration.txt
echo "THREADS=${THREADS}" >>${RESULTS_DIR}configuration.txt echo "THREADS=${THREADS}" >>${RESULTS_DIR}configuration.txt
echo "MAXRECURSIONDEPTH=${MAXRECURSIONDEPTH}" >>${RESULTS_DIR}configuration.txt echo "RECURSION_DEPTH=${RECURSION_DEPTH}" >>${RESULTS_DIR}configuration.txt
sync sync
## Execute Benchmark ## Execute Benchmark
...@@ -70,9 +70,9 @@ sync ...@@ -70,9 +70,9 @@ sync
for ((i=1;i<=${NUM_LOOPS};i+=1)); do for ((i=1;i<=${NUM_LOOPS};i+=1)); do
echo "## Starting iteration ${i}/${NUM_LOOPS}" echo "## Starting iteration ${i}/${NUM_LOOPS}"
for ((j=1;j<=${MAXRECURSIONDEPTH};j+=1)); do for ((j=1;j<=${RECURSION_DEPTH};j+=1)); do
RECDEPTH=$[2**($j-1)] RECDEPTH=$[2**($j-1)]
echo "# Starting recursion ${i}.${j}/${MAXRECURSIONDEPTH}" echo "# Starting recursion ${i}.${j}/${RECURSION_DEPTH}"
# 1 No instrumentation # 1 No instrumentation
echo " # ${i}.1 No instrumentation" echo " # ${i}.1 No instrumentation"
......
...@@ -11,11 +11,11 @@ BASE_DIR= ...@@ -11,11 +11,11 @@ BASE_DIR=
SLEEP_TIME=30 ## 30 SLEEP_TIME=30 ## 30
NUM_LOOPS=10 ## 10 NUM_LOOPS=10 ## 10
THREADS=1 ## 1 THREADS=1 ## 1
MAXRECURSIONDEPTH=10 ## 10 RECURSION_DEPTH=10 ## 10
TOTALCALLS=2000000 ## 2000000 TOTALCALLS=2000000 ## 2000000
METHODTIME=500000 ## 500000 METHODTIME=500000 ## 500000
TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${MAXRECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEP_TIME} \* 4 \* ${NUM_LOOPS} \* ${MAXRECURSIONDEPTH}` TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSION_DEPTH} \* ${NUM_LOOPS} + ${SLEEP_TIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSION_DEPTH}`
echo "Experiment will take circa ${TIME} seconds." echo "Experiment will take circa ${TIME} seconds."
# determine correct classpath separator # determine correct classpath separator
...@@ -62,7 +62,7 @@ echo "NUM_LOOPS=${NUM_LOOPS}" >>${RESULTS_DIR}configuration.txt ...@@ -62,7 +62,7 @@ echo "NUM_LOOPS=${NUM_LOOPS}" >>${RESULTS_DIR}configuration.txt
echo "TOTALCALLS=${TOTALCALLS}" >>${RESULTS_DIR}configuration.txt echo "TOTALCALLS=${TOTALCALLS}" >>${RESULTS_DIR}configuration.txt
echo "METHODTIME=${METHODTIME}" >>${RESULTS_DIR}configuration.txt echo "METHODTIME=${METHODTIME}" >>${RESULTS_DIR}configuration.txt
echo "THREADS=${THREADS}" >>${RESULTS_DIR}configuration.txt echo "THREADS=${THREADS}" >>${RESULTS_DIR}configuration.txt
echo "MAXRECURSIONDEPTH=${MAXRECURSIONDEPTH}" >>${RESULTS_DIR}configuration.txt echo "RECURSION_DEPTH=${RECURSION_DEPTH}" >>${RESULTS_DIR}configuration.txt
sync sync
## Execute Benchmark ## Execute Benchmark
...@@ -70,8 +70,8 @@ sync ...@@ -70,8 +70,8 @@ sync
for ((i=1;i<=${NUM_LOOPS};i+=1)); do for ((i=1;i<=${NUM_LOOPS};i+=1)); do
echo "## Starting iteration ${i}/${NUM_LOOPS}" echo "## Starting iteration ${i}/${NUM_LOOPS}"
for ((j=1;j<=${MAXRECURSIONDEPTH};j+=1)); do for ((j=1;j<=${RECURSION_DEPTH};j+=1)); do
echo "# Starting recursion ${i}.${j}/${MAXRECURSIONDEPTH}" echo "# Starting recursion ${i}.${j}/${RECURSION_DEPTH}"
# 1 No instrumentation # 1 No instrumentation
echo " # ${i}.1 No instrumentation" echo " # ${i}.1 No instrumentation"
......
...@@ -5,11 +5,11 @@ SUDOCMD="pfexec" ...@@ -5,11 +5,11 @@ SUDOCMD="pfexec"
SLEEP_TIME=30 ## 30 SLEEP_TIME=30 ## 30
NUM_LOOPS=10 ## 10 NUM_LOOPS=10 ## 10
THREADS=1 ## 1 THREADS=1 ## 1
MAXRECURSIONDEPTH=1 ## 10 RECURSION_DEPTH=1 ## 10
TOTALCALLS=2000000 ## 200000 TOTALCALLS=2000000 ## 200000
METHODTIME=500000 ## 500000 METHODTIME=500000 ## 500000
TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${MAXRECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEP_TIME} \* 4 \* ${NUM_LOOPS} \* ${MAXRECURSIONDEPTH}` TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSION_DEPTH} \* ${NUM_LOOPS} + ${SLEEP_TIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSION_DEPTH}`
echo "Each experiment will take circa ${TIME} seconds." echo "Each experiment will take circa ${TIME} seconds."
......
...@@ -4,11 +4,11 @@ SUDOCMD="pfexec" ...@@ -4,11 +4,11 @@ SUDOCMD="pfexec"
SLEEP_TIME=30 ## 30 SLEEP_TIME=30 ## 30
NUM_LOOPS=10 ## 10 NUM_LOOPS=10 ## 10
MAXRECURSIONDEPTH=1 ## 10 RECURSION_DEPTH=1 ## 10
TOTALCALLS=2000000 ## 2000000 TOTALCALLS=2000000 ## 2000000
METHODTIME=500000 ## 500000 METHODTIME=500000 ## 500000
TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${MAXRECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEP_TIME} \* 4 \* ${NUM_LOOPS} \* ${MAXRECURSIONDEPTH}` TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSION_DEPTH} \* ${NUM_LOOPS} + ${SLEEP_TIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSION_DEPTH}`
echo "Each experiment will take circa ${TIME} seconds." echo "Each experiment will take circa ${TIME} seconds."
${SUDOCMD} psrset -c -F 0 1 2 3 # one chip no hyperthreading ${SUDOCMD} psrset -c -F 0 1 2 3 # one chip no hyperthreading
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment