Method and system for analyzing software performance in virtualization environment

By obtaining operation information in a virtualized environment, setting up a performance evaluation model and optimizing software performance, the problem of software performance analysis and optimization in a virtual environment is solved, and the software performance improvement of automation and efficiency is achieved.

CN118964154AInactive Publication Date: 2024-11-15THREE GORGES JINSHAJIANG CHUANYUN HYDROPOWER DEV CO LTD

Patent Information

Application Number
CN202410968164.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-11-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The prior art lacks an efficient automation method to conduct comprehensive performance analysis of software in virtual environments, and it is impossible to effectively optimize the performance of the software being tested.

Method used

A software performance analysis method in a virtualized environment is proposed. By obtaining the running information of the tested software, setting up a software performance evaluation model, calculating the performance evaluation index, and comparing and optimizing the software performance according to preset thresholds, including CPU usage and memory usage The weights of quantities, network latency and other factors are automatically optimized.

Benefits of technology

It realizes automatic and efficient performance analysis and optimization of the software being tested in a virtual environment, ensuring that the performance reaches the preset threshold and improving the software performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118964154A_ABST
    Figure CN118964154A_ABST
Patent Text Reader

Abstract

The invention discloses a software performance analysis method and system in a virtual environment, and the method comprises the steps: obtaining the operation information of tested software in the virtual environment, and the operation information comprises the execution time of the tested software, the memory usage amount of the tested software, the CPU usage rate of the tested software, the network delay of the virtual environment and other factors; setting a software performance evaluation model, and calculating a performance evaluation index of the tested software according to the operation information; the performance evaluation index of the tested software is compared with a preset threshold value, if the performance evaluation index exceeds the preset threshold value, the performance reaches the standard, the tested software is optimized, the performance evaluation index of the optimized tested software exceeds the preset threshold value, and therefore optimization of the tested software is completed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of software performance testing, and more specifically, relates to a method and system for analyzing software performance in a virtualized environment. Background Art

[0002] A virtual machine (VM) for software testing is an environment that simulates a computer system, allowing users to run software in an independent, isolated environment, thereby performing various tests without affecting the host system. There are many advantages to using a virtual machine for software testing, such as:

[0003] Isolation: Any problems that occur during testing will not affect the host system.

[0004] Diversity: You can run multiple operating systems on the same physical machine to test the compatibility of software on different platforms.

[0005] Snapshot and restore: You can create snapshots of virtual machines and quickly restore them to their previous states when problems occur, greatly facilitating the testing process.

[0006] Automation: It can be easily integrated with automated testing tools to perform large-scale automated testing.

[0007] However, there is no technical solution in the prior art that can efficiently and automatically perform comprehensive performance analysis on the software under test in a virtual environment. Summary of the invention

[0008] In order to solve the above technical problems, the present invention proposes a method for analyzing software performance in a virtualized environment, comprising:

[0009] Obtaining the running information of the software under test in the virtual environment, wherein the running information includes: the execution time of the software under test, the memory usage of the software under test, the CPU usage rate of the software under test, the network delay of the virtualized environment and other factors;

[0010] Setting a software performance evaluation model, and calculating a performance evaluation index of the tested software according to the operation information;

[0011] The performance evaluation index of the tested software is compared with a preset threshold. If it exceeds the preset threshold, the performance meets the standard. The tested software is optimized so that the performance evaluation index of the optimized tested software exceeds the preset threshold, thereby completing the optimization of the tested software.

[0012] Furthermore, the software performance evaluation model includes:

[0013]

[0014] Among them, PS is the performance evaluation index of the tested software, T e is the execution time of the software under test, M u is the memory usage of the tested software, α is the weight of CPU usage, C u is the CPU usage of the tested software, β is the weight of network delay, L n is the network delay of the virtualized environment, N is the number of other factors, γ i is the weight of the i-th other factor, F i is the other factors of the i-th category.

[0015] Furthermore, the weight α of the CPU usage includes:

[0016]

[0017] Where J is the number of performance features at the application level, X j is the jth performance characteristic at the application level, K is the number of affected performance characteristics, θ jk is the adjustment factor between the jth performance feature at the application level and the kth performance feature at the application level, X k For X j The kth performance characteristic of the application level affected, p j is the first adjustment factor of the jth performance characteristic at the application level, θ j is the second adjustment factor of the jth performance characteristic at the application level, q j is the third adjustment factor of the j-th performance characteristic at the application level, wherein the performance characteristics at the application level include: the number of application threads of the software under test, the number of active sessions of the software under test, the startup time of the software under test, and the response time of user requests.

[0018] Furthermore, the weight β of network delay includes:

[0019]

[0020] Where K′ is the number of performance features at the network level, φ k′ is the first adjustment factor of the k′th performance characteristic at the network level, Y k′ is the k′th performance feature at the network level, ω k′ is the second adjustment factor of the k′th performance characteristic at the network level, v k′ is the third adjustment factor for the k′th performance characteristic at the network level.

[0021] Furthermore, the weight of the i-th other factor γ i include:

[0022]

[0023] Among them, Z i,l is the lth element feature in the i-th category of other factors, L is the number of element features, λ li is the first adjustment factor of the lth element characteristic in the i-th category of other factors, m li is the second adjustment factor of the lth element characteristic in the i-th category of other factors, h li is the third adjustment factor of the lth element characteristic in the i-th category of other factors, μ li is the fourth adjustment factor of the lth element characteristic in the i-th category of other factors, ξ li It is the fifth adjustment factor of the lth element characteristic in the i-th category of other factors.

[0024] The present invention also provides a system for analyzing software performance in a virtualized environment, comprising:

[0025] An information acquisition module is used to acquire the running information of the software under test in the virtual environment, wherein the running information includes: the execution time of the software under test, the memory usage of the software under test, the CPU usage rate of the software under test, the network delay of the virtualized environment and other factors;

[0026] A model setting module is used to set a software performance evaluation model and calculate the performance evaluation index of the tested software according to the operation information;

[0027] The optimization module is used to compare the performance evaluation index of the tested software with a preset threshold. If the performance exceeds the preset threshold, the software meets the performance standard. The tested software is optimized so that the performance evaluation index of the optimized tested software exceeds the preset threshold, thereby completing the optimization of the tested software.

[0028] Furthermore, the software performance evaluation model includes:

[0029]

[0030] Among them, PS is the performance evaluation index of the tested software, T e is the execution time of the software under test, M u is the memory usage of the tested software, α is the weight of CPU usage, C u is the CPU usage of the tested software, β is the weight of network delay, L n is the network delay of the virtualized environment, N is the number of other factors, γ i is the weight of the i-th other factor, F i is the other factors of the i-th category.

[0031] Furthermore, the weight α of the CPU usage includes:

[0032]

[0033] Where J is the number of performance features at the application level, X j is the jth performance characteristic at the application level, K is the number of affected performance characteristics, θ jk is the adjustment factor between the jth performance feature at the application level and the kth performance feature at the application level, X k For X j The kth performance characteristic of the application level affected, p j is the first adjustment factor of the jth performance characteristic at the application level, θ j is the second adjustment factor of the jth performance characteristic at the application level, q j is the third adjustment factor of the j-th performance characteristic at the application level, wherein the performance characteristics at the application level include: the number of application threads of the software under test, the number of active sessions of the software under test, the startup time of the software under test, and the response time of user requests.

[0034] Furthermore, the weight β of network delay includes:

[0035]

[0036] Where K′ is the number of performance features at the network level, φ k′ is the first adjustment factor of the k′th performance characteristic at the network level, Y k′ is the k′th performance feature at the network level, ω k′ is the second adjustment factor of the k′th performance characteristic at the network level, v k′ is the third adjustment factor for the k′th performance characteristic at the network level.

[0037] Furthermore, the weight of the i-th other factor γ i include:

[0038]

[0039] Among them, Z i,l is the lth element feature in the i-th category of other factors, L is the number of element features, λ li is the first adjustment factor of the lth element characteristic in the i-th category of other factors, m li is the second adjustment factor of the lth element characteristic in the i-th category of other factors, h li is the third adjustment factor of the lth element characteristic in the i-th category of other factors, μ li is the fourth adjustment factor of the lth element characteristic in the i-th category of other factors, ξ li It is the fifth adjustment factor of the lth element characteristic in the i-th category of other factors.

[0040] Compared with the prior art, the above technical solution conceived by the present invention has the following beneficial effects:

[0041] The present invention sets a software performance evaluation model, and calculates the performance evaluation index of the tested software according to the operation information; compares the performance evaluation index of the tested software with a preset threshold, and if the performance exceeds the preset threshold, the tested software is up to standard, and the tested software is optimized so that the performance evaluation index of the optimized tested software exceeds the preset threshold, thereby completing the optimization of the tested software. Through the above technical scheme, the present invention can automatically and efficiently complete the performance analysis of the tested software in a virtual environment. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 is a flow chart of the method of embodiment 1 of the present invention;

[0043] Figure 2 It is a system structure diagram of embodiment 2 of the present invention. DETAILED DESCRIPTION

[0044] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0045] The method provided by the present invention can be implemented in the following terminal environment, and the terminal may include one or more of the following components: a processor, a storage medium, and a display screen. The storage medium stores at least one instruction, and the instruction is loaded and executed by the processor to implement the method described in the following embodiment.

[0046] The processor may include one or more processing cores. The processor uses various interfaces and lines to connect various parts in the entire terminal, and executes various functions of the terminal and processes data by running or executing instructions, programs, code sets or instruction sets stored in the storage medium, and calling data stored in the storage medium.

[0047] The storage medium may include a random access memory (RAM) or a read-only memory (ROM). The storage medium may be used to store instructions, programs, codes, code sets or instructions.

[0048] The display is used to show the interactive cross-section of each application.

[0049] All subscripts in the formulas of the present invention are only used to distinguish parameters and have no actual meaning.

[0050] In addition, those skilled in the art can understand that the structure of the above terminal does not constitute a limitation on the terminal, and the terminal may include more or fewer components, or combine certain components, or arrange the components differently. For example, the terminal also includes components such as a radio frequency circuit, an input unit, a sensor, an audio circuit, and a power supply, which will not be described in detail here.

[0051] Example 1

[0052] like Figure 1 As shown, the present invention proposes a method for analyzing software performance in a virtualized environment, comprising:

[0053] Step 101, obtaining the running information of the software under test in the virtual environment, wherein the running information includes: the execution time of the software under test, the memory usage of the software under test, the CPU usage rate of the software under test, the network delay of the virtualization environment and other factors;

[0054] Step 102, setting a software performance evaluation model, and calculating a performance evaluation index of the tested software according to the operation information;

[0055] Specifically, the software performance evaluation model includes:

[0056]

[0057] Among them, PS is the performance evaluation index of the tested software, T e is the execution time of the software under test, M u is the memory usage of the tested software, α is the weight of CPU usage, C u is the CPU usage of the tested software, β is the weight of network delay, L n is the network delay of the virtualized environment, N is the number of other factors, γ i is the weight of the i-th other factor, F i is the other factors of the i-th category.

[0058] For example, the i-th type of other factors F i Can be:

[0059] 1. Other factors of disk I / O operations, including:

[0060] Input-output operations per second (IOPS);

[0061] Average latency of disk reads / writes;

[0062] 2. Other factors related to database query time, including:

[0063] The average execution time of a single query;

[0064] Frequency of queries;

[0065] The number of concurrent queries;

[0066] The size of the database connection pool;

[0067] 3. Other factors related to user behavior patterns, including:

[0068] The number of users during peak access;

[0069] Duration of the user session;

[0070] The above are only examples and are not intended to limit the present invention.

[0071] Specifically, the weight α of the CPU usage includes:

[0072]

[0073] Where J is the number of performance features at the application level, X j is the jth performance characteristic at the application level, K is the number of affected performance characteristics, θ jk is the adjustment factor between the jth performance feature at the application level and the kth performance feature at the application level, X k For X j The kth performance characteristic of the application level affected, p j is the first adjustment factor of the jth performance characteristic at the application level, θ j is the second adjustment factor of the jth performance characteristic at the application level, q j is the third adjustment factor of the j-th performance characteristic at the application level, wherein the performance characteristics at the application level include: the number of application threads of the software under test, the number of active sessions of the software under test, the startup time of the software under test, and the response time of user requests.

[0074] About X k For X j The k-th performance characteristic of the application level is affected, for example:

[0075] Assume X j include:

[0076] X1: the number of application threads of the software under test;

[0077] X2: the number of active sessions of the software under test;

[0078] X3: startup time of the software under test;

[0079] X4: Response time of user request.

[0080] In this case, J=4, which means we have four features participating in the calculation of the formula.

[0081] The corresponding X k As shown below:

[0082] For X1: the number of application threads of the software under test, we consider the interaction effect with the number of active sessions of the software under test X2 and the response time of user requests X4.

[0083] For X2: the number of active sessions of the software under test, we consider the interaction effect with the number of application threads of the software under test X1 and the response time of user requests X4.

[0084] For the startup time X3 of the software under test, we consider the interaction effect with the number of application threads X1 of the software under test and the response time X4 of the user request.

[0085] For the response time X4 of user requests, we consider the interaction effect with the startup time X3 of the software under test and the response time X4 of user requests.

[0086] In this case, K = 2, which means that for each feature X j Interaction effects with two other characteristics were taken into account.

[0087] Specifically, the weight β of network delay includes:

[0088]

[0089] Where K′ is the number of performance features at the network level, φ k′ is the first adjustment factor of the k′th performance characteristic at the network level, Y k′ is the k′th performance feature at the network level, ω k′ is the second adjustment factor of the k′th performance characteristic at the network level, v k′ is the third adjustment factor for the k′th performance characteristic at the network level.

[0090] Specifically, the weight of the i-th other factor γ i include:

[0091]

[0092] Among them, Z i,l is the lth element feature in the i-th category of other factors, L is the number of element features, λ li is the first adjustment factor of the lth element characteristic in the i-th category of other factors, m li is the second adjustment factor of the lth element characteristic in the i-th category of other factors, h li is the third adjustment factor of the lth element characteristic in the i-th category of other factors, μ liis the fourth adjustment factor of the lth element characteristic in the i-th category of other factors, ξ li It is the fifth adjustment factor of the lth element characteristic in the i-th category of other factors.

[0093] Step 103, compare the performance evaluation index of the tested software with a preset threshold value, if it exceeds the preset threshold value, the performance meets the standard, and optimize the tested software so that the performance evaluation index of the optimized tested software exceeds the preset threshold value, thereby completing the optimization of the tested software.

[0094] Example 2

[0095] like Figure 2 As shown, the embodiment of the present invention further provides a system for analyzing software performance in a virtualized environment, including:

[0096] An information acquisition module is used to acquire the running information of the software under test in the virtual environment, wherein the running information includes: the execution time of the software under test, the memory usage of the software under test, the CPU usage rate of the software under test, the network delay of the virtualized environment and other factors;

[0097] A model setting module is used to set a software performance evaluation model and calculate the performance evaluation index of the tested software according to the operation information;

[0098] Specifically, the software performance evaluation model includes:

[0099]

[0100] Among them, PS is the performance evaluation index of the tested software, T e is the execution time of the software under test, M u is the memory usage of the tested software, α is the weight of CPU usage, C u is the CPU usage of the tested software, β is the weight of network delay, L n is the network delay of the virtualized environment, N is the number of other factors, γ i is the weight of the i-th other factor, F i is the other factors of the i-th category.

[0101] Specifically, the weight α of the CPU usage includes:

[0102]

[0103] Where J is the number of performance features at the application level, X j is the jth performance characteristic at the application level, K is the number of affected performance characteristics, θ jk is the adjustment factor between the jth performance feature at the application level and the kth performance feature at the application level, Xk For X j The kth performance characteristic of the application level affected, p j is the first adjustment factor of the jth performance characteristic at the application level, θ j is the second adjustment factor of the jth performance characteristic at the application level, q j is the third adjustment factor of the j-th performance characteristic at the application level, wherein the performance characteristics at the application level include: the number of application threads of the software under test, the number of active sessions of the software under test, the startup time of the software under test, and the response time of user requests.

[0104] Specifically, the weight β of network delay includes:

[0105]

[0106] Where K′ is the number of performance features at the network level, φ k′ is the first adjustment factor of the k′th performance characteristic at the network level, Y k′ is the k′th performance feature at the network level, ω k′ is the second adjustment factor of the k′th performance characteristic at the network level, v k′ is the third adjustment factor for the k′th performance characteristic at the network level.

[0107] Specifically, the weight of the i-th other factor γ i include:

[0108]

[0109] Among them, Z i,l is the lth element feature in the i-th category of other factors, L is the number of element features, λ li is the first adjustment factor of the lth element characteristic in the i-th category of other factors, m li is the second adjustment factor of the lth element characteristic in the i-th category of other factors, h li is the third adjustment factor of the lth element characteristic in the i-th category of other factors, μ li is the fourth adjustment factor of the lth element characteristic in the i-th category of other factors, ξ li It is the fifth adjustment factor of the lth element characteristic in the i-th category of other factors.

[0110] The optimization module is used to compare the performance evaluation index of the tested software with a preset threshold. If the performance exceeds the preset threshold, the software meets the performance standard. The tested software is optimized so that the performance evaluation index of the optimized tested software exceeds the preset threshold, thereby completing the optimization of the tested software.

[0111] Example 3

[0112] The embodiment of the present invention further provides a storage medium storing a plurality of instructions, wherein the instructions are used to implement the method for analyzing software performance in a virtualized environment.

[0113] Optionally, in this embodiment, the above storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.

[0114] Optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps: Step 101, obtaining operation information of the software under test in the virtual environment, wherein the operation information includes: execution time of the software under test, memory usage of the software under test, CPU usage of the software under test, network delay of the virtualized environment and other factors;

[0115] Step 102, setting a model module, used to set a software performance evaluation model, and calculate the performance evaluation index of the tested software according to the operation information;

[0116] Specifically, the software performance evaluation model includes:

[0117]

[0118] Among them, PS is the performance evaluation index of the tested software, T e is the execution time of the software under test, M u is the memory usage of the tested software, α is the weight of CPU usage, C u is the CPU usage of the tested software, β is the weight of network delay, L n is the network delay of the virtualized environment, N is the number of other factors, γ i is the weight of the i-th other factor, F i is the other factors of the i-th category.

[0119] Specifically, the weight α of the CPU usage includes:

[0120]

[0121] Where J is the number of performance features at the application level, X j is the jth performance characteristic at the application level, K is the number of affected performance characteristics, θ jk is the adjustment factor between the jth performance feature at the application level and the kth performance feature at the application level, X k For X j The kth performance characteristic of the application level affected, p j is the first adjustment factor of the jth performance characteristic at the application level, θ jis the second adjustment factor of the jth performance characteristic at the application level, q j is the third adjustment factor of the j-th performance characteristic at the application level, wherein the performance characteristics at the application level include: the number of application threads of the software under test, the number of active sessions of the software under test, the startup time of the software under test, and the response time of user requests.

[0122] Specifically, the weight β of network delay includes:

[0123]

[0124] Where K′ is the number of performance features at the network level, φ k′ is the first adjustment factor of the k′th performance characteristic at the network level, Y k′ is the k′th performance feature at the network level, ω k′ is the second adjustment factor of the k′th performance characteristic at the network level, v k′ is the third adjustment factor for the k′th performance characteristic at the network level.

[0125] Specifically, the weight of the i-th other factor γ i include:

[0126]

[0127] Among them, Z i,l is the lth element feature in the i-th category of other factors, L is the number of element features, λ li is the first adjustment factor of the lth element characteristic in the i-th category of other factors, m li is the second adjustment factor of the lth element characteristic in the i-th category of other factors, h li is the third adjustment factor of the lth element characteristic in the i-th category of other factors, μ li is the fourth adjustment factor of the lth element characteristic in the i-th category of other factors, ξ li It is the fifth adjustment factor of the lth element characteristic in the i-th category of other factors.

[0128] Step 103, compare the performance evaluation index of the tested software with a preset threshold value, if it exceeds the preset threshold value, the performance meets the standard, and optimize the tested software so that the performance evaluation index of the optimized tested software exceeds the preset threshold value, thereby completing the optimization of the tested software.

[0129] Example 4

[0130] An embodiment of the present invention also proposes an electronic device, including a processor and a storage medium connected to the processor, wherein the storage medium stores multiple instructions, and the instructions can be loaded and executed by the processor to enable the processor to execute a method for analyzing software performance in a virtualized environment.

[0131] Specifically, the electronic device of this embodiment may be a computer terminal, and the computer terminal may include: one or more processors, and a storage medium.

[0132] Among them, the storage medium can be used to store software programs and modules, such as a method for analyzing software performance in a virtualized environment in an embodiment of the present invention, corresponding program instructions / modules, and the processor executes various functional applications and data processing by running the software programs and modules stored in the storage medium, that is, realizing the above-mentioned method for analyzing software performance in a virtualized environment. The storage medium may include high-speed random storage media, and may also include non-volatile storage media, such as one or more magnetic storage systems, flash memory, or other non-volatile solid-state storage media. In some instances, the storage medium may further include storage media remotely arranged relative to the processor, and these remote storage media may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0133] The processor may call the information and application program stored in the storage medium through the transmission system to execute the steps: Step 101, obtaining the running information of the software under test in the virtual environment, wherein the running information includes: the execution time of the software under test, the memory usage of the software under test, the CPU usage rate of the software under test, the network delay of the virtualized environment and other factors;

[0134] Step 102, setting a model module, used to set a software performance evaluation model, and calculate the performance evaluation index of the tested software according to the operation information;

[0135] Specifically, the software performance evaluation model includes:

[0136]

[0137] Among them, PS is the performance evaluation index of the tested software, T e is the execution time of the software under test, M u is the memory usage of the tested software, α is the weight of CPU usage, C u is the CPU usage of the tested software, β is the weight of network delay, L n is the network delay of the virtualized environment, N is the number of other factors, γ i is the weight of the i-th other factor, F iis the other factors of the i-th category.

[0138] Specifically, the weight α of the CPU usage includes:

[0139]

[0140] Where J is the number of performance features at the application level, X j is the jth performance characteristic at the application level, K is the number of affected performance characteristics, θ jk is the adjustment factor between the jth performance feature at the application level and the kth performance feature at the application level, X k For X j The kth performance characteristic of the application level affected, p j is the first adjustment factor of the jth performance characteristic at the application level, θ j is the second adjustment factor of the jth performance characteristic at the application level, q j is the third adjustment factor of the j-th performance characteristic at the application level, wherein the performance characteristics at the application level include: the number of application threads of the software under test, the number of active sessions of the software under test, the startup time of the software under test, and the response time of user requests.

[0141] Specifically, the weight β of network delay includes:

[0142]

[0143] Where K′ is the number of performance features at the network level, φ k′ is the first adjustment factor of the k′th performance characteristic at the network level, Y k′ is the k′th performance feature at the network level, ω k′ is the second adjustment factor of the k′th performance characteristic at the network level, v k′ is the third adjustment factor for the k′th performance characteristic at the network level.

[0144] Specifically, the weight of the i-th other factor γ i include:

[0145]

[0146] Among them, Z i,l is the lth element feature in the i-th category of other factors, L is the number of element features, λ li is the first adjustment factor of the lth element characteristic in the i-th category of other factors, m li is the second adjustment factor of the lth element characteristic in the i-th category of other factors, h li is the third adjustment factor of the lth element characteristic in the i-th category of other factors, μ liis the fourth adjustment factor of the lth element characteristic in the i-th category of other factors, ξ li It is the fifth adjustment factor of the lth element characteristic in the i-th category of other factors.

[0147] Step 103, compare the performance evaluation index of the tested software with a preset threshold value, if it exceeds the preset threshold value, the performance meets the standard, and optimize the tested software so that the performance evaluation index of the optimized tested software exceeds the preset threshold value, thereby completing the optimization of the tested software.

[0148] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0149] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0150] In the several embodiments provided by the present invention, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the system embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0151] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0152] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0153] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only storage medium (ROM, Read-Only Memory), random access storage medium (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0154] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the invention.

Claims

1. A method for analyzing software performance in a virtualized environment, characterized in that: include: Obtaining the running information of the software under test in the virtual environment, wherein the running information includes: the execution time of the software under test, the memory usage of the software under test, the CPU usage rate of the software under test, the network delay of the virtualized environment and other factors; Setting a software performance evaluation model, and calculating a performance evaluation index of the tested software according to the operation information; The performance evaluation index of the tested software is compared with a preset threshold. If it exceeds the preset threshold, the performance meets the standard. The tested software is optimized so that the performance evaluation index of the optimized tested software exceeds the preset threshold, thereby completing the optimization of the tested software.

2. The method for analyzing software performance in a virtualized environment according to claim 1, characterized in that: The software performance evaluation model includes: Among them, PS is the performance evaluation index of the tested software, T e is the execution time of the software under test, M u is the memory usage of the tested software, α is the weight of CPU usage, C u is the CPU usage of the tested software, β is the weight of network delay, L n is the network delay of the virtualized environment, N is the number of other factors, γ i is the weight of the i-th other factor, F i is the other factors of the i-th category.

3. The method for analyzing software performance in a virtualized environment according to claim 2, characterized in that: The weight α of CPU usage includes: Where J is the number of performance features at the application level, X j is the jth performance characteristic at the application level, K is the number of affected performance characteristics, θ jk is the adjustment factor between the jth performance feature at the application level and the kth performance feature at the application level, X k For X j The kth performance characteristic of the application level affected, p j is the first adjustment factor of the jth performance characteristic at the application level, θ j is the second adjustment factor of the j-th performance characteristic at the application level, qj is the third adjustment factor of the j-th performance characteristic at the application level, wherein the performance characteristics at the application level include: the number of application threads of the software under test, the number of active sessions of the software under test, the startup time of the software under test, and the response time of user requests.

4. The method for analyzing software performance in a virtualized environment according to claim 2, characterized in that: The weight β of network delay includes: Where K′ is the number of performance features at the network level, φ k′ is the first adjustment factor of the k′th performance characteristic at the network level, Y k′ is the k′th performance feature at the network level, ω k′ is the second adjustment factor of the k′th performance characteristic at the network level, v k′ is the third adjustment factor for the k′th performance characteristic at the network level.

5. The method for analyzing software performance in a virtualized environment according to claim 2, characterized in that: The weights γi of the i-th other factors include: Among them, Z i,l is the lth element feature in the i-th category of other factors, L is the number of element features, λ li is the first adjustment factor of the lth element characteristic in the i-th category of other factors, m li is the second adjustment factor of the lth element characteristic in the i-th category of other factors, h li is the third adjustment factor of the lth element characteristic in the i-th category of other factors, μ li is the fourth adjustment factor of the lth element characteristic in the i-th category of other factors, ξ li It is the fifth adjustment factor of the lth element characteristic in the i-th category of other factors.

6. A software performance analysis system in a virtualized environment, characterized in that: include: An information acquisition module is used to acquire the running information of the software under test in the virtual environment, wherein the running information includes: the execution time of the software under test, the memory usage of the software under test, the CPU usage rate of the software under test, the network delay of the virtualized environment and other factors; A model setting module is used to set a software performance evaluation model and calculate the performance evaluation index of the tested software according to the operation information; The optimization module is used to compare the performance evaluation index of the tested software with a preset threshold. If the performance exceeds the preset threshold, the software meets the performance standard. The tested software is optimized so that the performance evaluation index of the optimized tested software exceeds the preset threshold, thereby completing the optimization of the tested software.

7. A system for analyzing software performance in a virtualized environment as claimed in claim 6, characterized in that: The software performance evaluation model includes: Among them, PS is the performance evaluation index of the tested software, T e is the execution time of the software under test, M u is the memory usage of the tested software, α is the weight of CPU usage, C u is the CPU usage of the tested software, β is the weight of network delay, L n is the network delay of the virtualized environment, N is the number of other factors, γ i is the weight of the i-th other factor, F i is the other factors of the i-th category.

8. A system for analyzing software performance in a virtualized environment as claimed in claim 7, characterized in that: The weight α of CPU usage includes: Where J is the number of performance features at the application level, X j is the jth performance characteristic at the application level, K is the number of affected performance characteristics, θ jk is the adjustment factor between the jth performance feature at the application level and the kth performance feature at the application level, X k For X j The kth performance characteristic of the application level affected, p j is the first adjustment factor of the jth performance characteristic at the application level, θ j is the second adjustment factor of the jth performance characteristic at the application level, q j is the third adjustment factor of the j-th performance characteristic at the application level, wherein the performance characteristics at the application level include: the number of application threads of the software under test, the number of active sessions of the software under test, the startup time of the software under test, and the response time of user requests.

9. A system for analyzing software performance in a virtualized environment as claimed in claim 7, characterized in that: The weight β of network delay includes: Where K′ is the number of performance features at the network level, φ k′ is the first adjustment factor of the k′th performance characteristic at the network level, Y k′ is the k′th performance feature at the network level, ω k′ is the second adjustment factor of the k′th performance characteristic at the network level, v k′ is the third adjustment factor for the k′th performance characteristic at the network level.

10. The system for analyzing software performance in a virtualized environment according to claim 7, characterized in that: The weights γi of the i-th other factors include: Among them, Z i,l is the lth element feature in the i-th category of other factors, L is the number of element features, λ li is the first adjustment factor of the lth element characteristic in the i-th category of other factors, m li is the second adjustment factor of the lth element characteristic in the i-th category of other factors, h li is the third adjustment factor of the lth element characteristic in the i-th category of other factors, μ li is the fourth adjustment factor of the lth element characteristic in the i-th category of other factors, ξ li It is the fifth adjustment factor of the lth element characteristic in the i-th category of other factors.

Citation Information

Patent Citations

  • Software testing and evaluation method based on cloud computation technology

    CN108255716A

  • A performance evaluation method and a terminal of a web application based on big data analysis

    CN109240912A

  • Method, system and related device for testing computer program performance

    CN114201389A

  • Performance test management method and system for virtualized CPU (Central Processing Unit)

    CN117632378A

Cited By

  • Software performance analysis method and system in virtualization environment with cross-layer data association

    CN121349825A