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 <david.esparza.borquez@intel.com>
This commit is contained in:
David Esparza 2023-06-15 17:23:51 -06:00
parent decbe77e28
commit f152f0e8c3
No known key found for this signature in database
GPG Key ID: EABE0B1A98CC3B7A

View File

@ -10,14 +10,22 @@ set -o nounset
set -o pipefail set -o pipefail
metrics_dir="$(dirname "$(readlink -f "$0")")" metrics_dir="$(dirname "$(readlink -f "$0")")"
source "${metrics_dir}/lib/common.bash"
function init_env() {
metrics_onetime_init
disable_ksm
}
function run_test_launchtimes() { function run_test_launchtimes() {
hypervisor="${1}" hypervisor="${1}"
echo "Running launchtimes tests: " echo "Running launchtimes tests: "
init_env
if [ "${hypervisor}" = 'qemu' ]; then if [ "${hypervisor}" = 'qemu' ]; then
echo "qemu" echo "qemu"
bash time/launch_times.sh -i public.ecr.aws/ubuntu/ubuntu:latest -n 20
elif [ "${hypervisor}" = 'clh' ]; then elif [ "${hypervisor}" = 'clh' ]; then
echo "clh" echo "clh"
fi fi