mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 20:24:31 +00:00
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:
parent
decbe77e28
commit
f152f0e8c3
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user