+for i in ${EXECUTABLES}; do
+ echo "Running $i"
+ for j in `jot $(sysctl -n hw.ncpu) 1`; do
+ printf "\t%dx\t" $j
+ METRIC_NAME="${i}_${j}x"
+ TIMEOUT=` /usr/bin/time ./${RUN} $j $((${COUNT}/$j)) ./$i 2>&1`
+ echo ${TIMEOUT}
+ REALTIME=`echo ${TIMEOUT} | awk '{ print $1 }'`
+ TOTALTIME=`echo ${TIMEOUT} | awk '{ print $3 + $5 }'`
+ record_perf_data "${METRIC_NAME}_real" "s" $REALTIME "Real time in seconds. Lower is better. This may have variance based on load on system" > ${PERFDATA_DIR}/${METRIC_NAME}_real.perfdata
+ record_perf_data "${METRIC_NAME}_sys" "s" $TOTALTIME "User + Sys time in seconds. Lower is better." > /tmp/${METRIC_NAME}_sys.perfdata