From d3074d953221ab759e0379610b217a0e4fddab96 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 31 Oct 2011 13:48:38 -0400 Subject: [PATCH] * print out elapsed seconds on each build cycle --- kernel/stress.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/kernel/stress.sh b/kernel/stress.sh index 1357eeb..1582d8d 100755 --- a/kernel/stress.sh +++ b/kernel/stress.sh @@ -5,7 +5,8 @@ cd /root/ hosts="try1 try2 try3 try4 try5" for host in ${hosts}; do - echo start {host} + START=`date +%s` + echo STARTDOKERN {host} $START date -u sync @@ -27,6 +28,9 @@ for host in ${hosts}; do /root/benchmarks/kernel/build.pl --clean date -u sync - echo end {host} + END=`date +%s` + ELAPSE=$(( $END - $START )) + echo ENDDOKERN {host} $END + echo ELAPSEDOKERN $ELAPSE date -u done