Add first pass of analysis script.
diff --git a/infrastructure/scripts/aws/analyze_tests.sh b/infrastructure/scripts/aws/analyze_tests.sh
new file mode 100755
index 0000000..15942ad
--- /dev/null
+++ b/infrastructure/scripts/aws/analyze_tests.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+
+OUTPUT_DIR=${1}
+
+TOP_DIR=$(git rev-parse --show-toplevel)
+
+echo ${TOP_DIR}
+
+BASELINE_DIR="${OUTPUT_DIR}/baseline"
+BRANCH_DIR="${OUTPUT_DIR}/branch"
+BASELINE_BENCHMARKS="$(ls -ltd ${BASELINE_DIR}/benchmarks_* | tail -1)"
+BRANCH_BENCHMARKS="$(ls -ltd ${BRANCH_DIR}/benchmarks_* | tail -1)"
+pushd ${TOP_DIR}
+./gradlew analyzeRun --args "${BASELINE_BENCHMARKS} ${BRANCH_BENCHMARKS}"
+popd
diff --git a/infrastructure/scripts/aws/run_against_baseline.sh b/infrastructure/scripts/aws/run_against_baseline.sh
index 1890b45..8e8b60a 100755
--- a/infrastructure/scripts/aws/run_against_baseline.sh
+++ b/infrastructure/scripts/aws/run_against_baseline.sh
@@ -26,3 +26,4 @@
OUTPUT=${5:-${DEFAULT_OUTPUT_DIR}}
./run_tests.sh ${TAG} ${BRANCH} ${BENCHMARK_BRANCH} ${OUTPUT}/branch
./run_tests.sh ${TAG} ${BASELINE} ${BENCHMARK_BRANCH} ${OUTPUT}/baseline
+./analyze_tests.sh ${OUTPUT}
diff --git a/infrastructure/scripts/aws/run_tests.sh b/infrastructure/scripts/aws/run_tests.sh
index 981fa56..0088d0f 100755
--- a/infrastructure/scripts/aws/run_tests.sh
+++ b/infrastructure/scripts/aws/run_tests.sh
@@ -47,7 +47,7 @@
mkdir -p ${OUTPUT}
-
+set +x
scp ${SSH_OPTIONS} -r geode@${FIRST_INSTANCE}:geode-benchmarks/geode-benchmarks/build/reports ${OUTPUT}/reports
BENCHMARK_DIRECTORY="$(ssh ${SSH_OPTIONS} geode@${FIRST_INSTANCE} ls -l geode-benchmarks/geode-benchmarks/build/ | grep benchmark | awk 'NF>1{print $NF}')"
scp ${SSH_OPTIONS} -r geode@${FIRST_INSTANCE}:geode-benchmarks/geode-benchmarks/build/${BENCHMARK_DIRECTORY} ${OUTPUT}