mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-28 00:25:18 +00:00
8bef32d389
Signed-off-by: Bo Chen <chen.bo@intel.com>
1.1 KiB
1.1 KiB
Performance Metrics
Cloud Hypervisor provides a performance metrics
binary for users to generate metrics data from their own
environment. This document describes how to generate metrics data
quickly by using Cloud Hypervisor's development script,
e.g. dev_cli.sh
. The only prerequisite is Docker installation.
Please note that upon its first invocation, this script will pull a
fairly large container image.
To generate metrics data for all available performance tests (including boot time, block I/O throughput, and network throughput & latency) and output the result into a json file:
$ ./scripts/dev_cli.sh tests --metrics -- -- --report-file /tmp/metrics.json
To get a list of available performance tests:
$ ./scripts/dev_cli.sh tests --metrics -- -- --list-tests
To generate metrics data for selected performance tests, e.g. boot time only:
$ ./scripts/dev_cli.sh tests --metrics -- -- --report-file /tmp/metrics.json --test-filter boot_time