A kind of test method and device
A testing method and the same technology, applied in the computer field, can solve problems such as the inability to accurately obtain the performance and function differences between virtual machines and other virtual machines, and the inability to accurately obtain software performance.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0064] Such as figure 1As shown, the present embodiment provides a test method, which can be realized by software, and specifically includes the following steps:
[0065] 101. Make at least two virtual machines run the same software at the same time;
[0066] 102. Collecting the running data of the virtual machine at preset time intervals;
[0067] Wherein, the running data of the virtual machine includes virtual machine performance data and debugging data;
[0068] 103. Compare the running data of the virtual machines, and output the comparison result.
[0069] This embodiment provides a test method, by making two or more virtual machines run the same software at the same time, and collecting and obtaining quantified running data of the virtual machines in real time, comparing them, and outputting the comparison results, testers or developers can The personnel can accurately obtain the performance and function differences of the software between different virtual machines,...
Embodiment 2
[0071] This embodiment provides a testing method, which is an improvement on the basis of Embodiment 1. This method can be implemented by software installed in the host.
[0072] It should be noted that, in order to obtain and compare the performance and functions of the software in real time, as well as the performance of each virtual machine run by the software, the present invention collects virtual machine performance data and debugging data when running the software through the virtual machine For comparison, the virtual machine performance data and debugging data are quantitative data.
[0073] Wherein, the virtual machine performance data is the data used to display the processing performance of the virtual machine when the virtual machine is running the software, for example, it may include the parsing speed of the running software of the virtual machine, CPU usage, memory usage, garbage collection performance, execution software the speed of functions in , etc.;
[0...
example 1
[0102] Example 1, Socket communication method:
[0103] S1. The data collector calls the function interface provided by Socket, allocates a port for data collection, and notifies the data collector of its port number, waiting to receive the running data of the virtual machine sent by the data collector;
[0104] S2. The data collector connects to the port allocated by the data collector, establishes a Socket connection, and sends the running data of the virtual machine to the data collector through the port every preset time.
[0105] Preferably, when the virtual machine 1 and the virtual machine 2 are on different hosts, the communication between the data collector and the data collector is completed by using the communication mode of Socket.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


