Skip to content

Commit

Permalink
dashboard: Print some estimate of level of regression even without st…
Browse files Browse the repository at this point in the history
…andard deviation

Signed-off-by: Mel Gorman <mgorman@suse.de>
  • Loading branch information
Mel Gorman committed May 14, 2015
1 parent d010dce commit 766c13a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
15 changes: 14 additions & 1 deletion dashboard-kernels-smart.sh
Expand Up @@ -49,6 +49,10 @@ while [ "$1" != "" ]; do
TOPOUT="$2"
shift 2
;;
--toplatest)
TOPLATEST=yes
shift
;;
--table-id)
TABLEID="$2"
shift 2
Expand Down Expand Up @@ -235,7 +239,9 @@ for SUBREPORT in `grep "test begin :: " "$FIRST_ITERATION_PREFIX"tests-timestamp
DIFF_ADJUSTED=`perl -e "print (($DDIFF*10000))"`
DELTA=$((DIFF_ADJUSTED))
if [ "$TOPOUT" != "" ]; then
echo "$DDIFF $GRATIO $SUBREPORT $TABLEID ${KERNEL_NAMES[$NAME_INDEX]}" >> $TOPOUT
if [ "$TOPLATEST" != "yes" -o $FIELD -eq $NR_FIELDS ]; then
echo "$DDIFF $GRATIO $SUBREPORT $TABLEID ${KERNEL_NAMES[$NAME_INDEX]}" >> $TOPOUT
fi
fi
if [ $DIFF_ADJUSTED -lt 0 ]; then
DELTA=$((-DIFF_ADJUSTED))
Expand Down Expand Up @@ -290,10 +296,17 @@ for SUBREPORT in `grep "test begin :: " "$FIRST_ITERATION_PREFIX"tests-timestamp
RATIO=`echo $GMEAN | awk "{print \\$$FIELD}"`
if [ "$RATIO" != "nan" ]; then
RATIO_ADJUSTED=`perl -e "print (($RATIO*10000))"`
DMEAN=`perl -e "printf \"%4.2f\", (abs (1-$RATIO))"`
DELTA=$((RATIO_ADJUSTED-10000))
if [ $DELTA -lt 0 ]; then
DELTA=$((-DELTA))
fi
if [ "$TOPOUT" != "" ]; then
if [ "$TOPLATEST" != "yes" -o $FIELD -eq $NR_FIELDS ]; then
echo "$DMEAN $RATIO $SUBREPORT $TABLEID ${KERNEL_NAMES[$NAME_INDEX]}" >> $TOPOUT
fi
fi


if [ $DELTA -lt 100 ]; then
DESCRIPTION="Neutral"
Expand Down
3 changes: 3 additions & 0 deletions dashboard-kernels-static.sh
Expand Up @@ -50,6 +50,9 @@ while [ "$1" != "" ]; do
--table-id)
shift 2
;;
--toplatest)
shift
;;
*)
echo Unrecognised argument: $1 1>&2
shift
Expand Down

0 comments on commit 766c13a

Please sign in to comment.