A server performance testing method, device and storage medium

By obtaining the test number of the target server, analyzing the test configuration package, conducting benchmark and load tests, calculating scores, and summarizing them into performance test evaluation results, solving the problems of high cost and low efficiency of server performance testing in the existing technology, and achieving rapid and Reliable server performance testing.

CN118885367BActive Publication Date: 2025-02-07BEIJING ZHENHONG RIO TINTO ELECTRONIC TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410915354.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2025-02-07
Estimated Expiration
2044-07-09

AI Technical Summary

Technical Problem

The existing server performance testing methods have high investment costs, low testing efficiency and limited scope of application, which cannot conveniently and effectively meet users' needs for basic server performance testing.

Method used

By obtaining the test number of the target server, the corresponding test configuration package is retrieved, the hardware test configuration set and system test configuration set are parsed and extracted, the CPU, memory and hard disk benchmark tests, and the system load tests are performed, and the benchmark index scores and stability indicators are calculated. Scores and load metrics scores are summarized as performance test evaluation results.

Benefits of technology

It realizes fast and reliable server performance testing, efficiently evaluates the server's basic hardware performance, usage stability and load capacity, reduces the testing difficulty and cost, and meets users' needs for server basic performance testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118885367B_ABST
    Figure CN118885367B_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of server testing, and specifically discloses a server performance testing method, device and storage medium, which extracts hardware test configuration set and system test configuration set by retrieving the test configuration package corresponding to the target server test number, and then uses the hardware test configuration set to perform CPU, memory and hard disk benchmark tests under different test environments, and uses the system test configuration set to perform system load test on the target server, and then calculates the benchmark index score and stability index score of the target server according to the corresponding benchmark test results, calculates the load index score according to the corresponding load test results, and finally summarizes the performance test evaluation results of the target server for output. The present invention can efficiently and accurately evaluate the basic hardware performance, usage stability and load capacity of the server, and provide a reference basis for selecting a suitable server or optimizing server performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of server testing, and in particular relates to a server performance testing method, device and storage medium. Background Art

[0002] With the rapid development of the Internet, the performance of servers, as the core components of network operation, directly affects the business operations and user experience of enterprises. In order to ensure the efficient and stable operation of servers, it is essential to conduct corresponding performance tests on them. Most of the existing server performance testing methods are based on third-party testing standards and tools, and then the corresponding testing platforms are built to complete them. The investment cost is high, the testing efficiency is low, and the scope of application is limited. It cannot more conveniently and effectively meet the user's basic performance testing needs for servers. Summary of the invention

[0003] The purpose of the present invention is to provide a server performance testing method, device and storage medium to solve the above problems existing in the prior art.

[0004] In order to achieve the above object, the present invention adopts the following technical solutions:

[0005] In a first aspect, a server performance testing method is provided, comprising:

[0006] Obtain the test number of the target server, and retrieve the corresponding test configuration package according to the test number of the target server;

[0007] Parsing the test configuration package, extracting a hardware test configuration set and a system test configuration set from the package, wherein the hardware test configuration set includes standard CPU test configuration parameters, standard memory test configuration parameters and standard hard disk test configuration parameters, and the system test configuration set includes several different levels of system load test configuration parameters;

[0008] Under different test environments, standard CPU test configuration parameters, standard memory test configuration parameters, and standard disk test configuration parameters are used to perform benchmark tests on the CPU, memory, and hard disk of the target server, and the CPU test results, memory test results, and hard disk test results under each test environment are obtained;

[0009] Calculate the benchmark index score and stability index score of the target server based on the CPU test results, memory test results, and hard disk test results in different test environments;

[0010] Use system load test configuration parameters of each level to perform system load test on the target server and obtain corresponding load test results;

[0011] Calculate the load index score of the target server based on the load test results corresponding to the load test configuration parameters of each level system;

[0012] The benchmark index score, stability index score and load index score are aggregated into a performance test evaluation result of the target server, and the performance test evaluation result of the target server is output.

[0013] In a possible design, the step of retrieving a corresponding test configuration package according to the test number of the target server includes:

[0014] The test number of the target server is imported into the configuration library for search, the test configuration package corresponding to the test number is determined, and the test configuration package corresponding to the test number is retrieved from the configuration library, wherein several test configuration packages are pre-stored in the configuration library, and each test configuration package is associated with the corresponding test number.

[0015] In a possible design, parsing the test configuration package to extract the hardware test configuration set and the system test configuration set includes:

[0016] The test configuration package is decrypted using the set decryption algorithm and key to obtain the hardware test configuration set and the system test configuration set.

[0017] In a possible design, under different test environments, standard CPU test configuration parameters, standard memory test configuration parameters, and standard disk test configuration parameters are used to perform benchmark tests on the CPU, memory, and hard disk of the target server, respectively, to obtain CPU test results, memory test results, and hard disk test results under each test environment, including:

[0018] Under different test environments, a CPU test tool is used to load standard CPU test configuration parameters to perform floating-point operation tests on the CPU of the target server, and corresponding floating-point operation scores are obtained, and each floating-point operation score is used as the CPU test result under the corresponding test environment, wherein the standard CPU test configuration parameters include floating-point operation rule parameters;

[0019] Under different test environments, use the set memory read and write test tool to load the standard memory test configuration parameters to perform read and write tests on the memory of the target server, obtain the corresponding memory read and write duration, and use each memory read and write duration as the memory test result under the corresponding test environment, wherein the standard memory test configuration parameters include memory read and write test data;

[0020] Under different test environments, use the set hard disk read and write test tool to load the standard hard disk test configuration parameters to perform read and write tests on the target server's hard disk to obtain the corresponding hard disk read and write time. The read and write time of each hard disk is used as the hard disk test result under the corresponding test environment. The standard hard disk test configuration parameters include hard disk read and write test data.

[0021] In a possible design, the calculation of the benchmark index score and stability index score of the target server according to the CPU test results, memory test results, and hard disk test results under different test environments includes:

[0022] Substitute the floating-point operation score, memory read / write time, and hard disk read / write time in each test environment into the preset benchmark score calculation formula to calculate and obtain the benchmark score in each test environment. The benchmark score calculation formula is:

[0023]

[0024] Where i is the test environment number, Z i is the benchmark score under test environment i, S i is the floating point operation score under test environment i, T1 i is the memory read and write time under test environment i, T2 i is the hard disk read and write duration under test environment i, t1 is the memory reference duration, t2 is the hard disk reference duration, ε is the set first conversion coefficient, Φ is the set second conversion coefficient, and ω is the set third conversion coefficient;

[0025] The benchmark scores of each test environment are weighted and summed according to the set weight ratio to obtain the benchmark indicator score of the target server;

[0026] Substitute the floating-point operation score, memory read / write duration, and hard disk read / write duration in each test environment into the preset stability index scoring formula for calculation to obtain the stability index score of the target server. The stability index scoring formula is:

[0027]

[0028] Among them, P is the stability index score, n is the total number of test environments, S' is the average floating-point operation score in each test environment, T1' is the average memory read and write time in each test environment, and T2' is the average hard disk read and write time in each test environment.

[0029] In a possible design, the load test results include the number of simultaneous online users U, the service request frequency F of each user, the update transaction volume N1 of each service request, the query transaction volume N2 of each service request, the statistical transaction volume N3 of each service request, the system response time T0, and the average system idle rate R within the system response time T0. The load test results corresponding to the system load test configuration parameters of each level are used to calculate the load index score of the target server, including:

[0030] Substitute the load test results corresponding to the load test configuration parameters of each level system into the preset load performance score formula for calculation to obtain the load performance score corresponding to the load test configuration parameters of each level system. The load performance score formula is:

[0031]

[0032] Where D is the load performance score, c is the set empirical constant;

[0033] The load performance scores corresponding to the load test configuration parameters of each level of system are weighted and summed according to the set weight ratio to obtain the load index score of the target server.

[0034] In one possible design, the method further includes:

[0035] When one or more of the judgment benchmark index score, the stability index score, and the load index score is less than the set score threshold, corresponding performance warning information is generated and output.

[0036] In a second aspect, a server performance testing device is provided, comprising a configuration acquisition unit, a configuration parsing unit, a benchmark testing unit, a first scoring unit, a load testing unit, a second scoring unit and a result output unit, wherein:

[0037] A configuration acquisition unit, used to acquire the test number of the target server and retrieve the corresponding test configuration package according to the test number of the target server;

[0038] A configuration parsing unit, used to parse the test configuration package and extract a hardware test configuration set and a system test configuration set therefrom, wherein the hardware test configuration set includes standard CPU test configuration parameters, standard memory test configuration parameters and standard hard disk test configuration parameters, and the system test configuration set includes several different levels of system load test configuration parameters;

[0039] The benchmark test unit is used to perform benchmark tests on the CPU, memory and hard disk of the target server under different test environments using standard CPU test configuration parameters, standard memory test configuration parameters and standard disk test configuration parameters respectively, and obtain CPU test results, memory test results and hard disk test results under each test environment;

[0040] A first scoring unit, used to calculate a benchmark index score and a stability index score of a target server according to CPU test results, memory test results, and hard disk test results under different test environments;

[0041] The load testing unit is used to perform system load testing on the target server using system load testing configuration parameters of each level to obtain corresponding load testing results;

[0042] A second scoring unit is used to calculate the load index score of the target server according to the load test results corresponding to the load test configuration parameters of each level system;

[0043] The result output unit is used to summarize the benchmark index score, stability index score and load index score into the performance test evaluation result of the target server, and output the performance test evaluation result of the target server.

[0044] In a third aspect, a server performance testing device is provided, comprising:

[0045] A memory for storing instructions;

[0046] A processor is used to read the instructions stored in the memory and execute any one of the methods described in the first aspect according to the instructions.

[0047] In a fourth aspect, a computer-readable storage medium is provided, wherein instructions are stored on the computer-readable storage medium, and when the instructions are executed on a computer, the computer is caused to execute any one of the methods described in the first aspect. In addition, a computer program product containing instructions is provided, and when the instructions are executed on a computer, the computer is caused to execute any one of the methods described in the first aspect.

[0048] Beneficial effect: The present invention retrieves the test configuration package corresponding to the target server test number to parse and extract the hardware test configuration set and the system test configuration set, then uses the hardware test configuration set to perform CPU, memory and hard disk benchmark tests under different test environments, uses the system test configuration set to perform system load tests on the target server, and then calculates the benchmark index score and stability index score of the target server according to the corresponding benchmark test results, calculates the load index score according to the corresponding load test results, and finally summarizes the performance test evaluation results of the target server for output, so as to achieve fast and reliable server performance testing. Through the corresponding benchmark test and load test processes, the present invention can efficiently and accurately test and evaluate the basic hardware performance, usage stability and load capacity of the server, provide a reference basis for selecting a suitable server or optimizing server performance, and is easy to implement, which can effectively reduce the difficulty and cost of testing and meet the user's basic performance testing needs for the server. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0050] Figure 1 This is a schematic diagram of the steps of the method in Example 1 of the present invention;

[0051] Figure 2 This is a schematic diagram of the structure of the device in Example 2 of the present invention;

[0052] Figure 3 This is a schematic diagram of the structure of the device in Example 3 of the present invention. DETAILED DESCRIPTION

[0053] It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention. The specific structures and functional details disclosed herein are only used to describe the exemplary embodiments of the present invention. However, the present invention can be embodied in many alternative forms, and it should not be understood that the present invention is limited to the embodiments set forth herein.

[0054] It should be understood that, unless otherwise clearly specified and limited, the term "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the embodiments can be understood according to specific circumstances.

[0055] In the following description, certain details are provided to facilitate a complete understanding of the example embodiments. However, it will be appreciated by those of ordinary skill in the art that the example embodiments may be implemented without these certain details. For example, devices may be shown in block diagrams to avoid obscuring the examples with unnecessary details. In other embodiments, well-known processes, structures, and techniques may not be shown in unnecessary detail to avoid obscuring the embodiments.

[0056] Embodiment 1:

[0057] This embodiment provides a server performance testing method, which can be applied to corresponding server performance testing equipment, such as Figure 1 As shown, the method comprises the following steps:

[0058] S1. Obtain the test number of the target server, and retrieve the corresponding test configuration package according to the test number of the target server.

[0059] During the specific implementation, the test number of the target server to be tested must be obtained first, and then the test number of the target server is imported into the configuration library for search, the test configuration package corresponding to the test number is determined, and the test configuration package corresponding to the test number is retrieved from the configuration library. Several test configuration packages are pre-stored in the configuration library, and each test configuration package is associated with a corresponding test number. The test configuration package can be edited by professional testers and encrypted and stored in the configuration library to prevent leakage of empirical data, and the test configuration packages pre-stored in the configuration library can be added or replaced according to actual conditions.

[0060] S2. Parse the test configuration package and extract a hardware test configuration set and a system test configuration set from it. The hardware test configuration set includes standard CPU test configuration parameters, standard memory test configuration parameters and standard hard disk test configuration parameters, and the system test configuration set includes several different levels of system load test configuration parameters.

[0061] In specific implementation, the test configuration package can be decrypted using the set decryption algorithm and key to obtain a hardware test configuration set and a system test configuration set. The hardware test configuration set includes standard CPU test configuration parameters, standard memory test configuration parameters and standard hard disk test configuration parameters. The standard CPU test configuration parameters include floating point operation rule parameters, the standard memory test configuration parameters include memory read and write test data, the standard hard disk test configuration parameters include hard disk read and write test data, and the system test configuration set includes several different levels of system load test configuration parameters.

[0062] S3. Under different test environments, standard CPU test configuration parameters, standard memory test configuration parameters, and standard disk test configuration parameters are used to perform benchmark tests on the CPU, memory, and hard disk of the target server, and the CPU test results, memory test results, and hard disk test results under each test environment are obtained.

[0063] During specific implementation, different test environments may include different test environments such as temperature, humidity, pressure, vibration intensity, and electromagnetic intensity. Under different test environments, a set CPU test tool (such as Performance Test) can be used to load standard CPU test configuration parameters to perform floating-point operation tests on the CPU of the target server to obtain corresponding floating-point operation scores, and each floating-point operation score is used as the CPU test result under the corresponding test environment. The standard CPU test configuration parameters include floating-point operation rule parameters. Under different test environments, a set memory read-write test tool (such as Memtest) can be used to load standard memory test configuration parameters to perform read-write tests on the memory of the target server to obtain corresponding memory read-write durations, and each memory read-write duration is used as the memory test result under the corresponding test environment. The standard memory test configuration parameters include memory read-write test data. Under different test environments, you can use the set hard disk read and write test tool (such as CrystalDiskMark) to load the standard hard disk test configuration parameters to perform read and write tests on the target server's hard disk to obtain the corresponding hard disk read and write time. The read and write time of each hard disk is used as the hard disk test result under the corresponding test environment. The standard hard disk test configuration parameters include hard disk read and write test data.

[0064] S4. Calculate the benchmark index score and stability index score of the target server according to the CPU test results, memory test results, and hard disk test results under different test environments.

[0065] In specific implementation, the floating point operation score, memory read and write time and hard disk read and write time under each test environment can be substituted into the preset benchmark score calculation formula for calculation to obtain the benchmark score under each test environment. The benchmark score calculation formula is:

[0066]

[0067] Where i is the test environment number, Z i is the benchmark score under test environment i, S i is the floating point operation score under test environment i, T1 i is the memory read and write time under test environment i, T2 iis the hard disk read and write time under test environment i, t1 is the memory reference time, t2 is the hard disk reference time, ε is the set first conversion coefficient, Φ is the set second conversion coefficient, and ω is the set third conversion coefficient. Then, the benchmark scores under each test environment are weighted and summed according to the set weight ratio to obtain the benchmark indicator score of the target server.

[0068] The floating-point operation score, memory read / write time, and hard disk read / write time under each test environment can be substituted into the preset stability index scoring formula for calculation to obtain the stability index score of the target server. The stability index scoring formula is:

[0069]

[0070] Among them, P is the stability index score, n is the total number of test environments, S' is the average floating-point operation score in each test environment, T1' is the average memory read and write time in each test environment, and T2' is the average hard disk read and write time in each test environment.

[0071] S5. Use system load test configuration parameters of each level to perform system load test on the target server and obtain corresponding load test results.

[0072] During specific implementation, the system load test configuration parameters of each level can be used to perform system load test on the target server to obtain corresponding load test results. The system load test configuration parameters include simulated user configuration parameters and simulated business request configuration parameters corresponding to the simulated user, and the simulated business request configuration parameters include several update transaction configuration parameters, several query transaction configuration parameters and several statistical transaction configuration parameters. When the system load test configuration parameters of each level are used to perform system load test on the target server, it is possible to simulate multiple users online at the same time to make business requests of corresponding frequency to the target server based on the system load test configuration parameters to obtain the response efficiency and idle situation of the target server, so as to facilitate the mastering of the concurrent processing capacity of the target server. The load test results include the number of users online at the same time U, the frequency of business requests per user F, the update transaction volume N1 per business request, the query transaction volume N2 per business request, the statistical transaction volume N3 per business request, the system response time T0 and the average system idle rate R within the system response time T0.

[0073] S6. Calculate the load index score of the target server based on the load test results corresponding to the load test configuration parameters of each level of system.

[0074] In specific implementation, the load test results corresponding to the load test configuration parameters of each level system can be substituted into the preset load performance score formula for calculation to obtain the load performance score corresponding to the load test configuration parameters of each level system. The load performance score formula is:

[0075]

[0076] Among them, D is the load performance score, and c is the set empirical constant. Then, the load performance scores corresponding to the load test configuration parameters of each level of system are weighted and summed according to the set weight ratio to obtain the load index score of the target server.

[0077] S7. Summarize the benchmark index score, stability index score and load index score into the performance test evaluation result of the target server, and output the performance test evaluation result of the target server.

[0078] In specific implementation, the benchmark index score, stability index score and load index score can be summarized as the performance test evaluation result of the target server, and the performance test evaluation result of the target server can be output. When it is determined that one or more of the benchmark index score, stability index score and load index score is less than the set score threshold, corresponding performance warning information can be generated and output to remind the user that the target server has corresponding performance defects.

[0079] The method of this embodiment can realize fast and reliable server performance testing. Through the corresponding benchmark test and load test process, the basic hardware performance, usage stability and load capacity of the server can be tested and evaluated efficiently and accurately, providing a reference basis for selecting a suitable server or optimizing server performance. It is easy to implement and can effectively reduce the difficulty and cost of testing, thus meeting the user's basic performance testing needs for the server.

[0080] Embodiment 2:

[0081] This embodiment provides a server performance testing device, such as Figure 2 As shown, it includes a configuration acquisition unit, a configuration parsing unit, a benchmark test unit, a first scoring unit, a load test unit, a second scoring unit and a result output unit, wherein:

[0082] A configuration acquisition unit, used to acquire the test number of the target server and retrieve the corresponding test configuration package according to the test number of the target server;

[0083] A configuration parsing unit, used to parse the test configuration package and extract a hardware test configuration set and a system test configuration set therefrom, wherein the hardware test configuration set includes standard CPU test configuration parameters, standard memory test configuration parameters and standard hard disk test configuration parameters, and the system test configuration set includes several different levels of system load test configuration parameters;

[0084] The benchmark test unit is used to perform benchmark tests on the CPU, memory and hard disk of the target server under different test environments using standard CPU test configuration parameters, standard memory test configuration parameters and standard disk test configuration parameters respectively, and obtain CPU test results, memory test results and hard disk test results under each test environment;

[0085] A first scoring unit, used to calculate a benchmark index score and a stability index score of a target server according to CPU test results, memory test results, and hard disk test results under different test environments;

[0086] The load testing unit is used to perform system load testing on the target server using system load testing configuration parameters of each level to obtain corresponding load testing results;

[0087] A second scoring unit is used to calculate the load index score of the target server according to the load test results corresponding to the load test configuration parameters of each level system;

[0088] The result output unit is used to summarize the benchmark index score, stability index score and load index score into the performance test evaluation result of the target server, and output the performance test evaluation result of the target server.

[0089] Embodiment 3:

[0090] This embodiment provides a server performance testing device, such as Figure 3 As shown, at the hardware level, it includes:

[0091] Data interface, used to establish data connection between the processor and the target server;

[0092] A memory for storing instructions;

[0093] The processor is used to read the instructions stored in the memory and execute the server performance testing method in Example 1 according to the instructions.

[0094] Optionally, the device further includes an internal bus, through which the processor, the memory and the data interface can be interconnected, and the internal bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc.

[0095] The memory may include, but is not limited to, random access memory (RAM), read only memory (ROM), flash memory, first input first output (FIFO) and / or first in last out (FILO) memory, etc. The processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0096] Embodiment 4:

[0097] This embodiment provides a computer-readable storage medium, on which instructions are stored, and when the instructions are executed on a computer, the computer executes the server performance testing method in Embodiment 1. The computer-readable storage medium refers to a carrier for storing data, which may include but is not limited to a floppy disk, an optical disk, a hard disk, a flash memory, a USB flash drive, and / or a memory stick, etc. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.

[0098] This embodiment also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the server performance testing method in Embodiment 1. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.

[0099] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A server performance testing method, characterized in that: include: Obtain the test number of the target server, and retrieve the corresponding test configuration package according to the test number of the target server; Parsing the test configuration package, extracting a hardware test configuration set and a system test configuration set from the package, wherein the hardware test configuration set includes standard CPU test configuration parameters, standard memory test configuration parameters and standard hard disk test configuration parameters, and the system test configuration set includes several different levels of system load test configuration parameters; Under different test environments, standard CPU test configuration parameters, standard memory test configuration parameters, and standard disk test configuration parameters are used to benchmark the CPU, memory, and hard disk of the target server, and the CPU test results, memory test results, and hard disk test results under each test environment are obtained; including: Under different test environments, after using the set CPU test tool to load the standard CPU test configuration parameters, a floating-point operation test is performed on the CPU of the target server to obtain a corresponding floating-point operation score, and each floating-point operation score is used as the CPU test result under the corresponding test environment, and the standard CPU test configuration parameters include floating-point operation rule parameters; under different test environments, after using the set memory read-write test tool to load the standard memory test configuration parameters, a read-write test is performed on the memory of the target server to obtain a corresponding memory read-write duration, and each memory read-write duration is used as the memory test result under the corresponding test environment, and the standard memory test configuration parameters include memory read-write test data; under different test environments, after using the set hard disk read-write test tool to load the standard hard disk test configuration parameters, a read-write test is performed on the hard disk of the target server to obtain a corresponding hard disk read-write duration, and each hard disk read-write duration is used as the hard disk test result under the corresponding test environment, and the standard hard disk test configuration parameters include hard disk read-write test data; Calculate the benchmark index score and stability index score of the target server based on the CPU test results, memory test results, and hard disk test results in different test environments; including: Substitute the floating-point operation score, memory read / write time, and hard disk read / write time in each test environment into the preset benchmark score calculation formula to calculate and obtain the benchmark score in each test environment. The benchmark score calculation formula is: Where i is the test environment number, Z i is the benchmark score under test environment i, S i is the floating point operation score under test environment i, T1 i is the memory read and write time under test environment i, T2 i is the hard disk read and write duration under test environment i, t1 is the memory reference duration, t2 is the hard disk reference duration, ε is the set first conversion coefficient, Φ is the set second conversion coefficient, and ω is the set third conversion coefficient; The benchmark scores of each test environment are weighted and summed according to the set weight ratio to obtain the benchmark indicator score of the target server; Substitute the floating-point operation score, memory read / write duration, and hard disk read / write duration in each test environment into the preset stability index scoring formula for calculation to obtain the stability index score of the target server. The stability index scoring formula is: Where P is the stability index score, n is the total number of test environments, S' is the average floating-point operation score in each test environment, T1' is the average memory read and write time in each test environment, and T2' is the average hard disk read and write time in each test environment; Use system load test configuration parameters of each level to perform system load test on the target server and obtain corresponding load test results; The load index score of the target server is calculated according to the load test results corresponding to the load test configuration parameters of each level system; the load test results include the number of simultaneous online users U of the system, the service request frequency F of each user, the update transaction volume N1 of each service request, the query transaction volume N2 of each service request, the statistical transaction volume N3 of each service request, the system response time T0 and the average system idle rate R within the system response time T0. The load test results corresponding to the load test configuration parameters of each level system are used to calculate the load index score of the target server, including: Substitute the load test results corresponding to the load test configuration parameters of each level system into the preset load performance score formula for calculation to obtain the load performance score corresponding to the load test configuration parameters of each level system. The load performance score formula is: Where D is the load performance score, c is the set empirical constant; The load performance scores corresponding to the load test configuration parameters of each level of the system are weighted and summed according to the set weight ratio to obtain the load index score of the target server; The benchmark index score, stability index score and load index score are aggregated into a performance test evaluation result of the target server, and the performance test evaluation result of the target server is output.

2. A server performance testing method according to claim 1, characterized in that: The step of retrieving a corresponding test configuration package according to the test number of the target server includes: The test number of the target server is imported into the configuration library for search, the test configuration package corresponding to the test number is determined, and the test configuration package corresponding to the test number is retrieved from the configuration library, wherein several test configuration packages are pre-stored in the configuration library, and each test configuration package is associated with the corresponding test number.

3. A server performance testing method according to claim 1, characterized in that: The step of parsing the test configuration package and extracting a hardware test configuration set and a system test configuration set therefrom includes: The test configuration package is decrypted using the set decryption algorithm and key to obtain the hardware test configuration set and the system test configuration set.

4. A server performance testing method according to claim 1, characterized in that: The method further comprises: When one or more of the judgment benchmark index score, the stability index score, and the load index score is less than the set score threshold, corresponding performance warning information is generated and output.

5. A server performance testing device, characterized in that: It includes a configuration acquisition unit, a configuration parsing unit, a benchmark test unit, a first scoring unit, a load test unit, a second scoring unit and a result output unit, wherein: A configuration acquisition unit, used to acquire the test number of the target server and retrieve the corresponding test configuration package according to the test number of the target server; A configuration parsing unit, used to parse the test configuration package and extract a hardware test configuration set and a system test configuration set therefrom, wherein the hardware test configuration set includes standard CPU test configuration parameters, standard memory test configuration parameters and standard hard disk test configuration parameters, and the system test configuration set includes several different levels of system load test configuration parameters; The benchmark test unit is used to perform benchmark tests on the CPU, memory and hard disk of the target server under different test environments using standard CPU test configuration parameters, standard memory test configuration parameters and standard disk test configuration parameters respectively, and obtain CPU test results, memory test results and hard disk test results under each test environment; including: Under different test environments, after using the set CPU test tool to load the standard CPU test configuration parameters, a floating-point operation test is performed on the CPU of the target server to obtain a corresponding floating-point operation score, and each floating-point operation score is used as the CPU test result under the corresponding test environment, and the standard CPU test configuration parameters include floating-point operation rule parameters; under different test environments, after using the set memory read-write test tool to load the standard memory test configuration parameters, a read-write test is performed on the memory of the target server to obtain a corresponding memory read-write duration, and each memory read-write duration is used as the memory test result under the corresponding test environment, and the standard memory test configuration parameters include memory read-write test data; under different test environments, after using the set hard disk read-write test tool to load the standard hard disk test configuration parameters, a read-write test is performed on the hard disk of the target server to obtain a corresponding hard disk read-write duration, and each hard disk read-write duration is used as the hard disk test result under the corresponding test environment, and the standard hard disk test configuration parameters include hard disk read-write test data; The first scoring unit is used to calculate the benchmark index score and stability index score of the target server according to the CPU test results, memory test results and hard disk test results under different test environments; including: Substitute the floating-point operation score, memory read / write time, and hard disk read / write time in each test environment into the preset benchmark score calculation formula to calculate and obtain the benchmark score in each test environment. The benchmark score calculation formula is: Where i is the test environment number, Z i is the benchmark score under test environment i, S i is the floating point operation score under test environment i, T1 i is the memory read and write time under test environment i, T2 i is the hard disk read and write duration under test environment i, t1 is the memory reference duration, t2 is the hard disk reference duration, ε is the set first conversion coefficient, Φ is the set second conversion coefficient, and ω is the set third conversion coefficient; The benchmark scores of each test environment are weighted and summed according to the set weight ratio to obtain the benchmark indicator score of the target server; Substitute the floating-point operation score, memory read / write duration, and hard disk read / write duration in each test environment into the preset stability index scoring formula for calculation to obtain the stability index score of the target server. The stability index scoring formula is: Where P is the stability index score, n is the total number of test environments, S' is the average floating-point operation score in each test environment, T1' is the average memory read and write time in each test environment, and T2' is the average hard disk read and write time in each test environment; The load testing unit is used to perform system load testing on the target server using system load testing configuration parameters of each level to obtain corresponding load testing results; The second scoring unit is used to calculate the load index score of the target server according to the load test results corresponding to the system load test configuration parameters of each level; the load test results include the number of simultaneous online users U of the system, the service request frequency F of each user, the update transaction volume N1 of each service request, the query transaction volume N2 of each service request, the statistical transaction volume N3 of each service request, the system response time T0 and the average system idle rate R within the system response time T0. The load test results corresponding to the system load test configuration parameters of each level are used to calculate the load index score of the target server, including: Substitute the load test results corresponding to the load test configuration parameters of each level system into the preset load performance score formula for calculation to obtain the load performance score corresponding to the load test configuration parameters of each level system. The load performance score formula is: Where D is the load performance score, c is the set empirical constant; The load performance scores corresponding to the load test configuration parameters of each level of the system are weighted and summed according to the set weight ratio to obtain the load index score of the target server; The result output unit is used to summarize the benchmark index score, stability index score and load index score into the performance test evaluation result of the target server, and output the performance test evaluation result of the target server.

6. A server performance testing device, characterized in that: include: A memory for storing instructions; A processor is used to read the instructions stored in the memory and execute the server performance testing method described in any one of claims 1-4 according to the instructions.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the computer executes the server performance testing method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Server performance evaluation method and device and storage medium

    CN117312116A

  • Server performance test method and device, storage medium and electronic equipment

    CN117608941A