CN115269358A - Performance test method, device, equipment and medium for block chain service node host - Google Patents

Performance test method, device, equipment and medium for block chain service node host Download PDF

Info

Publication number
CN115269358A
CN115269358A CN202211204584.5A CN202211204584A CN115269358A CN 115269358 A CN115269358 A CN 115269358A CN 202211204584 A CN202211204584 A CN 202211204584A CN 115269358 A CN115269358 A CN 115269358A
Authority
CN
China
Prior art keywords
performance
task
test
testing
service node
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
CN202211204584.5A
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 Academy of Information and Communications Technology CAICT
Original Assignee
China Academy of Information and Communications Technology CAICT
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 Academy of Information and Communications Technology CAICT filed Critical China Academy of Information and Communications Technology CAICT
Priority to CN202211204584.5A priority Critical patent/CN115269358A/en
Publication of CN115269358A publication Critical patent/CN115269358A/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
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • 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
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

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 disclosure discloses a method, a device, equipment and a medium for testing the performance of a block chain service node host, wherein the method comprises the following steps: determining a first performance testing task and a second performance testing task based on a performance testing list of a block chain service node host; when the system time reaches the test time of the first performance test task, performing performance test on the block chain service node host based on the first performance test task; when the system time reaches the testing time of the second performance testing task, determining whether to start the second performance testing task based on the testing progress of the first performance testing task and the associated data information of the block chain service node host for executing the first performance testing task and the second performance testing task; and if the second performance test task is determined to start, performing performance test on the block chain service node host based on the second performance test task. The embodiment of the disclosure improves the testing efficiency on the premise of ensuring the accuracy of the execution result of the performance testing task.

Description

Performance test method, device, equipment and medium for block chain service node host
Technical Field
The present disclosure relates to the field of blockchain, and in particular, to a method, an apparatus, a device, and a medium for testing performance of a blockchain service node host.
Background
The block chain adopts computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. The block chain has the characteristics of decentralization, traceability, non-tamper property and the like.
Decentralization: the users trade in a point-to-point mode, addresses are managed by participants, balance is managed by a globally shared distributed account book, safety depends on all the participants, and people jointly judge whether a certain member is trustworthy.
Transparency: the records in the database are permanent, chronologically ordered, and accessible to all other nodes on the blockchain network, and each user can see the status of the transaction.
Non-tamper-proof property: since the records are associated with each other, once a transaction is entered in the database and the account is updated, the records cannot be changed.
With the development of the blockchain technology, how to know the performance of the blockchain node host is an urgent problem to be solved.
Disclosure of Invention
The embodiment of the disclosure provides a method, a device, equipment and a medium for testing the performance of a block chain service node host, and the performance of the block chain service node host can be obtained through testing.
In a first aspect of the embodiments of the present disclosure, a method for testing performance of a block chain service node host is provided, including:
determining a first performance test task and a second performance test task based on a performance test list of a block chain service node host;
when the system time reaches the test time of the first performance test task, performing performance test on the block chain service node host based on the first performance test task;
when the system time reaches the test time of the second performance test task, determining whether to start the second performance test task based on the test progress of the first performance test task and the associated data information of the first performance test task and the second performance test task executed by the block chain service node host;
and if the second performance test task is determined to be started, performing performance test on the block chain service node host based on the second performance test task.
In an embodiment of the present disclosure, the performing, based on the first performance testing task, a performance test on the blockchain service node host includes:
acquiring a first test parameter and a first predicted value based on the first performance test task;
generating a first test case based on the first test parameter, and performing performance test on the block chain service node host based on the first test case to obtain a first output value;
determining whether a first performance of the blockchain service node host meets a standard based on the first output value and the first predicted value, wherein the first performance is matched with the first performance testing task.
In an embodiment of the present disclosure, the performing, based on the second performance testing task, performance testing on the block chain service node host includes:
acquiring a second test case matched with the second performance test task from a test case library, and acquiring a standard output value of the second performance test task;
performing performance test on the block chain service node host based on the second test case to obtain a second output value;
and determining whether the second performance of the block chain service node host meets the standard or not based on the second output value and a standard output value, wherein the second performance is matched with the second performance testing task.
In an embodiment of the present disclosure, the determining whether to start the second performance testing task based on the testing progress of the first performance testing task and the associated data information of the first performance testing task and the second performance testing task executed by the blockchain service node host includes:
and if the test progress of the first performance test task is finished with the test of the specified module to obtain the test value of the specified module, the associated data information comprises the test value of the specified module, and the test case used by the second performance test task comprises the test value of the specified module, determining to start the second performance test task.
In an embodiment of the present disclosure, the determining whether to start the second performance testing task based on the testing progress of the first performance testing task and the associated data information of the first performance testing task and the second performance testing task executed by the blockchain service node host further includes:
if the associated data information is empty or the first performance test task is tested to be finished, determining to start the second performance test task;
and if the test progress of the first performance test task does not finish the test of the specified module, determining to suspend the second performance test task.
In one embodiment of the present disclosure, further comprising:
acquiring resource use information of the block chain service node host in a preset time period;
and determining the resource utilization rate of the block chain service node host in the preset time period based on the resource utilization information.
In one embodiment of the present disclosure, the resource usage information includes at least one of central controller usage information, disk usage information, and memory usage information.
In a second aspect of the embodiments of the present disclosure, a performance testing apparatus for a block chain service node host is provided, including:
the task obtaining module is used for determining a first performance testing task and a second performance testing task based on a performance testing list of the block chain service node host;
the first testing module is used for carrying out performance testing on the block chain service node host based on the first performance testing task when the system time reaches the testing time of the first performance testing task;
a determining module, configured to determine whether to start the second performance testing task based on the testing progress of the first performance testing task and associated data information of the first performance testing task and the second performance testing task executed by the blockchain service node host when the system time reaches the testing time of the second performance testing task;
and the second testing module is used for carrying out performance testing on the block chain service node host based on the second performance testing task if the second performance testing task is determined to start.
In one embodiment of the disclosure, the first testing module is configured to obtain a first testing parameter and a first predicted value based on the first performance testing task; the first test module is further configured to generate a first test case based on the first test parameter, and perform a performance test on the block chain service node host based on the first test case to obtain a first output value; the first testing module is further configured to determine whether a first performance of the blockchain service node host meets a standard based on the first output value and the first predicted value, wherein the first performance matches the first performance testing task.
In an embodiment of the disclosure, the second test module is configured to obtain a second test case matched with the second performance test task from a test case library, and obtain a standard output value of the second performance test task; the second test module is further configured to perform a performance test on the block chain service node host based on the second test case to obtain a second output value; the second testing module is further configured to determine whether a second performance of the blockchain service node host meets a standard based on the second output value and a standard output value, where the second performance is matched with the second performance testing task.
In an embodiment of the disclosure, the determining module is configured to determine to start the second performance testing task if the testing progress of the first performance testing task has completed the testing of the specified module to obtain a specified module testing value, the associated data information includes the specified module testing value, and the test case used by the second performance testing task includes the specified module testing value.
In an embodiment of the present disclosure, the determining module is further configured to determine to suspend the second performance testing task if the testing progress of the first performance testing task does not complete the specified module testing; the determining module is further configured to determine to start the second performance testing task if the associated data information is empty or the first performance testing task is tested to be ended.
In an embodiment of the present disclosure, the performance testing apparatus of a blockchain service node host further includes a resource processing module, where the resource processing module is configured to obtain resource usage information of the blockchain service node host within a preset time period; the resource processing module is further configured to determine a resource utilization rate of the blockchain service node host within the preset time period based on the resource usage information.
In one embodiment of the present disclosure, the resource usage information includes at least one of central controller usage information, disk usage information, and memory usage information.
The performance test method, the performance test device, the performance test equipment and the performance test medium of the block chain service node host of the embodiment of the invention determine a first performance test task and a second performance test task from a performance test list of the block chain service node host, start the first performance test task when system time reaches the test time of the first performance test task, and accurately judge whether the second performance test task affects the accuracy of the execution results of the first performance test task and the second performance test task if the system time reaches the test time of the second performance test task based on the test progress of the first performance test task and the associated data information of the first performance test task and the second performance test task executed by the block chain service node host.
The technical solution of the present disclosure is further described in detail by the accompanying drawings and examples.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description, serve to explain the principles of the disclosure.
The present disclosure may be more clearly understood from the following detailed description, taken with reference to the accompanying drawings, in which:
FIG. 1 is a flow chart of a method for performance testing of a blockchain service node host according to an embodiment of the present disclosure;
FIG. 2 is a flow diagram illustrating a process for determining utilization of a host resource of a blockchain service node in one embodiment of the present disclosure;
FIG. 3 is a block diagram of an apparatus for performance testing of a blockchain service node host according to an embodiment of the present disclosure;
fig. 4 is a block diagram of an electronic device in one embodiment of the present disclosure.
Detailed Description
Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of parts and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
It will be understood by those of skill in the art that the terms "first," "second," and the like in the embodiments of the present disclosure are used merely to distinguish one element from another, and are not intended to imply any particular technical meaning, nor is the necessary logical order between them.
It is also understood that in embodiments of the present disclosure, "a plurality" may refer to two or more and "at least one" may refer to one, two or more.
It is also to be understood that any reference to any component, data, or structure in the embodiments of the disclosure, may be generally understood as one or more, unless explicitly defined otherwise or stated otherwise.
It should also be understood that the description of the various embodiments of the present disclosure emphasizes the differences between the various embodiments, and the same or similar parts may be referred to each other, so that the descriptions thereof are omitted for brevity.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses.
Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
The disclosed embodiments may be applied to electronic devices such as terminal devices, computer systems, servers, etc., which are operational with numerous other general purpose or special purpose computing system environments or configurations. Examples of well known terminal devices, computing systems, environments, and/or configurations that may be suitable for use with electronic devices, such as terminal devices, computer systems, servers, and the like, include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, hand-held or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, networked personal computers, minicomputer systems, mainframe computer systems, distributed cloud computing environments that include any of the above, and the like.
Electronic devices such as terminal devices, computer systems, servers, etc. may be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or implement particular abstract data types. The computer system/server may be practiced in distributed cloud computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.
Fig. 1 is a flowchart of a method for testing performance of a blockchain service node host according to an embodiment of the present disclosure. As shown in fig. 1, a method for testing performance of a blockchain service node host according to an embodiment of the present disclosure includes:
s1: and determining a first performance testing task and a second performance testing task based on the performance testing list of the block chain service node host.
The performance test list of the host of the service node of the block chain can be set according to the performance test requirement through the test terminal arranged on the block chain. The performance test list at least comprises a first performance test task and a second performance test task. For example, the first performance test task includes a first test case for testing the utilization rate of a central processing unit of the blockchain service node host, and the second performance test task includes a second test case for testing the utilization rate of a memory of the blockchain service node host. In addition, other performance testing tasks may also be included in the performance testing list, including, for example, a third performance testing task for testing disk usage.
Optionally, the test time of the first performance testing task and the test time of the second performance testing task are within a predetermined time interval, for example within N minutes. Wherein N is an integer greater than 0.
S2: and when the system time reaches the test time of the first performance test task, performing performance test on the block chain service node host based on the first performance test task. The test terminal can perform performance test on the block chain service node host through the test case of the first performance test task.
S3: and when the system time reaches the test time of the second performance test task, determining whether to start the second performance test task based on the test progress of the first performance test task and the associated data information of the block chain service node host for executing the first performance test task and the second performance test task.
And when the system time reaches the testing time of the second performance testing task, preparing to start the second performance testing task. Before starting the second performance testing task, judging whether the accuracy of the execution results of the first performance testing task and the second performance testing task is influenced if the second performance testing task is started, and determining that the second performance testing task can be started when judging that the accuracy of the execution results of the first performance testing task and the second performance testing task is not influenced if the second performance testing task is started.
S4: and if the second performance test task is determined to be started, performing performance test on the block chain service node host based on the second performance test task.
In this embodiment, a first performance test task and a second performance test task are determined from a performance test list of a blockchain service node host, the first performance test task is started when the system time reaches the test time of the first performance test task, based on the test progress of the first performance test task and the associated data information of the blockchain service node host executing the first performance test task and the second performance test task, whether the execution result accuracy of the first performance test task and the second performance test task is affected by starting the second performance test task at the time can be accurately determined, the second performance test task is started when it is determined that the execution result accuracy of the first performance test task and the second performance test task is not affected by starting the second performance test task at the time, and the test efficiency can be improved on the premise of ensuring the execution result accuracy of the performance test tasks.
In one embodiment of the present disclosure, step S2 may include:
s2-1: and when the system time reaches the test time of the first performance test task, acquiring a first test parameter and a first predicted value based on the first performance test task. The first performance test task comprises a first test parameter and a first predicted value. The first test parameter is a required parameter of a test case used by the first performance test task, for example, when the first performance test task is a utilization rate of a central processing unit of a test block chain service node, the first test parameter may include the number of applications, the name of the applications, the number of background processes, and the name of the background processes.
The first predicted value is a predicted standard value obtained by testing the block chain service node based on the first performance test task, for example, when the first performance test task is to test the utilization rate of the central processing unit of the block chain service node, the first predicted value is Z%, and Z is a preset integer between 1 and 100.
S2-2: and generating a first test case based on the first test parameters, and performing performance test on the block chain service node host based on the first test case to obtain a first output value. The template of the test case can be provided in advance, and the first test parameter is provided for the template of the test case to generate the first test case.
S2-3: and determining whether the first performance of the block chain service node host meets the standard or not based on the first output value and the first predicted value. Wherein the first performance is matched with the first performance testing task. When the difference value between the first output value and the first predicted value is within a preset difference value range, determining that the first performance of the block chain service node host reaches the standard; and when the difference value between the first output value and the first predicted value is out of a preset difference value range, determining that the first performance of the block chain service node host does not reach the standard.
In this embodiment, the first test case may be quickly generated by using the first test parameter in the first performance test task, so that the test efficiency may be improved. And performing performance test on the block chain service node host by using the first test case to obtain a first output value, and comparing the first output value with the first predicted value to quickly and accurately determine whether the first performance of the block chain service node host reaches the standard.
In one embodiment of the present disclosure, step S4 may include:
s4-1: and if the second performance testing task is determined to start, acquiring a second testing case matched with the second performance testing task from the testing case library, and acquiring a standard output value of the second performance testing task. The test case library is stored with a plurality of test cases, and the test parameters of each test case are different from each other. The second performance testing task may include a code of the test case, and a second test case matching the code of the test case is called from the test case library.
S4-2: and performing performance test on the block chain service node host based on the second test case to obtain a second output value.
S4-3: and determining whether the second performance of the block chain service node host meets the standard or not based on the second output value and the standard output value. Wherein the second performance is matched with the second performance testing task.
In this embodiment, the second test case matched with the second performance testing task is directly obtained from the test case library without rewriting the test case, so that the testing efficiency can be improved, and a user who does not write the test case can use the test case which is written in advance to perform performance testing on the block chain service node host.
In one embodiment of the present disclosure, step S3 may include:
S3-A: and if the test progress of the first performance test task is finished and the test of the specified module is obtained, the associated data information comprises the test value of the specified module, and the test case used by the second performance test task comprises the test value of the specified module, determining to start the second performance test task.
In one example of the present disclosure, the modules required by the blockchain service node host to execute the first performance test task include: module X 1 Module X 2 Module X 3 And module X 4 . The modules required by the block chain service node host to execute the second performance test task comprise: module X 3 Module X 5 And module X 6 . Designating a module as module X 3 . Wherein the first performance testing task is defined according to module X 1 Module X 2 Module X 3 And module X 4 The sequence pairs of (a) and (b) are tested. Module X when the test progress of the first performance test task is completed 3 Is tested to obtain a module X 3 Test value X of 3 V, associated data information includes test value X 3 V, and the test parameters of the second performance test task include a test value X 3 V, it may be determined to begin a second performance testing task.
In this embodiment, when the system time reaches the test time of the second performance test task, if the test module included in the second performance test task and the test module included in the first performance test task have the same designated module, and the first performance test task has completed testing the designated module to obtain the test value of the designated module, the second performance test task can be determined to start, so that parallel execution of multiple performance test tasks can be realized, the test efficiency is improved, and the accuracy of the execution result of the performance test tasks is ensured.
In one embodiment of the present disclosure, step S3 may further include:
S3-B: and if the test progress of the first performance test task does not finish the test of the specified module, determining to suspend the second performance test task.
Following the example of step S3-A, when the system time reaches the test time of the second performance test task, the first performance test task does not complete module X 3 Test of (2) fails to obtain module X 3 Test value X of 3 V, suspending the second performance test task and waiting for the module X 3 Testing is completed to obtain module X 3 Test value X of 3 V, a second performance testing task is started.
S3-C: and if the associated data information is empty or the first performance testing task is tested and ended, determining to start the second performance testing task.
In another example of the present disclosure, the modules required by the blockchain service node host to perform the first performance testing task include: module Y 1 Module Y 2 And module Y 3 . The modules required by the block chain service node host to execute the second performance test task comprise: module Y 4 Module Y 5 And module Y 6 . This is achieved byWhen the test module is not related, the first performance test task and the second performance test task are not related. When the test modules aimed at by the first performance test task and the second performance test task are not related, the execution progress of the first performance test task does not need to be concerned, and the second performance test task can be started when the system time reaches the test time of the second performance test task.
In an example of the present disclosure, when the system time reaches the testing time of the second performance testing task, if the first performance testing task is tested and ended, the second performance testing task may be started if the accuracy of the execution results of the first performance testing task and the second performance testing task is not affected by executing the second performance testing task.
In this embodiment, when the system time reaches the test time of the second performance test task, if the test module included in the second performance test task and the test module included in the first performance test task have the same designated module, and the first performance test task does not complete the test on the designated module, so that the test value of the designated module cannot be obtained, the second performance test task needs to be suspended. When the system time reaches the test time of the second performance test task, if the associated data information is empty or the first performance test task is tested and finished, the second performance test task can be started, and the accuracy of the execution results of the first performance test task and the second performance test task is not influenced.
Fig. 2 is a flow diagram illustrating a process for determining host resource utilization for a blockchain service node in one embodiment of the disclosure. As shown in fig. 2, the method for testing the performance of the blockchain service node host may further include:
s5: and acquiring resource use information of the block chain service node host in a preset time period. The preset time period can be determined according to the requirement. When the resource use real-time performance standard of the block chain service node host needs to be met, the preset time period can be the latest M minutes, wherein M is an integer greater than 0; when only the recent resource usage performance of the blockchain service node host needs to be obtained, the preset time period may be the latest O hours, where O is an integer greater than 0.
S6: and determining the resource utilization rate of the block chain service node host in a preset time period based on the resource utilization information.
In this embodiment, the resource utilization information of the blockchain service node host in the preset time period is analyzed, so that the resource utilization rate of the blockchain service node host in the preset time period can be obtained, and thus the resource utilization condition of the blockchain service node host is selectively adjusted according to the resource utilization rate of the blockchain service node host in the preset time period, and the processing capability of the blockchain service node host is ensured.
In one embodiment of the present disclosure, the resource usage information in step S5 includes at least one of central controller usage information, disk usage information, and memory usage information.
In this embodiment, the utilization rate of the central controller, the utilization rate of the disk, and the utilization rate of the memory of the block chain service node host are selectively adjusted according to the resource utilization rate of the block chain service node host within a preset time period, and the resource utilization condition of the block chain service node host is selectively adjusted, so as to ensure the processing capability of the block chain service node host.
Fig. 3 is a block diagram of a performance testing apparatus of a blockchain service node host according to an embodiment of the present disclosure. As shown in fig. 3, the apparatus for testing performance of a blockchain service node host according to an embodiment of the present disclosure includes:
the task obtaining module 100 is configured to determine a first performance test task and a second performance test task based on a performance test list of a block chain service node host;
the first testing module 200 is configured to perform a performance test on the block chain service node host based on the first performance testing task when the system time reaches the testing time of the first performance testing task;
a determining module 300, configured to determine whether to start the second performance testing task based on the testing progress of the first performance testing task and associated data information of the block chain service node host for executing the first performance testing task and the second performance testing task when the system time reaches the testing time of the second performance testing task;
the second testing module 400 is configured to perform a performance test on the block chain service node host based on the second performance testing task if it is determined that the second performance testing task is started.
In one embodiment of the present disclosure, the first testing module 200 is configured to obtain a first testing parameter and a first predicted value based on a first performance testing task; the first test module 200 is further configured to generate a first test case based on the first test parameter, and perform a performance test on the block chain service node host based on the first test case to obtain a first output value; the first testing module 200 is further configured to determine whether a first performance of the blockchain service node host meets a standard based on the first output value and the first predicted value, where the first performance is matched with the first performance testing task.
In an embodiment of the present disclosure, the second testing module 400 is configured to obtain a second test case matched with the second performance testing task from the test case library, and obtain a standard output value of the second performance testing task; the second test module 400 is further configured to perform a performance test on the block chain service node host based on a second test case to obtain a second output value; the second testing module 400 is further configured to determine whether a second performance of the blockchain service node host meets a standard based on the second output value and the standard output value, where the second performance is matched with the second performance testing task.
In an embodiment of the disclosure, the determining module 300 is configured to determine to start the second performance testing task if the testing progress of the first performance testing task has completed the testing of the specified module to obtain the specified module testing value, the associated data information includes the specified module testing value, and the test case used by the second performance testing task includes the specified module testing value.
In an embodiment of the present disclosure, the determining module 300 is further configured to determine to suspend the second performance testing task if the testing progress of the first performance testing task does not complete the specified module testing; the determining module 300 is further configured to determine to start the second performance testing task if the associated data information is empty or the first performance testing task is tested to be finished.
In an embodiment of the present disclosure, the performance testing apparatus of the blockchain service node host further includes a resource processing module, where the resource processing module is configured to obtain resource usage information of the blockchain service node host within a preset time period; the resource processing module is further configured to determine a resource utilization rate of the block chain service node host within a preset time period based on the resource usage information.
In one embodiment of the present disclosure, the resource usage information includes at least one of central controller usage information, disk usage information, and memory usage information.
It should be noted that, the specific implementation of the performance testing apparatus for a blockchain service node host according to the embodiment of the present disclosure is similar to the specific implementation of the performance testing method for a blockchain service node host according to the embodiment of the present disclosure, and specific reference is specifically made to the description of the performance testing method portion of the blockchain service node host, and details are not repeated for reducing redundancy.
In addition, an embodiment of the present disclosure also provides an electronic device, including:
a memory for storing a computer program;
a processor, configured to execute the computer program stored in the memory, and when the computer program is executed, implement the performance testing method for the blockchain service node host according to any of the embodiments of the disclosure.
Fig. 4 is a block diagram of an electronic device in an embodiment of the present disclosure. As shown in fig. 4, the electronic device includes one or more processors 10 and memory 20.
The processor 10 may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
Memory 20 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, random Access Memory (RAM), cache memory (cache), and/or the like. The non-volatile memory may include, for example, read Only Memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer readable storage medium and executed by the processor 10 to implement the performance testing method of the blockchain service node host of the various embodiments of the present disclosure described above and/or other desired functions.
In one example, the electronic device may further include: an input device 30 and an output device 40, which are interconnected by a bus system and/or other form of connection mechanism (not shown).
The input device 30 may also include, for example, a keyboard, a mouse, and the like.
Output devices 40 may include, for example, a display, speakers, a printer, and a communication network and remote output devices connected thereto, among others.
Of course, for simplicity, only some of the components of the electronic device relevant to the present disclosure are shown in fig. 4, omitting components such as buses, input/output interfaces, and the like. In addition, the electronic device may include any other suitable components, depending on the particular application.
In addition to the above methods and apparatus, embodiments of the present disclosure may also be a computer program product comprising computer program instructions that, when executed by a processor, cause the processor to perform the steps in the method for performance testing of a blockchain service node host according to various embodiments of the present disclosure described in the above section of this specification.
The computer program product may write program code for carrying out operations for embodiments of the present disclosure in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, embodiments of the present disclosure may also be a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, cause the processor to perform the steps in the performance testing method of a blockchain service node host according to various embodiments of the present disclosure described in the above section of the present specification.
The computer-readable storage medium may take any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The foregoing describes the general principles of the present disclosure in conjunction with specific embodiments, however, it is noted that the advantages, effects, etc. mentioned in the present disclosure are merely examples and are not limiting, and they should not be considered essential to the various embodiments of the present disclosure. Furthermore, the foregoing disclosure of specific details is for the purpose of illustration and description and is not intended to be limiting, since the disclosure is not intended to be limited to the specific details so described.
In the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts in the embodiments are referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The block diagrams of devices, apparatuses, devices, systems involved in the present disclosure are only given as illustrative examples and are not intended to require or imply that the connections, arrangements, configurations must be made in the manner shown in the block diagrams. These devices, apparatuses, devices, systems may be connected, arranged, configured in any manner, as will be appreciated by those skilled in the art. Words such as "including," "comprising," "having," and the like are open-ended words that mean "including, but not limited to," and are used interchangeably herein. The words "or" and "as used herein mean, and are used interchangeably with, the word" and/or, "unless the context clearly dictates otherwise. The word "such as" is used herein to mean, and is used interchangeably with, the phrase "such as but not limited to".
The methods and apparatus of the present disclosure may be implemented in a number of ways. For example, the methods and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order for the steps of the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above unless specifically stated otherwise. Further, in some embodiments, the present disclosure may also be embodied as programs recorded in a recording medium, the programs including machine-readable instructions for implementing the methods according to the present disclosure. Thus, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
It is also noted that in the devices, apparatuses, and methods of the present disclosure, each component or step can be decomposed and/or recombined. Such decomposition and/or recombination should be considered as equivalents of the present disclosure.
The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the disclosure. Thus, the present disclosure is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, this description is not intended to limit embodiments of the disclosure to the form disclosed herein. While a number of example aspects and embodiments have been discussed above, those of skill in the art will recognize certain variations, modifications, alterations, additions and sub-combinations thereof.

Claims (10)

1. A method for testing performance of a blockchain service node host is characterized by comprising the following steps:
determining a first performance testing task and a second performance testing task based on a performance testing list of a block chain service node host;
when the system time reaches the test time of the first performance test task, performing performance test on the block chain service node host based on the first performance test task;
when the system time reaches the test time of the second performance test task, determining whether to start the second performance test task based on the test progress of the first performance test task and the associated data information of the first performance test task and the second performance test task executed by the block chain service node host;
and if the second performance test task is determined to be started, performing performance test on the block chain service node host based on the second performance test task.
2. The method for testing performance of a blockchain service node host according to claim 1, wherein the performing the performance test on the blockchain service node host based on the first performance test task includes:
acquiring a first test parameter and a first predicted value based on the first performance test task;
generating a first test case based on the first test parameter, and performing performance test on the block chain service node host based on the first test case to obtain a first output value;
determining whether a first performance of the blockchain service node host meets a standard based on the first output value and the first predicted value, wherein the first performance is matched with the first performance testing task.
3. The method for testing performance of a blockchain service node host according to claim 1, wherein the performing the performance test on the blockchain service node host based on the second performance test task includes:
acquiring a second test case matched with the second performance test task from a test case library, and acquiring a standard output value of the second performance test task;
performing performance test on the block chain service node host based on the second test case to obtain a second output value;
and determining whether the second performance of the block chain service node host meets the standard or not based on the second output value and a standard output value, wherein the second performance is matched with the second performance testing task.
4. The method for testing performance of a blockchain service node host according to claim 1 or 3, wherein the determining whether to start the second performance testing task based on the testing progress of the first performance testing task and the associated data information of the blockchain service node host executing the first performance testing task and the second performance testing task comprises:
and if the test progress of the first performance test task is finished with the test of the specified module to obtain the test value of the specified module, the associated data information comprises the test value of the specified module, and the test case used by the second performance test task comprises the test value of the specified module, determining to start the second performance test task.
5. The method as claimed in claim 4, wherein the determining whether to start the second performance testing task based on the testing progress of the first performance testing task and the associated data information of the first performance testing task and the second performance testing task executed by the blockchain service node host further comprises:
if the test progress of the first performance test task does not finish the test of the specified module, determining to suspend the second performance test task;
and if the associated data information is empty or the first performance testing task is tested to be finished, determining to start the second performance testing task.
6. The method of claim 1, further comprising:
acquiring resource use information of the block chain service node host in a preset time period;
and determining the resource utilization rate of the block chain service node host in the preset time period based on the resource utilization information.
7. The method of claim 6, wherein the resource usage information comprises at least one of central controller usage information, disk usage information, and memory usage information.
8. A device for testing performance of a host of a blockchain service node, comprising:
the task obtaining module is used for determining a first performance testing task and a second performance testing task based on a performance testing list of the block chain service node host;
the first testing module is used for carrying out performance testing on the block chain service node host based on the first performance testing task when the system time reaches the testing time of the first performance testing task;
a determining module, configured to determine whether to start the second performance testing task based on the testing progress of the first performance testing task and associated data information of the first performance testing task and the second performance testing task executed by the blockchain service node host when the system time reaches the testing time of the second performance testing task;
and the second testing module is used for carrying out performance testing on the block chain service node host based on the second performance testing task if the second performance testing task is determined to start.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing a computer program stored in the memory, and when the computer program is executed, implementing the method for testing the performance of a blockchain service node host according to any one of the preceding claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the method for performance testing of a block chain service node host according to any one of claims 1 to 7.
CN202211204584.5A 2022-09-30 2022-09-30 Performance test method, device, equipment and medium for block chain service node host Pending CN115269358A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211204584.5A CN115269358A (en) 2022-09-30 2022-09-30 Performance test method, device, equipment and medium for block chain service node host

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211204584.5A CN115269358A (en) 2022-09-30 2022-09-30 Performance test method, device, equipment and medium for block chain service node host

Publications (1)

Publication Number Publication Date
CN115269358A true CN115269358A (en) 2022-11-01

Family

ID=83758178

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211204584.5A Pending CN115269358A (en) 2022-09-30 2022-09-30 Performance test method, device, equipment and medium for block chain service node host

Country Status (1)

Country Link
CN (1) CN115269358A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170249240A1 (en) * 2016-02-29 2017-08-31 Red Hat, Inc. Automated test planning using test case relevancy
CN110580206A (en) * 2019-09-16 2019-12-17 上海保险交易所股份有限公司 Method, medium and control device for pressure testing of a blockchain system
CN110928774A (en) * 2019-11-07 2020-03-27 杭州顺网科技股份有限公司 Automatic test system based on node formula
CN112506798A (en) * 2020-12-22 2021-03-16 杭州趣链科技有限公司 Performance test method, device, terminal and storage medium of block chain platform
CN114546738A (en) * 2022-01-20 2022-05-27 苏州浪潮智能科技有限公司 Server general test method, system, terminal and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170249240A1 (en) * 2016-02-29 2017-08-31 Red Hat, Inc. Automated test planning using test case relevancy
CN110580206A (en) * 2019-09-16 2019-12-17 上海保险交易所股份有限公司 Method, medium and control device for pressure testing of a blockchain system
CN110928774A (en) * 2019-11-07 2020-03-27 杭州顺网科技股份有限公司 Automatic test system based on node formula
CN112506798A (en) * 2020-12-22 2021-03-16 杭州趣链科技有限公司 Performance test method, device, terminal and storage medium of block chain platform
CN114546738A (en) * 2022-01-20 2022-05-27 苏州浪潮智能科技有限公司 Server general test method, system, terminal and storage medium

Similar Documents

Publication Publication Date Title
Nilsson et al. Test case generation for mutation-based testing of timeliness
CN111104652B (en) Authority management method and device, computer readable storage medium and electronic equipment
WO2017087304A1 (en) Automatic extraction of tasks associated with communications
CN112631751A (en) Task scheduling method and device, computer equipment and storage medium
CN112070545A (en) Method, apparatus, medium, and electronic device for optimizing information reach
CN115269358A (en) Performance test method, device, equipment and medium for block chain service node host
CN110704273A (en) Configuration information processing method and device, electronic equipment and storage medium
CN113609026B (en) Method and device for pressure testing of server
CN111078764A (en) Data processing method and device, computer readable storage medium and electronic equipment
CN114327673A (en) Task starting method and device, electronic equipment and storage medium
CN113821525A (en) Data updating system and method, storage medium and electronic device
CN111752847A (en) Interface comparison method, micro server, computer readable storage medium and electronic device
CN112905970A (en) Authority verification method and device, computer readable storage medium and electronic equipment
CN111625605A (en) Information synchronization method and device, storage medium and electronic equipment
CN115277638B (en) Performance test method, device, equipment and medium of block chain domain name resolution system
Yıldız et al. Hyper‐heuristic method for processor allocation in parallel tasks scheduling
CN114741324B (en) Block chain stability testing method and device, electronic equipment and storage medium
US11882124B1 (en) Account integration with an event-driven application programing interface call manager
CN115659405B (en) Interaction method and device of digital object, electronic equipment and storage medium
CN113779000B (en) Database updating method and system, storage medium and electronic device
CN110704709B (en) Application data capturing method and device, storage medium and electronic equipment
CN112016081B (en) Method, device, medium and electronic equipment for realizing identifier mapping
CN115357548B (en) Block chain-based electronic contract query method, device, equipment and medium
CN116070252B (en) Batch file processing method, device, equipment and medium for industrial Internet nodes
CN113360939B (en) Security access control method and device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20221101