summaryrefslogtreecommitdiff
path: root/benchmark-terasort-report
blob: 98d353846ac99068f1603a9b439810224dcaff48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash

# Copyright (C) 2014, Linaro Limited.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
#
# Author: Andrew McDermott <andrew.mcdermott@linaro.org>

set -eu

THIS_BENCHMARK_DIR="$(cd $(dirname "${BASH_SOURCE[0]}") && pwd -P)"
PATH=$THIS_BENCHMARK_DIR:$PATH
source $THIS_BENCHMARK_DIR/common.sh

ZERO_BASELINE=${ZERO_BASELINE:=1} client_today=$(print-speedup client)
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)

client_today_vs_client_baseline=$(printf "%.02f" $x)
server_today_vs_server_baseline=$(printf "%.02f" $y)

people_link="http://openjdk.linaro.org/$JDK_VERSION/hadoop-terasort-benchmark-results/"

echo "Regression test Hadoop-Terasort completed"
echo "========================================="
echo ""
echo "This test measures the performance of the server and client compilers"
echo "running Hadoop sorting a ${NGIGABYTES}GB file using Terasort and compares"
echo "the performance against the baseline performance of the Zero interpreter"
echo "and against the baseline performance of the client and server compilers"
echo "on $BASEDATE."
echo ""
echo "Relative performance: Zero: 1.0, Client: ${client_today}, Server: ${server_today}"
echo ""
echo "Client $client_today / Client $BASEDATE ($(printf '%.02f' $CLIENT_BASELINE)): ${client_today_vs_client_baseline}x"
echo "Server $server_today / Server $BASEDATE ($(printf '%.02f' $SERVER_BASELINE)): ${server_today_vs_server_baseline}x"
echo ""
echo "Details of the test setup and historical results may be found here:"
echo ""
echo "    $people_link"