Add a --date option to test-perf.

This commit is contained in:
Alan Jeffrey 2017-12-06 21:53:34 -06:00
parent 6aae59e7e5
commit ee766b5e16
4 changed files with 29 additions and 14 deletions

View file

@ -14,6 +14,7 @@ set -o pipefail
# https://groups.google.com/forum/#!topic/mozilla.dev.servo/JlAZoRgcnpA
port="8123"
base="http://localhost:${port}"
date="$(date +%Y-%m-%d)"
while (( "${#}" ))
do
@ -33,6 +34,10 @@ case "${1}" in
base="${2}"
shift
;;
--date)
date="${2}"
shift
;;
*)
echo "Unknown option ${1}."
exit
@ -56,11 +61,12 @@ trap 'kill $(jobs -pr)' SIGINT SIGTERM EXIT
# MANIFEST="page_load_test/tp5n/20160509.manifest"
MANIFEST="page_load_test/test.manifest" # A manifest that excludes
# timeout test cases
PERF_KEY="perf-$(uname -s)-$(uname -m)-$(date +%s).csv"
PERF_KEY="perf-$(uname -s)-$(uname -m)-${date}.csv"
PERF_FILE="output/${PERF_KEY}"
echo "Running tests"
python3 runner.py ${engine} --runs 4 --timeout "${timeout}" --base "${base}" \
python3 runner.py ${engine} --runs 4 --timeout "${timeout}" \
--base "${base}" --date "${date}" \
"${MANIFEST}" "${PERF_FILE}"
if [[ "${submit:-}" ]];