CN116361126A - Performance test method, device, equipment and computer storage medium - Google Patents

Performance test method, device, equipment and computer storage medium Download PDF

Info

Publication number
CN116361126A
CN116361126A CN202111624098.4A CN202111624098A CN116361126A CN 116361126 A CN116361126 A CN 116361126A CN 202111624098 A CN202111624098 A CN 202111624098A CN 116361126 A CN116361126 A CN 116361126A
Authority
CN
China
Prior art keywords
information
test
determining
node
tested
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111624098.4A
Other languages
Chinese (zh)
Inventor
陈飞
罗鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Suzhou Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Suzhou Software Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202111624098.4A priority Critical patent/CN116361126A/en
Publication of CN116361126A publication Critical patent/CN116361126A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention relates to the technical field of testing, and discloses a performance testing method, which comprises the following steps: determining test task configuration information; the test task configuration information comprises information of an object to be tested, information of test operation and information of a test node; configuring the test node according to the test task configuration information so that the test node executes test operation on the object to be tested; determining running state information of the test node in the execution process of the test operation; and determining a performance test result of the object to be tested according to the running state information. By the mode, the reliability of the performance test result is improved.

Description

Performance test method, device, equipment and computer storage medium
Technical Field
The embodiment of the invention relates to the technical field of computer data processing, in particular to a performance test method, a performance test device, performance test equipment and a computer storage medium.
Background
The object storage is a storage product capable of providing mass space, and has the characteristics of high performance, high reliability, safety, low cost and the like. The object storage provides storage service of unstructured data (files in formats of pictures, audios and videos, texts and the like) through a standard S3/shift interface, and meets the requirements of users for managing and accessing the data through the Internet anywhere.
The inventors of the present application found in the practice of the present invention that: the current test results for testing the performance of object storage are not reliable enough.
Disclosure of Invention
In view of the above problems, embodiments of the present invention provide a performance testing method, which is used to solve the problem in the prior art that the performance testing result is not reliable enough.
According to an aspect of an embodiment of the present invention, there is provided a performance test method, the method including:
determining test task configuration information; the test task configuration information comprises information of an object to be tested, information of test operation and information of a test node;
configuring the test node according to the test task configuration information so that the test node executes the test operation on the object to be tested;
determining running state information of the test node in the execution process of the test operation;
and determining a performance test result of the object to be tested according to the running state information.
In an alternative manner, the object to be tested includes an object storage server; the information of the object to be tested comprises object address information, object authentication information and test security configuration information of the object to be tested;
the test node configuration information comprises node address information, node authentication information and test thread configuration information of the test node;
the test operation information comprises information corresponding to an operation method and an operation file of the object to be tested respectively; the operation method is used for operating the operation file.
In an alternative manner, the operational state information includes a plurality of items of sub-state information; the method further comprises the steps of:
acquiring node operation data of the test node in the execution process of the test operation;
determining resource use information of the test node according to the node operation data;
determining operation statistical information of the test node according to the node operation data;
and determining each item of sub-state information according to the resource use information and/or the operation statistical information.
In an alternative manner, the operation statistics information includes operation quantity information and operation result information; the sub-state information includes an operation success rate; the method further comprises the steps of:
and determining the operation success rate according to the operation result information and the operation quantity information.
In an alternative manner, the operation statistics information includes operation result information and operation time information; the sub-state information includes operating frequency information; the method further comprises the steps of:
and determining the operation frequency information according to the operation quantity information and the operation time information.
In an optional manner, the resource usage information includes network traffic information within a preset statistical duration; the sub-state information includes bandwidth information; the method further comprises the steps of:
and determining the bandwidth information according to the network flow and the preset statistical time length.
In an alternative manner, the number of the test nodes is a plurality; the method further comprises the steps of:
respectively determining sub-performance results corresponding to each item of sub-state information according to the running state information of all the test nodes;
and determining the performance test result according to all the sub-performance results.
According to another aspect of an embodiment of the present invention, there is provided a performance test apparatus including:
the first determining module is used for determining test task configuration information; the test task configuration information comprises information of an object to be tested, information of test operation and information of a test node;
the configuration module is used for configuring the test node according to the test task configuration information so that the test node executes the test operation on the object to be tested;
a second determining module, configured to determine running state information of the test node during execution of the test operation;
and the third determining module is used for determining the performance test result of the object to be tested according to the running state information.
According to another aspect of an embodiment of the present invention, there is provided a performance test apparatus including: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation of the performance test method.
According to yet another aspect of embodiments of the present invention, there is provided a computer-readable storage medium having stored therein at least one executable instruction for causing a performance testing apparatus to perform operations of a performance testing method as described.
The embodiment of the invention determines the configuration information of the test task; the test task configuration information comprises information of an object to be tested, information of test operation and information of a test node; configuring the test node according to the test task configuration information so that the test node executes test operation on the object to be tested; determining running state information of the test node in the execution process of the test operation; according to the method and the device, the performance test result of the object to be tested is determined according to the running state information, and the method and the device are different from the problem that the performance test result is incomplete and unreliable caused by testing a single performance index of the object to be tested in the prior art.
The foregoing description is only an overview of the technical solutions of the embodiments of the present invention, and may be implemented according to the content of the specification, so that the technical means of the embodiments of the present invention can be more clearly understood, and the following specific embodiments of the present invention are given for clarity and understanding.
Drawings
The drawings are only for purposes of illustrating embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 shows a flow chart of a performance test method according to an embodiment of the present invention;
FIG. 2 shows a schematic structural diagram of a performance testing apparatus according to an embodiment of the present invention;
fig. 3 shows a schematic structural diagram of a performance test apparatus according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be limited to the embodiments set forth herein.
FIG. 1 shows a flow chart of a performance testing method provided by an embodiment of the invention, which is performed by a computer processing device. The computer processing device may include a cell phone, a notebook computer, and the like. As shown in fig. 1, the method comprises the steps of:
step 10: determining test task configuration information; the test task configuration information comprises information of an object to be tested, information of test operation and information of a test node.
In one embodiment of the invention, the object to be tested comprises an object storage server. The object information to be tested comprises object address information, object authentication information and test security configuration information of the object to be tested; the test node configuration information comprises node address information, node authentication information and test thread configuration information of the test node; the test operation information comprises information corresponding to an operation method and an operation file of an object to be tested respectively; the operation method is used for operating the operation file.
Specifically, the object address information is used for the test node to access the object to be tested, the object authentication information comprises access authentication information set by the object to be tested, the test security configuration information comprises whether temporary authentication of the object to be tested is started, whether a private link function is started or not, and the like, the node address information is used for accessing and configuring the test node, the node authentication information comprises node identity verification information of the test node and is used for specifically characterizing the test node, the test thread configuration information comprises the number of test threads started in the test node, the management mode of the threads and the like, the operation method comprises writing, reading, deleting and the like, and the information corresponding to the operation file comprises the file type, the file number, the file size and the like of the executed test operation.
Step 20: and configuring the test node according to the test task configuration information so that the test node executes the test operation on the object to be tested.
In one embodiment of the invention, the information of the object to be tested and the information of the test operation are sent to the test node corresponding to the information of the test node. After receiving the test task configuration information, the test node starts a performance test program according to the test thread configuration information so as to operate the object storage server interface and simulate multi-user concurrent operation. The performance test program runs in a multi-process and asynchronous cooperative program mode based on event circulation, so that the optimal test performance of each test node on the tested object storage server is maintained. If the file needs to be sent to the object storage server to be tested in the test process, the file pre-generated in the memory can be used, the file reading time is shortened, and the system performance is improved.
When an object to be tested starts a temporary authentication and private link function, the test node firstly calls an interface of an object storage server to finish temporary authentication of object storage service and acquire a private link; and then completing the test operation of the object to be tested by using the temporary authentication and the private link. Specifically, the methods such as get_session_token, generate_predicted_url and the like can be called by using a multi-process and co-process mode through the Python SDK provided by the object storage server, so that the aim of performance test is fulfilled by simulating that multiple users use temporary authentication and private link functions concurrently.
In one embodiment of the invention, a plurality of test nodes can be respectively configured, and each test node performs test operation in a distributed manner, so that the efficiency of performance test is improved.
Step 30: and determining the running state information of the test node in the execution process of the test operation.
Considering that the main function of the object storage server is to provide a data storage service for a user, so as to meet the requirement of the user on management and access of stored data, the received feedback result and the self resource occupation condition of the user when operating the data of the object storage server can reversely reflect the performance of the object storage server, and therefore, in one embodiment of the invention, the running state information comprises the resource use information of the test node, which is used for representing the influence condition of the test operation on the self resource, and the operation statistical information, which is used for representing the quantity, time, result and the like of the test operation. The operation state can be evaluated from multiple dimensions, each dimension corresponds to a performance index of an object to be tested, and the performance indexes are integrated according to the performance indexes to determine the performance of the object to be tested.
Thus, in a further embodiment of the invention, the operational status information comprises a plurality of items of sub-status information; step 30 further comprises: step 301: and acquiring node operation data of the test node in the execution process of the test operation.
In one embodiment of the present invention, when the start of the test thread is detected, the node operation data is acquired, where the node operation data may include real-time monitoring information of the operation thread of the test node and occupation information of computing resources.
Step 302: and determining the resource use information of the test node according to the node operation data.
In one embodiment of the invention, the resource usage information is used to characterize the resource occupation of the test node itself in order for the test node to perform the test operation on the object to be tested. The resource usage information may specifically include CPU, memory, hard disk, network usage information, etc. of the test node.
Step 303: and determining operation statistical information of the test node according to the node operation data.
In one embodiment of the invention, the operation statistics are used to characterize indicators related to the operation during the operation. Specifically, the operation statistics information may include information of a type, time, operation result, and the like of a test operation performed by the test node.
Step 304: and determining each item of sub-state information according to the resource use information and/or the operation statistical information.
In one embodiment of the invention, the resource usage information and the operation statistical information respectively correspond to at least one item of sub-state information, the resource usage information and the operation statistical information are extracted under a preset dimension, and the corresponding sub-state information is obtained by calculating according to the extracted information and a performance formula corresponding to the dimension. For example, the dimensions corresponding to the resource usage information may include traffic usage, memory usage, and the like. The dimension corresponding to the operation statistics may include an operation result, an operation time, an operation number, and the like.
Thus, in still another embodiment of the present invention, the operation statistics include operation number information and operation result information; the sub-state information includes an operation success rate; step 304 further comprises:
step 3041: and determining the operation success rate according to the operation result information and the operation quantity information.
In one embodiment of the present invention, the operation result information includes an operation result of each test operation, the operation result may be operation success or operation failure, the operation number information includes a total number of operation requests, and the operation success rate is determined according to a ratio of the number of operation success operations to the total number of operation requests.
In still another embodiment of the present invention, the operation statistics include operation result information and operation time information; the sub-state information includes operating frequency information; step 304 further comprises:
step 3042: and determining the operation frequency information according to the operation quantity information and the operation time information.
In one embodiment of the present invention, the operation frequency information may be an operand of a unit time, and the operation time information may be a total duration of a test program run of one test node, and the operation frequency information is determined according to a ratio of a total number of all operations completed by the test node to a total duration of a test program motion.
In yet another embodiment of the present invention, the resource usage information includes network traffic within a preset statistical duration; the sub-state information includes bandwidth information; step 304 further comprises:
step 3043: and determining the bandwidth information according to the network flow and the preset statistical time length.
In one embodiment of the present invention, the network traffic refers to the total throughput of the network of the test node, and the bandwidth of the test node is determined according to the ratio of the network traffic to the preset statistical duration.
Step 40: and determining a performance test result of the object to be tested according to the running state information.
In one embodiment of the present invention, the number of the test nodes is a plurality;
step 40 further comprises: step 401: and respectively determining sub-performance results corresponding to each item of sub-state information according to the running state information of all the test nodes.
In one embodiment of the invention, a piece of sub-state information may be considered a piece of sub-performance index. Therefore, the running state information of all the test nodes under each piece of sub-state information is averaged to obtain the sub-performance result corresponding to the sub-state information.
Step 402: and determining the performance test result according to all the sub-performance results.
In one embodiment of the invention, all sub-performance results are weighted and summed according to the index weights respectively corresponding to each item of sub-state information to obtain the performance test result.
In yet another embodiment of the present invention, considering that the test node may encounter a problem affecting the normal operation of the test node during the operation, the test node monitoring module records the occurring problem and restarts the test node, re-operates the test task, and simultaneously sends the problem to the task management center. The task management center is used for carrying out load balancing and task distribution on the test nodes.
The performance test method provided by the embodiment of the invention determines the configuration information of the test task; the test task configuration information comprises information of an object to be tested, information of test operation and information of a test node; configuring the test node according to the test task configuration information so that the test node executes test operation on the object to be tested; determining running state information of the test node in the execution process of the test operation; and determining a performance test result of the object to be tested according to the running state information.
Therefore, the performance testing method provided by the embodiment of the invention is different from the problem that in the prior art, the performance testing result is incomplete and unreliable caused by testing a single performance index of the object to be tested, and the performance of the object to be tested is reversely determined by the running state information of the testing node, so that the performance of the object to be tested can be comprehensively evaluated from the user angle, and the reliability of the performance testing result can be improved.
Fig. 2 shows a schematic structural diagram of a performance testing apparatus according to an embodiment of the present invention. As shown in fig. 2, the apparatus 50 includes: a first determining module 501, a configuring module 502, a second determining module 503, and a third determining module 504, where the first determining module 501 is configured to determine test task configuration information; the test task configuration information comprises information of an object to be tested, information of test operation and information of a test node;
the configuration module 502 is configured to configure the test node according to the test task configuration information, so that the test node performs the test operation on the object to be tested;
a second determining module 503, configured to determine running state information of the test node during execution of the test operation;
and a third determining module 504, configured to determine a performance test result of the to-be-tested object according to the running state information.
In an alternative manner, the object to be tested includes an object storage server; the information of the object to be tested comprises object address information, object authentication information and test security configuration information of the object to be tested;
the test node configuration information comprises node address information, node authentication information and test thread configuration information of the test node;
the test operation information comprises information corresponding to an operation method and an operation file of the object to be tested respectively; the operation method is used for operating the operation file.
In an alternative manner, the operational state information includes a plurality of items of sub-state information; the second determining module 503 is further configured to:
acquiring node operation data of the test node in the execution process of the test operation;
determining resource use information of the test node according to the node operation data;
determining operation statistical information of the test node according to the node operation data;
and determining each item of sub-state information according to the resource use information and/or the operation statistical information.
In an alternative manner, the operation statistics information includes operation quantity information and operation result information; the sub-state information includes an operation success rate; the second determining module 503 is further configured to:
and determining the operation success rate according to the operation result information and the operation quantity information.
In an alternative manner, the operation statistics information includes operation result information and operation time information; the sub-state information includes operating frequency information; the second determining module 503 is further configured to:
and determining the operation frequency information according to the operation quantity information and the operation time information.
In an optional manner, the resource usage information includes network traffic information within a preset statistical duration; the sub-state information includes bandwidth information; the second determining module 503 is further configured to:
and determining the bandwidth information according to the network flow and the preset statistical time length.
In an alternative manner, the number of the test nodes is a plurality; the third determining module 503 is further configured to:
respectively determining sub-performance results corresponding to each item of sub-state information according to the running state information of all the test nodes;
and determining the performance test result according to all the sub-performance results.
The performance testing device provided by the embodiment of the invention determines the configuration information of the testing task; the test task configuration information comprises information of an object to be tested, information of test operation and information of a test node; configuring the test node according to the test task configuration information so that the test node executes test operation on the object to be tested; determining running state information of the test node in the execution process of the test operation; and determining a performance test result of the object to be tested according to the running state information.
Therefore, the performance testing device provided by the embodiment of the invention is different from the problem that in the prior art, the performance testing result is incomplete and unreliable caused by testing a single performance index of the object to be tested, and the performance of the object to be tested is reversely determined by the running state information of the testing node, so that the performance of the object to be tested can be comprehensively evaluated from the user angle, and the reliability of the performance testing result can be improved.
Fig. 3 is a schematic structural diagram of a performance testing apparatus according to an embodiment of the present invention, and the specific embodiment of the present invention is not limited to the specific implementation of the performance testing apparatus.
As shown in fig. 3, the performance test apparatus may include: a processor 602, a communication interface (Communications Interface), a memory 606, and a communication bus 608.
Wherein: processor 602, communication interface 604, and memory 606 perform communication with each other via communication bus 608. Communication interface 604 is used to communicate with network elements of other devices, such as clients or other servers. The processor 602 is configured to execute the program 610, and may specifically perform the relevant steps in the embodiment of the performance testing method described above.
In particular, program 610 may include program code comprising computer-executable instructions.
The processor 602 may be a central processing unit CPU or a specific integrated circuit ASIC (Application Specific Integrated Circuit) or one or more integrated circuits configured to implement embodiments of the present invention. The one or more processors comprised by the performance testing apparatus may be the same type of processor, such as one or more CPUs; but may also be different types of processors such as one or more CPUs and one or more ASICs.
A memory 606 for storing a program 610. The memory 606 may comprise high-speed RAM memory or may further comprise non-volatile memory (non-volatile memory), such as at least one disk memory.
Program 610 may be specifically invoked by processor 602 to cause performance testing apparatus to:
determining test task configuration information; the test task configuration information comprises information of an object to be tested, information of test operation and information of a test node;
configuring the test node according to the test task configuration information so that the test node executes the test operation on the object to be tested;
determining running state information of the test node in the execution process of the test operation;
and determining a performance test result of the object to be tested according to the running state information.
In an alternative manner, the object to be tested includes an object storage server; the information of the object to be tested comprises object address information, object authentication information and test security configuration information of the object to be tested;
the test node configuration information comprises node address information, node authentication information and test thread configuration information of the test node;
the test operation information comprises information corresponding to an operation method and an operation file of the object to be tested respectively; the operation method is used for operating the operation file.
In an alternative manner, the operational state information includes a plurality of items of sub-state information; the program 610 is invoked by the processor 602 to cause the performance testing apparatus to:
acquiring node operation data of the test node in the execution process of the test operation;
determining resource use information of the test node according to the node operation data;
determining operation statistical information of the test node according to the node operation data;
and determining each item of sub-state information according to the resource use information and/or the operation statistical information.
In an alternative manner, the operation statistics information includes operation quantity information and operation result information; the sub-state information includes an operation success rate; the program 610 is invoked by the processor 602 to cause the performance testing apparatus to:
and determining the operation success rate according to the operation result information and the operation quantity information.
In an alternative manner, the operation statistics information includes operation result information and operation time information; the sub-state information includes operating frequency information; the program 610 is invoked by the processor 602 to cause the performance testing apparatus to:
and determining the operation frequency information according to the operation quantity information and the operation time information.
In an optional manner, the resource usage information includes network traffic information within a preset statistical duration; the sub-state information includes bandwidth information; the program 610 is invoked by the processor 602 to cause the performance testing apparatus to:
and determining the bandwidth information according to the network flow and the preset statistical time length.
In an alternative manner, the number of the test nodes is a plurality; the program 610 is invoked by the processor 602 to cause the performance testing apparatus to:
respectively determining sub-performance results corresponding to each item of sub-state information according to the running state information of all the test nodes;
and determining the performance test result according to all the sub-performance results.
The performance test equipment provided by the embodiment of the invention determines the configuration information of the test task; the test task configuration information comprises information of an object to be tested, information of test operation and information of a test node; configuring the test node according to the test task configuration information so that the test node executes test operation on the object to be tested; determining running state information of the test node in the execution process of the test operation; and determining a performance test result of the object to be tested according to the running state information.
Therefore, the performance testing equipment provided by the embodiment of the invention is different from the problem that in the prior art, the performance testing result is incomplete and unreliable caused by testing a single performance index of the object to be tested, and the performance of the object to be tested is reversely determined by the running state information of the testing node, so that the performance of the object to be tested can be comprehensively evaluated from the user angle, and the reliability of the performance testing result can be improved.
An embodiment of the present invention provides a computer readable storage medium storing at least one executable instruction that, when executed on a performance test apparatus, causes the performance test apparatus to perform a performance test method according to any of the method embodiments described above.
The executable instructions may be specifically operable to cause the performance testing apparatus to:
determining test task configuration information; the test task configuration information comprises information of an object to be tested, information of test operation and information of a test node;
configuring the test node according to the test task configuration information so that the test node executes the test operation on the object to be tested;
determining running state information of the test node in the execution process of the test operation;
and determining a performance test result of the object to be tested according to the running state information.
In an alternative manner, the object to be tested includes an object storage server; the information of the object to be tested comprises object address information, object authentication information and test security configuration information of the object to be tested;
the test node configuration information comprises node address information, node authentication information and test thread configuration information of the test node;
the test operation information comprises information corresponding to an operation method and an operation file of the object to be tested respectively; the operation method is used for operating the operation file.
In an alternative manner, the operational state information includes a plurality of items of sub-state information; the executable instructions cause the performance testing apparatus to:
acquiring node operation data of the test node in the execution process of the test operation;
determining resource use information of the test node according to the node operation data;
determining operation statistical information of the test node according to the node operation data;
and determining each item of sub-state information according to the resource use information and/or the operation statistical information.
In an alternative manner, the operation statistics information includes operation quantity information and operation result information; the sub-state information includes an operation success rate; the executable instructions cause the performance testing apparatus to:
and determining the operation success rate according to the operation result information and the operation quantity information.
In an alternative manner, the operation statistics information includes operation result information and operation time information; the sub-state information includes operating frequency information; the executable instructions cause the performance testing apparatus to:
and determining the operation frequency information according to the operation quantity information and the operation time information.
In an optional manner, the resource usage information includes network traffic information within a preset statistical duration; the sub-state information includes bandwidth information; the executable instructions cause the performance testing apparatus to:
and determining the bandwidth information according to the network flow and the preset statistical time length.
In an alternative manner, the number of the test nodes is a plurality; the executable instructions cause the performance testing apparatus to:
respectively determining sub-performance results corresponding to each item of sub-state information according to the running state information of all the test nodes;
and determining the performance test result according to all the sub-performance results.
The computer storage medium provided by the embodiment of the invention determines the configuration information of the test task; the test task configuration information comprises information of an object to be tested, information of test operation and information of a test node; configuring the test node according to the test task configuration information so that the test node executes test operation on the object to be tested; determining running state information of the test node in the execution process of the test operation; and determining a performance test result of the object to be tested according to the running state information.
Therefore, the computer storage medium provided by the embodiment of the invention is different from the problem that in the prior art, the performance test result is incomplete and unreliable caused by testing a single performance index of the object to be tested, and the performance of the object to be tested is reversely determined by the running state information of the test node, so that the performance of the object to be tested can be comprehensively evaluated from the user angle, and the reliability of the performance test result can be improved.
The embodiment of the invention provides a performance testing device which is used for executing the performance testing method.
Embodiments of the present invention provide a computer program that is callable by a processor to cause a performance testing apparatus to perform the performance testing method of any of the method embodiments described above.
Embodiments of the present invention provide a computer program product comprising a computer program stored on a computer readable storage medium, the computer program comprising program instructions which, when run on a computer, cause the computer to perform the performance test method of any of the method embodiments described above.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general-purpose systems may also be used with the teachings herein. The required structure for a construction of such a system is apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It will be appreciated that the teachings of the present invention described herein may be implemented in a variety of programming languages, and the above description of specific languages is provided for disclosure of enablement and best mode of the present invention.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the above description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed as reflecting the intention that: i.e., the claimed invention requires more features than are expressly recited in each claim.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or components of the embodiments may be combined into one module or unit or component, and they may be divided into a plurality of sub-modules or sub-units or sub-components. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specifically stated.

Claims (10)

1. A method of performance testing, the method comprising:
determining test task configuration information; the test task configuration information comprises information of an object to be tested, information of test operation and information of a test node;
configuring the test node according to the test task configuration information so that the test node executes the test operation on the object to be tested;
determining running state information of the test node in the execution process of the test operation;
and determining a performance test result of the object to be tested according to the running state information.
2. The method of claim 1, wherein the object to be tested comprises an object storage server; the information of the object to be tested comprises object address information, object authentication information and test security configuration information of the object to be tested;
the test node configuration information comprises node address information, node authentication information and test thread configuration information of the test node;
the test operation information comprises information corresponding to an operation method and an operation file of the object to be tested respectively; the operation method is used for operating the operation file.
3. The method of claim 1, wherein the operational status information comprises a plurality of items of sub-status information; the determining the running state information of the test node in the execution process of the test operation comprises the following steps:
acquiring node operation data of the test node in the execution process of the test operation;
determining resource use information of the test node according to the node operation data;
determining operation statistical information of the test node according to the node operation data;
and determining each item of sub-state information according to the resource use information and/or the operation statistical information.
4. A method according to claim 3, wherein the operation statistics include operation number information and operation result information; the sub-state information includes an operation success rate; the determining the sub-state information according to the resource usage information and/or the operation statistical information comprises the following steps:
and determining the operation success rate according to the operation result information and the operation quantity information.
5. A method according to claim 3, wherein the operation statistics include operation result information and operation time information; the sub-state information includes operating frequency information; the determining the sub-state information according to the resource usage information and/or the operation statistical information comprises the following steps:
and determining the operation frequency information according to the operation quantity information and the operation time information.
6. A method according to claim 3, wherein the resource usage information comprises network traffic information within a preset statistical duration; the sub-state information includes bandwidth information; the determining the sub-state information according to the resource usage information and/or the operation statistical information comprises the following steps:
and determining the bandwidth information according to the network flow and the preset statistical time length.
7. A method according to claim 3, wherein the number of test nodes is a plurality; the determining the performance test result of the object to be tested according to the running state information comprises the following steps:
respectively determining sub-performance results corresponding to each item of sub-state information according to the running state information of all the test nodes;
and determining the performance test result according to all the sub-performance results.
8. A performance testing apparatus, the apparatus comprising:
the first determining module is used for determining test task configuration information; the test task configuration information comprises information of an object to be tested, information of test operation and information of a test node;
the configuration module is used for configuring the test node according to the test task configuration information so that the test node executes the test operation on the object to be tested;
a second determining module, configured to determine running state information of the test node during execution of the test operation;
and the third determining module is used for determining the performance test result of the object to be tested according to the running state information.
9. A performance testing apparatus, comprising: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to perform the operations of the performance testing method of any one of claims 1-7.
10. A computer readable storage medium, characterized in that at least one executable instruction is stored in the storage medium, which executable instruction, when run on a performance testing apparatus, causes the performance testing apparatus to perform the operations of the performance testing method according to any one of claims 1-7.
CN202111624098.4A 2021-12-28 2021-12-28 Performance test method, device, equipment and computer storage medium Pending CN116361126A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111624098.4A CN116361126A (en) 2021-12-28 2021-12-28 Performance test method, device, equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111624098.4A CN116361126A (en) 2021-12-28 2021-12-28 Performance test method, device, equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN116361126A true CN116361126A (en) 2023-06-30

Family

ID=86936396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111624098.4A Pending CN116361126A (en) 2021-12-28 2021-12-28 Performance test method, device, equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN116361126A (en)

Similar Documents

Publication Publication Date Title
US10642725B2 (en) Automated test generation for multi-interface enterprise virtualization management environment
CN111897724B (en) Automatic testing method and device suitable for cloud platform
CN108256118B (en) Data processing method, device, system, computing equipment and storage medium
CN114095567B (en) Data access request processing method and device, computer equipment and medium
US10552306B2 (en) Automated test generation for multi-interface and multi-platform enterprise virtualization management environment
CN112241350B (en) Micro-service evaluation method and device, computing device and micro-service detection system
CN107070709B (en) NFV (network function virtualization) implementation method based on bottom NUMA (non uniform memory Access) perception
Borhani et al. Wpress: An application-driven performance benchmark for cloud-based virtual machines
US10970200B2 (en) Test result triage for a failed code validation
CN106533961B (en) Flow control method and device
CN112087520A (en) Data processing method, device, equipment and computer readable storage medium
CN113191114B (en) Method and apparatus for validating a system
Suffian et al. The design and execution of performance testing strategy for cloud-based system
CN111338958A (en) Parameter generation method and device of test case and terminal equipment
CN116361126A (en) Performance test method, device, equipment and computer storage medium
CN114756451A (en) Safety testing method and device for power grid system, computer equipment and storage medium
CN113055199B (en) Gateway access method and device and gateway equipment
CN110737572A (en) Big data platform resource preemption test method, system, terminal and storage medium
CN115622929B (en) Remote direct data access RDMA (remote direct memory Access) test method and related device
CN110874238A (en) Online service updating method and device
US11916807B2 (en) Evaluation framework for cloud resource optimization
CN116909756B (en) Cross-cloud service method and device, electronic equipment and storage medium
CN115617528A (en) Load balancing method, apparatus, electronic device, storage medium, and program product
Zhang et al. An Access Control Implementation Targeting Resource-constrained Environments
CN115220883A (en) Resource scheduling method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination