summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew McDermott <andrew.mcdermott@linaro.org>2014-05-21 11:27:07 +0100
committerAndrew McDermott <andrew.mcdermott@linaro.org>2014-05-21 11:27:07 +0100
commit596a04cea1ba678daf8a5c9adc970469b249f6c2 (patch)
tree5d25bbe45231df45c4d3850562975b5fdc7d2fb9
parentfb06a882a74c84c87f6f8040ff29685ea057bfd6 (diff)
benchmark-terasort-report: format baseline numbers using %.02f
Signed-off-by: Andrew McDermott <andrew.mcdermott@linaro.org>
-rwxr-xr-xbenchmark-terasort-report7
1 files changed, 5 insertions, 2 deletions
diff --git a/benchmark-terasort-report b/benchmark-terasort-report
index 496319e..fca5475 100755
--- a/benchmark-terasort-report
+++ b/benchmark-terasort-report
@@ -62,6 +62,9 @@ ZERO_BASELINE=${ZERO_BASELINE:=1} server_today=$(print-speedup server)
x=$(echo "scale=10; $client_today / ${CLIENT_BASELINE}" | bc)
y=$(echo "scale=10; $server_today / ${SERVER_BASELINE}" | bc)
+a=$(printf "%.02f" $CLIENT_BASELINE)
+b=$(printf "%.02f" $SERVER_BASELINE)
+
client_today_vs_client_baseline=$(printf "%.02f" $x)
server_today_vs_server_baseline=$(printf "%.02f" $y)
@@ -78,8 +81,8 @@ echo "on $BASEDATE."
echo ""
echo "Relative performance: Zero: 1.0, Client: ${client_today}, Server: ${server_today}"
echo ""
-echo "Client $client_today / Client $BASEDATE ($CLIENT_BASELINE): ${client_today_vs_client_baseline}x"
-echo "Server $server_today / Server $BASEDATE ($SERVER_BASELINE): ${server_today_vs_server_baseline}x"
+echo "Client $client_today / Client $BASEDATE ($a): ${client_today_vs_client_baseline}x"
+echo "Server $server_today / Server $BASEDATE ($b): ${server_today_vs_server_baseline}x"
echo ""
echo "Details of the test setup and historical results may be found here:"
echo ""