From f152f0e8c3876bccac56c161681c05ba58de6eab Mon Sep 17 00:00:00 2001 From: David Esparza Date: Thu, 15 Jun 2023 17:23:51 -0600 Subject: [PATCH] metrics: Add launch-times to metrics tests This test measures the duration of a workload that starts, and then immediately stops the contianer. Also measures the workload period, the time to quit period, and the time to kernel period. Fixes: #7049 Signed-off-by: David Esparza --- tests/metrics/gha-run.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/metrics/gha-run.sh b/tests/metrics/gha-run.sh index e3656b2cde..5aed77985a 100755 --- a/tests/metrics/gha-run.sh +++ b/tests/metrics/gha-run.sh @@ -10,14 +10,22 @@ set -o nounset set -o pipefail metrics_dir="$(dirname "$(readlink -f "$0")")" +source "${metrics_dir}/lib/common.bash" + +function init_env() { + metrics_onetime_init + disable_ksm +} function run_test_launchtimes() { hypervisor="${1}" echo "Running launchtimes tests: " + init_env if [ "${hypervisor}" = 'qemu' ]; then echo "qemu" + bash time/launch_times.sh -i public.ecr.aws/ubuntu/ubuntu:latest -n 20 elif [ "${hypervisor}" = 'clh' ]; then echo "clh" fi