Performance test method and related equipment

By introducing configurable items and multiple test conditions into the Web Crypto API interface performance test, and using predetermined resource amounts and performance algorithms for testing, the problems of single test and poor compatibility in the existing technology are solved, and a more comprehensive interface is realized. Performance evaluation.

CN119336620APending Publication Date: 2025-01-21BEIJING HONGTENG INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310863000.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-13
Publication Date
2025-01-21

AI Technical Summary

Technical Problem

When testing the performance of Web Crypto API interfaces, the test method is single, the compatibility is poor, and the test results are single, so the interface performance cannot be fully evaluated.

Method used

Provide a performance testing method that displays configurable items (number of tests, test time, test space) and generates configuration information based on user configuration. It uses predetermined resource amounts and predetermined performance algorithms to test until the configuration conditions are met to obtain multi-dimensional Test results.

Benefits of technology

Through a variety of test configuration conditions, more diverse and accurate interface performance evaluation results are obtained, improving the compatibility and comprehensiveness of the test.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119336620A_ABST
    Figure CN119336620A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a performance testing method. The performance test method comprises the steps that in response to triggering of a test link, configurable items are displayed, and the configurable items comprise the number of test times, the test time and the test space; and in response to completion of configuration of at least any one configurable item, performing a predetermined performance algorithm test with predetermined resource quantity data until a configuration condition in the configurable item is reached, and obtaining a test result. According to the technical scheme, the test result is the evaluation result of the interface performance. Due to the fact that the configured configurable items are different, the performance testing methods are different, the obtained testing results are different and can be more diversified, meanwhile, the different testing results can reflect the performance of the interface in different dimensions, and evaluation on the performance of the interface is more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer and communication technology, and in particular to a performance testing method and related equipment. Background Art

[0002] The Web Crypto API describes a JavaScript API for performing basic cryptographic operations in web applications, such as hashing, signature generation and verification, encryption, and decryption. In addition, it describes an API for applications to generate and manage "the key material required to perform these operations."

[0003] The existing technology for detecting the API interface mostly adopts a single method performance test, which has poor compatibility and single test results. Summary of the invention

[0004] The embodiments of the present application provide a performance testing method and related equipment, thereby overcoming the problem of single test results in the prior art at least to a certain extent.

[0005] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0006] According to one aspect of an embodiment of the present application, a performance testing method is provided, comprising: in response to triggering a test link, displaying configurable items, wherein the configurable items include the number of tests, the test time, and the test space; in response to completion of configuration of at least any one of the configurable items, performing a predetermined performance algorithm test with predetermined resource quantity data until the configuration conditions in the configurable items are met, thereby obtaining a test result.

[0007] In one embodiment of the present application, in response to the completion of configuration of at least any one of the configurable items, a predetermined performance algorithm test is performed with predetermined resource quantity data until the configuration condition in the configurable item is met to obtain a test result, specifically comprising: in response to the completion of configuration of at least any one of the configurable items, configuration information is generated, wherein the configuration information includes, in addition to the configuration condition in the configurable item, a predetermined resource quantity and a predetermined performance algorithm; and the predetermined performance algorithm is executed with the predetermined resource quantity data until the configuration condition is met to obtain a test result.

[0008] In one embodiment of the present application, there are multiple predetermined resource quantities, and executing the predetermined performance algorithm with the data of the predetermined resource quantities until the configuration conditions are met to obtain test results specifically includes: executing the predetermined performance algorithm with the data of each predetermined resource quantity in turn, and after the configuration conditions are met, obtaining the data processing efficiency corresponding to each predetermined resource quantity; and obtaining the test results based on the data processing efficiency corresponding to each predetermined resource quantity.

[0009] In one embodiment of the present application, there are multiple predetermined performance algorithms, and the predetermined performance algorithms are executed in turn with data of each of the predetermined resource quantities, and after the configuration conditions are met, the data processing efficiency corresponding to each of the predetermined resource quantities is obtained, which specifically includes: executing each of the predetermined performance algorithms in turn with data of each of the predetermined resource quantities in turn, and after the configuration conditions are met, obtaining the data processing efficiency corresponding to the execution of each of the predetermined performance algorithms with each of the predetermined resource quantities.

[0010] In one embodiment of the present application, the configuration conditions include test number conditions, test time conditions and test space conditions; the data processing efficiency includes a first data processing efficiency, a second data processing efficiency and a third data processing efficiency; the predetermined performance algorithm is executed in sequence with the data of each of the predetermined resource amounts, and after the configuration conditions are met, the data processing efficiency corresponding to each of the predetermined resource amounts is obtained, specifically including: executing the predetermined performance algorithm in sequence with the data of each of the predetermined resource amounts, and after the test number conditions are met, the first data processing efficiency corresponding to each of the predetermined resource amounts is obtained; executing the predetermined performance algorithm in sequence with the data of each of the predetermined resource amounts, and after the test time conditions are met, the second data processing efficiency corresponding to each of the predetermined resource amounts is obtained; executing the predetermined performance algorithm in sequence with the data of each of the predetermined resource amounts, and after the test space conditions are met, the third data processing efficiency corresponding to each of the predetermined resource amounts is obtained.

[0011] In one embodiment of the present application, the data processing efficiency includes a first data processing efficiency, a second data processing efficiency, and a third data processing efficiency; obtaining the test result according to the data processing efficiency corresponding to each of the predetermined resource quantities specifically includes: determining the total data processing efficiency corresponding to each of the predetermined resource quantities according to the first data processing efficiency, the second data processing efficiency, and the third data processing efficiency corresponding to each of the predetermined resource quantities; and obtaining the test result according to the total data processing efficiency.

[0012] In one embodiment of the present application, the data processing efficiency includes a first data processing efficiency, a second data processing efficiency, and a third data processing efficiency; the test result obtained according to the data processing efficiency corresponding to each of the predetermined resource amounts specifically includes: determining a first result according to the first data processing efficiency corresponding to each of the predetermined resource amounts; determining a second result according to the second data processing efficiency corresponding to each of the predetermined resource amounts; determining a third result according to the third data processing efficiency corresponding to each of the predetermined resource amounts; and obtaining a test result based on the first result, the second result, and the third result.

[0013] In one embodiment of the present application, before displaying the configurable items in response to triggering the test link, the method also includes: obtaining browser parameters in response to the browser accessing the test page; determining whether the browser supports the target interface based on the browser parameters; and displaying the test link if the browser supports the target interface.

[0014] According to one aspect of an embodiment of the present application, a performance testing method device is provided, and the performance testing method device includes: a configuration page module, which is used to display configurable items in response to triggering a test link, and the configurable items include the number of tests, test time and test space; a test page module, which is used to perform a predetermined performance algorithm test with predetermined resource quantity data in response to the completion of configuration of at least any one of the configurable items, until the configuration conditions in the configurable items are met, and the test results are obtained.

[0015] In one embodiment of the present application, the test page module specifically includes: a configuration information sub-module, which is used to generate configuration information in response to the completion of configuration of at least any one of the configurable items, wherein the configuration information includes not only the configuration conditions in the configurable items, but also a predetermined resource amount and a predetermined performance algorithm; a test result sub-module, which is used to execute the predetermined performance algorithm with data of the predetermined resource amount until the configuration conditions are met to obtain a test result.

[0016] In one embodiment of the present application, there are multiple predetermined resource quantities, and the test result submodule specifically includes: a processing efficiency unit, which is used to execute the predetermined performance algorithm with the data of each predetermined resource quantity in turn, and after the configuration conditions are met, obtain the data processing efficiency corresponding to each predetermined resource quantity; a test result unit, which is used to obtain the test result according to the data processing efficiency corresponding to each predetermined resource quantity.

[0017] In one embodiment of the present application, there are multiple predetermined performance algorithms, and the processing efficiency unit is specifically used to execute: executing each of the predetermined performance algorithms in turn with data of each of the predetermined resource quantities, and after the configuration conditions are met, obtaining the corresponding data processing efficiency after executing each of the predetermined performance algorithms with each of the predetermined resource quantities.

[0018] In one embodiment of the present application, the configuration conditions include test number conditions, test time conditions and test space conditions; the data processing efficiency includes a first data processing efficiency, a second data processing efficiency and a third data processing efficiency; the processing efficiency unit is specifically used to execute: executing the predetermined performance algorithm with the data of each of the predetermined resource quantities in turn, and after the test number conditions are met, obtaining the first data processing efficiency corresponding to each of the predetermined resource quantities; executing the predetermined performance algorithm with the data of each of the predetermined resource quantities in turn, and after the test time conditions are met, obtaining the second data processing efficiency corresponding to each of the predetermined resource quantities; executing the predetermined performance algorithm with the data of each of the predetermined resource quantities in turn, and after the test space conditions are met, obtaining the third data processing efficiency corresponding to each of the predetermined resource quantities.

[0019] In one embodiment of the present application, the data processing efficiency includes a first data processing efficiency, a second data processing efficiency, and a third data processing efficiency; the test result unit is specifically used to execute: determining the total data processing efficiency corresponding to each of the predetermined resource quantities according to the first data processing efficiency, the second data processing efficiency, and the third data processing efficiency corresponding to each of the predetermined resource quantities; and obtaining a test result based on the total data processing efficiency.

[0020] In one embodiment of the present application, the data processing efficiency includes a first data processing efficiency, a second data processing efficiency, and a third data processing efficiency; the test result unit is specifically used to execute: determining a first result according to the first data processing efficiency corresponding to each of the predetermined resource quantities; determining a second result according to the second data processing efficiency corresponding to each of the predetermined resource quantities; determining a third result according to the third data processing efficiency corresponding to each of the predetermined resource quantities; and obtaining a test result based on the first result, the second result, and the third result.

[0021] In one embodiment of the present application, the performance testing method device also includes: a parameter acquisition module, which is used to acquire browser parameters in response to the browser's access to the test page; a support judgment module, which is used to determine whether the browser supports the target interface based on the browser parameters; and a link display module, which is used to display the test link if the browser supports the target interface.

[0022] According to one aspect of an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the performance testing method described in the above embodiment is implemented.

[0023] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the performance testing method as described in the above embodiments.

[0024] In the technical solution provided by some embodiments of the present application, after the user triggers the test link, the server responds to the trigger operation, jumps to the configuration page, and displays the configurable items for the user to configure, and the configurable items include the number of tests, the test time, and the test space. The user configures each configurable item according to the needs. The user can configure only one configurable item or multiple configurable items. The configured configurable items are different, and the method of performing performance testing is also different, and the method of performance testing is more diverse. After the user completes the configuration of the configurable items, the server responds to the action completed by the configuration, and performs a predetermined performance algorithm test with predetermined resource quantity data until the configuration conditions in the configurable items are reached, and the test results are obtained. The test results are the evaluation results of the interface performance. Since the configured configurable items are different, the method of performing performance testing is also different, and the test results obtained are also different, which can be more diverse. At the same time, different test results can reflect the performance of the interface in different dimensions, so the evaluation of the interface performance is more accurate.

[0025] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0027] Figure 1 A schematic diagram showing an exemplary system architecture to which the technical solution of the embodiments of the present application can be applied;

[0028] Figure 2 A flow chart of a performance testing method provided in an embodiment of the present application is shown.

[0029] Figure 3Shown according to Figure 2 A specific implementation flow chart of step S200 in the performance testing method shown in the corresponding embodiment.

[0030] Figure 4 Shown according to Figure 3 A specific implementation flowchart of step S220 in the performance testing method shown in the corresponding embodiment.

[0031] Figure 5 A schematic diagram of the structure of a performance testing device provided in an embodiment of the present application.

[0032] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0033] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.

[0034] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0035] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0036] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0037] Figure 1 A schematic diagram of an exemplary system architecture to which the technical solution of the embodiments of the present application can be applied is shown.

[0038] like Figure 1As shown, the system architecture may include terminal devices (such as Figure 1 The embodiment of the present invention is a schematic diagram of a mobile phone 101, a tablet computer 102, a portable computer 103, a desktop computer, etc., a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the terminal device and the server 105. The network 104 may include various connection types, such as a wired communication link, a wireless communication link, etc.

[0039] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. According to the implementation requirements, there may be any number of terminal devices, networks and servers. For example, the server 105 may be a server cluster composed of multiple servers.

[0040] The user can use the terminal device to interact with the server 105 through the network 104 to receive or send messages, etc. The server 105 can be a server that provides various services. For example, the user uses the terminal device 103 (or the terminal device 101 or 102) to upload access information to the server 105. According to the access information, the server 105 can return configurable items for display, and the configurable items include the number of tests, the test time, and the test space. Then, if the user uses the terminal device 103 (or the terminal device 101 or 102) to upload the configuration completed information to the server 105, according to the configuration completed information, the server 105 can perform a predetermined performance algorithm test with a predetermined resource quantity data until the configuration conditions in the configurable items are met, obtain the test results, and then return the test results.

[0041] It should be noted that the performance testing method provided in the embodiment of the present application is generally executed by the server 105, and accordingly, the performance testing method device is generally set in the server 105. However, in other embodiments of the present application, the terminal device may also have similar functions to the server, so as to execute the performance testing method provided in the embodiment of the present application.

[0042] The implementation details of the technical solution of the embodiment of the present application are described in detail below:

[0043] Figure 2 A flow chart of a performance testing method according to an embodiment of the present application is shown. The performance testing method can be executed by a server, which can be Figure 1 The server shown in .

[0044] Reference Figure 2 As shown, the performance testing method at least includes:

[0045] Step S100, in response to triggering a test link, displaying configurable items, wherein the configurable items include test times, test time, and test space.

[0046] Step S200, in response to completion of configuration of at least any one of the configurable items, a predetermined performance algorithm test is performed with predetermined resource quantity data until the configuration condition in the configurable item is met, and a test result is obtained.

[0047] In an embodiment of the present application, after the user triggers the test link, the server responds to the trigger operation, jumps to the configuration page, and displays configurable items for the user to configure, and the configurable items include the number of tests, the test time, and the test space. The user configures each configurable item according to the needs. The user can configure only one configurable item or multiple configurable items. The configured configurable items are different, and the method of performing performance testing is also different, and the method of performance testing is also more diverse. After the user completes the configuration of the configurable items, the server responds to the action completed by the configuration, and performs a predetermined performance algorithm test with predetermined resource quantity data until the configuration conditions in the configurable items are reached, and the test results are obtained. The test results are the evaluation results of the interface performance. Due to the different configurable items configured, the method of performing performance testing is also different, and the test results obtained are also different, which can be more diverse. At the same time, different test results can reflect the performance of the interface in different dimensions, so its evaluation of the interface performance is also more accurate.

[0048] In step S100, the triggering operation of the test link may be clicking the test link, inputting the test link in the address box, or triggering the script to jump to the configuration page corresponding to the test link through gestures such as sliding and dragging.

[0049] The user can configure the configurable items on the configuration page. The configurable items include the number of tests, test time, and test space. The user can configure one, two, or more of the configurable items to form the constraints of the performance test, that is, the configuration conditions. The methods of performance testing will be different according to different constraints, and the methods of performance testing will be more diverse.

[0050] In step S200, a predetermined performance algorithm test is performed with predetermined resource amount data, that is, each time with predetermined resource amount data, a predetermined performance algorithm is used to perform multiple data processing until the corresponding configuration conditions are met and the corresponding test results are obtained. The predetermined resource amount size can be 4K, 64K, 128K, 512K, 1M, etc., and the predetermined performance algorithm can be various national secret algorithms such as SM1, SM2, SM3, SM4, SM7, SM9, Zu Chongzhi algorithm (ZUC), etc. Data processing can be compression, decompression, encryption, decryption, etc., which is not limited in this application.

[0051] For example, SM3 encryption of 512K data is performed.

[0052] Specifically, in some embodiments, the specific implementation of step S200 can be found in Figure 3 . Figure 3 is based on Figure 2 The detailed description of step S200 in the performance testing method shown in the corresponding embodiment, in the performance testing method, step S200 may include the following steps:

[0053] Step S210, in response to completion of configuration of at least any one of the configurable items, generating configuration information, wherein the configuration information includes not only the configuration conditions in the configurable items but also a predetermined resource amount and a predetermined performance algorithm.

[0054] Step S220, executing the predetermined performance algorithm with the data of the predetermined resource amount until the configuration condition is reached to obtain a test result.

[0055] In the embodiment of the present application, after the user completes the configuration of the configurable item, the server responds to the configuration completion action and packages the configuration conditions in the configurable item and the predetermined resource amount and predetermined performance algorithm configured in the development stage together to form configuration information. Then, according to the configuration information, the predetermined performance algorithm is tested with the data of the predetermined resource amount until the configuration conditions in the configurable item are met to obtain the test result.

[0056] Due to the different configurable items of the configuration, the methods of performance testing are also different, so the test results obtained are also different and can be more diverse. At the same time, different test results can reflect the performance of the interface in different dimensions, so the evaluation of the interface performance is more accurate.

[0057] In step S210, after the user completes the configuration of the configurable items, the server responds to the configuration completion action and packages the configuration conditions in the configurable items and the predetermined resource amounts and predetermined performance algorithms configured in the development phase together to form configuration information. The configured predetermined resource amounts may be only one or more, which is not limited in this application. The configured predetermined performance algorithms may be only one or more, which is not limited in this application.

[0058] In step S220, a predetermined performance algorithm test is performed with data of a predetermined amount of resources. The specific method of obtaining the test result can be referred to the following embodiment.

[0059] Specifically, in some embodiments, the specific implementation of step S220 can be found in Figure 4 . Figure 4 is based on Figure 3The detailed description of step S220 in the performance testing method shown in the corresponding embodiment, in the performance testing method, there are multiple predetermined resource amounts, and step S220 may include the following steps:

[0060] Step S222, executing the predetermined performance algorithm with the data of each of the predetermined resource quantities in turn, and obtaining the data processing efficiency corresponding to each of the predetermined resource quantities after the configuration conditions are met.

[0061] Step S224, obtaining a test result according to the data processing efficiency corresponding to each of the predetermined resource amounts.

[0062] In the embodiment of the present application, there are multiple predetermined resource amounts. At this time, the predetermined performance algorithm is executed with the data of each predetermined resource amount in turn to obtain the data processing efficiency corresponding to each predetermined resource amount, and then the corresponding test results are obtained based on these data processing efficiencies. The data processing efficiency is the amount of data processed per unit time, in Mbps.

[0063] In step S222, there are multiple predetermined resource amounts. At this time, the predetermined performance algorithm is executed with the data of each predetermined resource amount in turn. That is, the predetermined performance algorithm is first executed with the data of one predetermined resource amount, and after the configuration condition is met, the data processing efficiency corresponding to the predetermined resource amount is obtained, and then the predetermined performance algorithm is executed with the data of the next predetermined resource amount, and after the configuration condition is met, the data processing efficiency corresponding to the next predetermined resource amount is obtained. The test is performed according to the above method until all the predetermined resource amounts are tested and the corresponding data processing efficiency is obtained.

[0064] In step S224, the data processing efficiency corresponding to various predetermined resource amounts is obtained, and the optimal performance of the target interface under various conditions can be determined, thereby obtaining the final test result.

[0065] Specifically, in some embodiments, the specific implementation of step S222 can refer to the following embodiments. Figure 4 The detailed description of step S222 in the performance testing method shown in the corresponding embodiment, in the performance testing method, there are multiple predetermined performance algorithms, and step S222 may include the following steps:

[0066] The predetermined performance algorithms are executed in turn with the data of each predetermined resource amount. After the configuration conditions are met, the corresponding data processing efficiency after executing each predetermined performance algorithm with each predetermined resource amount is obtained.

[0067] In the embodiment of the present application, there are also multiple predetermined performance algorithms. At this time, each predetermined performance algorithm is executed with the data of each predetermined resource amount in turn, that is, a predetermined performance algorithm is first executed with the data of a predetermined resource amount, and after the configuration conditions are met, the data processing efficiency corresponding to the predetermined resource amount and the predetermined performance algorithm is obtained, and then the predetermined performance algorithm is executed with the data of the next predetermined resource amount, and after the configuration conditions are met, the data processing efficiency corresponding to the next predetermined resource amount is obtained, and the test is carried out according to the above method until all the predetermined resource amounts are tested and all the data processing efficiencies corresponding to the predetermined performance algorithm are obtained.

[0068] Then, each next predetermined performance algorithm is executed in sequence with each predetermined resource amount data to obtain all data processing efficiencies corresponding to the next predetermined performance algorithm.

[0069] The test is carried out in the above manner until all predetermined performance algorithms are executed with all predetermined resource amounts, and the corresponding data processing efficiency after executing each predetermined performance algorithm with each predetermined resource amount is obtained, that is, the data processing efficiency corresponding to each predetermined performance algorithm under each predetermined resource amount.

[0070] Specifically, in some embodiments, the specific implementation of step S222 can refer to the following embodiments. Figure 4 Detailed description of step S222 in the performance testing method shown in the corresponding embodiment, in the performance testing method, the configuration conditions include test number conditions, test time conditions, and test space conditions; the data processing efficiency includes a first data processing efficiency, a second data processing efficiency, and a third data processing efficiency; step S222 may include the following steps:

[0071] The predetermined performance algorithm is executed in sequence with the data of each of the predetermined resource quantities, and after the test number condition is reached, the first data processing efficiency corresponding to each of the predetermined resource quantities is obtained.

[0072] The predetermined performance algorithm is executed in sequence with the data of each of the predetermined resource quantities, and after the test time condition is reached, the second data processing efficiency corresponding to each of the predetermined resource quantities is obtained.

[0073] The predetermined performance algorithm is executed in sequence with the data of each of the predetermined resource quantities, and after the test space condition is reached, the third data processing efficiency corresponding to each of the predetermined resource quantities is obtained.

[0074] In an embodiment of the present application, the user configures three configuration conditions, namely, the test number condition, the test time condition, and the test space condition, in the configurable items. Then, the tests are performed with the above three configuration conditions as constraints, and the results obtained are the first data processing efficiency, the second data processing efficiency, and the third data processing efficiency. The first data processing efficiency, the second data processing efficiency, and the third data processing efficiency are obtained under different configuration conditions, which evaluate the performance of the target interface from different dimensions, and the performance evaluation of the target interface is more comprehensive and more accurate, which is convenient for users to configure the target interface according to the usage scenario at a finer granularity, so that the target interface can exert its maximum performance.

[0075] Specifically, the specific method of obtaining the first data processing efficiency, the second data processing efficiency, and the third data processing efficiency may refer to the following embodiments.

[0076] For example, when the test number condition is 100 times, the predetermined resource amounts include 4K, 64K, and 128K, and the predetermined performance algorithms include SM3 algorithm and SM4 algorithm, the corresponding data processing efficiency is first calculated based on the time of executing the SM3 algorithm 100 times for 4K data, and then the corresponding data processing efficiency is calculated based on the time of executing the SM3 algorithm 100 times for 64K data, and then the corresponding data processing efficiency is calculated based on the time of executing the SM3 algorithm 100 times for 128K data, and finally, based on these data processing efficiencies, the first data processing efficiency is obtained.

[0077] For example, when the test time condition is 200 milliseconds, the predetermined resource amounts include 4K, 64K, and 128K, and the predetermined performance algorithms include SM3 algorithm and SM4 algorithm, the corresponding data processing efficiency is first calculated based on the number of times the SM3 algorithm for 4K data is executed within 200 milliseconds, and then the corresponding data processing efficiency is calculated based on the number of times the SM3 algorithm for 64K data is executed within 200 milliseconds, and then the corresponding data processing efficiency is calculated based on the number of times the SM3 algorithm for 128K data is executed within 200 milliseconds, and finally, based on these data processing efficiencies, the second data processing efficiency is obtained.

[0078] For example, when the test space condition is 100MB, the predetermined resource amounts include 4K, 64K, and 128K, and the predetermined performance algorithms include SM3 algorithm and SM4 algorithm, the corresponding data processing efficiency is first calculated based on the time accumulated to 100MB for each execution of the SM3 algorithm for 4K data, and then the corresponding data processing efficiency is calculated based on the time accumulated to 100MB for each execution of the SM3 algorithm for 64K data. The corresponding data processing efficiency is then calculated based on the time accumulated to 100MB for each execution of the SM3 algorithm for 128K data. Finally, based on these data processing efficiencies, the third data processing efficiency is obtained.

[0079] Specifically, in some embodiments, the specific implementation of step S224 can refer to the following embodiments. Figure 4 The detailed description of step S224 in the performance testing method shown in the corresponding embodiment, in the performance testing method, the data processing efficiency includes a first data processing efficiency, a second data processing efficiency, and a third data processing efficiency; step S224 may include the following steps:

[0080] A first result is determined according to the first data processing efficiency corresponding to each of the predetermined resource amounts.

[0081] A second result is determined according to the second data processing efficiency corresponding to each of the predetermined resource amounts.

[0082] A third result is determined according to the third data processing efficiency corresponding to each of the predetermined resource amounts.

[0083] A test result is obtained according to the first result, the second result and the third result.

[0084] In an embodiment of the present application, the results under the corresponding configuration conditions can be obtained based on the first data processing efficiency, the second data processing efficiency, and the third data processing efficiency obtained under different configuration conditions, such as the recommended resource amount under each corresponding configuration condition. The resource amount can be one or more predetermined resource amounts with the highest data processing efficiency, or one or more predetermined resource amounts with the smallest variance of the data processing efficiency, or a performance data table that records the data processing efficiency of the target interface under different conditions and statistical results such as the total value, average value variance, etc., which are not limited in the present application.

[0085] Correspondingly, the test result may be a summary of the above three results, or may be a determination of the recommended resource amounts for scenarios corresponding to different predetermined performance algorithms based on the above three results.

[0086] Specifically, in some embodiments, the specific implementation of step S224 can refer to the following embodiments. Figure 4 The detailed description of step S224 in the performance testing method shown in the corresponding embodiment, in the performance testing method, the data processing efficiency includes a first data processing efficiency, a second data processing efficiency, and a third data processing efficiency; step S224 may include the following steps:

[0087] The total data processing efficiency corresponding to each of the predetermined resource amounts is determined according to the first data processing efficiency, the second data processing efficiency and the third data processing efficiency corresponding to each of the predetermined resource amounts.

[0088] A test result is obtained according to the total data processing efficiency.

[0089] In the embodiment of the present application, a total data processing efficiency, that is, the total data processing efficiency, can be obtained according to the first data processing efficiency, the second data processing efficiency, and the third data processing efficiency obtained under different configuration conditions. Then, a test result can be obtained according to the total data processing efficiency.

[0090] Specifically, it can perform weighted calculation based on the data processing efficiency obtained under different configuration conditions to obtain the average data processing efficiency corresponding to the target interface executing each predetermined performance algorithm with each predetermined resource amount as the total data processing efficiency, and then determine the recommended resource amount based on the total data processing efficiency.

[0091] In some embodiments of the present application, before step S100, the method further includes:

[0092] In response to the browser accessing the test page, the browser parameters are obtained.

[0093] According to the browser parameters, it is determined whether the browser supports the target interface.

[0094] If the browser supports the target interface, the test link is displayed.

[0095] In an embodiment of the present application, before a user can trigger a test link, he needs to start a browser first and access a test page through the browser. The server obtains the corresponding browser parameters in response to the access to the test page. The specific acquisition method can be that the browser sends the browser parameters to the server at the same time as sending an access request to the server, and the server obtains the browser parameters; or the server sends a request to obtain the browser parameters to the browser after receiving the access request sent by the browser, and actively obtains the browser parameters. After obtaining the browser parameters, it can be determined whether it supports the target interface based on the browser parameters. If it supports the target interface, the test link is displayed for it. If it does not support the target interface, the test link cannot be triggered. If it does not support the target interface, it can also send an unsupported prompt message to the user to remind the user to change the browser for testing.

[0096] The following describes an embodiment of the device of the present application, which can be used to execute the performance test method in the above embodiment of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the performance test method in the above embodiment of the present application.

[0097] Figure 5 A block diagram of a performance testing method device according to an embodiment of the present application is shown.

[0098] Reference Figure 5As shown, a performance testing method and apparatus 500 according to an embodiment of the present application includes: a configuration page module 510 and a test page module 520. The configuration page module 510 is used to display configurable items in response to triggering a test link, and the configurable items include the number of tests, the test time, and the test space; the test page module 520 is used to perform a predetermined performance algorithm test with predetermined resource quantity data in response to the completion of configuration of at least any one of the configurable items, until the configuration conditions in the configurable items are met, and obtain the test results.

[0099] In one embodiment of the present application, the test page module specifically includes: a configuration information sub-module, which is used to generate configuration information in response to the completion of configuration of at least any one of the configurable items, wherein the configuration information includes not only the configuration conditions in the configurable items, but also a predetermined resource amount and a predetermined performance algorithm; a test result sub-module, which is used to execute the predetermined performance algorithm with data of the predetermined resource amount until the configuration conditions are met to obtain a test result.

[0100] In one embodiment of the present application, there are multiple predetermined resource quantities, and the test result submodule specifically includes: a processing efficiency unit, which is used to execute the predetermined performance algorithm with the data of each predetermined resource quantity in turn, and after the configuration conditions are met, obtain the data processing efficiency corresponding to each predetermined resource quantity; a test result unit, which is used to obtain the test result according to the data processing efficiency corresponding to each predetermined resource quantity.

[0101] In one embodiment of the present application, there are multiple predetermined performance algorithms, and the processing efficiency unit is specifically used to execute: executing each of the predetermined performance algorithms in turn with data of each of the predetermined resource quantities, and after meeting the configuration conditions, obtaining the corresponding data processing efficiency after executing each of the predetermined performance algorithms with each of the predetermined resource quantities.

[0102] In one embodiment of the present application, the configuration conditions include test number conditions, test time conditions and test space conditions; the data processing efficiency includes a first data processing efficiency, a second data processing efficiency and a third data processing efficiency; the processing efficiency unit is specifically used to execute: executing the predetermined performance algorithm with the data of each of the predetermined resource quantities in turn, and after the test number conditions are met, obtaining the first data processing efficiency corresponding to each of the predetermined resource quantities; executing the predetermined performance algorithm with the data of each of the predetermined resource quantities in turn, and after the test time conditions are met, obtaining the second data processing efficiency corresponding to each of the predetermined resource quantities; executing the predetermined performance algorithm with the data of each of the predetermined resource quantities in turn, and after the test space conditions are met, obtaining the third data processing efficiency corresponding to each of the predetermined resource quantities.

[0103] In one embodiment of the present application, the data processing efficiency includes a first data processing efficiency, a second data processing efficiency, and a third data processing efficiency; the test result unit is specifically used to execute: determining the total data processing efficiency corresponding to each of the predetermined resource quantities according to the first data processing efficiency, the second data processing efficiency, and the third data processing efficiency corresponding to each of the predetermined resource quantities; and obtaining a test result based on the total data processing efficiency.

[0104] In one embodiment of the present application, the data processing efficiency includes a first data processing efficiency, a second data processing efficiency, and a third data processing efficiency; the test result unit is specifically used to execute: determining a first result according to the first data processing efficiency corresponding to each of the predetermined resource quantities; determining a second result according to the second data processing efficiency corresponding to each of the predetermined resource quantities; determining a third result according to the third data processing efficiency corresponding to each of the predetermined resource quantities; and obtaining a test result based on the first result, the second result, and the third result.

[0105] In one embodiment of the present application, the performance testing method device also includes: a parameter acquisition module, which is used to acquire browser parameters in response to the browser's access to the test page; a support judgment module, which is used to determine whether the browser supports the target interface based on the browser parameters; and a link display module, which is used to display the test link if the browser supports the target interface.

[0106] In an embodiment of the present application, after the user triggers the test link, the server responds to the trigger operation, jumps to the configuration page, and displays configurable items for the user to configure, and the configurable items include the number of tests, the test time, and the test space. The user configures each configurable item according to the needs. The user can configure only one configurable item or multiple configurable items. The configured configurable items are different, and the method of performing performance testing is also different, and the method of performance testing is also more diverse. After the user completes the configuration of the configurable items, the server responds to the action completed by the configuration, and performs a predetermined performance algorithm test with predetermined resource quantity data until the configuration conditions in the configurable items are reached, and the test results are obtained. The test results are the evaluation results of the interface performance. Due to the different configurable items configured, the method of performing performance testing is also different, and the test results obtained are also different, which can be more diverse. At the same time, different test results can reflect the performance of the interface in different dimensions, so its evaluation of the interface performance is also more accurate.

[0107] Figure 6 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.

[0108] It should be noted that Figure 6The computer system of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0109] like Figure 6 As shown, the computer system includes a central processing unit (CPU) 1801, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1802 or the program loaded from the storage part 1808 to the random access memory (RAM) 1803, such as executing the method described in the above embodiment. In RAM 1803, various programs and data required for system operation are also stored. CPU 1801, ROM 1802 and RAM 1803 are connected to each other through bus 1804. Input / output (I / O) interface 1805 is also connected to bus 1804.

[0110] The following components are connected to the I / O interface 1805: an input section 1806 including a keyboard, a mouse, etc.; an output section 1807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1808 including a hard disk, etc.; and a communication section 1809 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1809 performs communication processing via a network such as the Internet. A drive 1810 is also connected to the I / O interface 1805 as needed. A removable medium 1811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1810 as needed so that a computer program read therefrom is installed into the storage section 1808 as needed.

[0111] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 1809, and / or installed from a removable medium 1811. When the computer program is executed by a central processing unit (CPU) 1801, various functions defined in the system of the present application are executed.

[0112] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0113] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0114] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0115] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment.

[0116] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0117] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.

[0118] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.

[0119] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A performance testing method, characterized in that: include: In response to triggering the test link, displaying configurable items, the configurable items including the number of tests, the test time, and the test space; In response to completion of configuration of at least any one of the configurable items, a predetermined performance algorithm test is performed with predetermined resource quantity data until the configuration condition in the configurable item is met, and a test result is obtained.

2. The performance testing method according to claim 1, characterized in that: In response to the completion of configuration of at least any one of the configurable items, a predetermined performance algorithm test is performed with predetermined resource quantity data until the configuration condition in the configurable item is met to obtain a test result, specifically including: In response to completion of configuration of at least any one of the configurable items, generating configuration information, wherein the configuration information includes, in addition to the configuration conditions in the configurable items, a predetermined amount of resources and a predetermined performance algorithm; The predetermined performance algorithm is executed with the data of the predetermined resource amount until the configuration condition is reached to obtain a test result.

3. The performance testing method according to claim 2, characterized in that: There are multiple predetermined resource amounts, and executing the predetermined performance algorithm with data of the predetermined resource amounts until the configuration condition is reached to obtain a test result specifically includes: The predetermined performance algorithm is executed in sequence with the data of each predetermined resource amount, and after the configuration condition is met, the data processing efficiency corresponding to each predetermined resource amount is obtained; A test result is obtained according to the data processing efficiency corresponding to each of the predetermined resource amounts.

4. The performance testing method according to claim 3, characterized in that: The configuration conditions include test number conditions, test time conditions and test space conditions; the data processing efficiency includes a first data processing efficiency, a second data processing efficiency and a third data processing efficiency; The step of sequentially executing the predetermined performance algorithm with the data of each predetermined resource amount, and obtaining the data processing efficiency corresponding to each predetermined resource amount after the configuration condition is met, specifically includes: The predetermined performance algorithm is executed sequentially with the data of each predetermined resource amount, and after the test number condition is reached, a first data processing efficiency corresponding to each predetermined resource amount is obtained; The predetermined performance algorithm is executed in sequence with the data of each of the predetermined resource amounts, and after the test time condition is reached, a second data processing efficiency corresponding to each of the predetermined resource amounts is obtained; The predetermined performance algorithm is executed in sequence with the data of each of the predetermined resource quantities, and after the test space condition is reached, the third data processing efficiency corresponding to each of the predetermined resource quantities is obtained.

5. The performance testing method according to claim 3, characterized in that: The data processing efficiency includes a first data processing efficiency, a second data processing efficiency, and a third data processing efficiency; and the test results obtained according to the data processing efficiencies corresponding to the predetermined resource amounts specifically include: Determining a total data processing efficiency corresponding to each of the predetermined resource amounts according to the first data processing efficiency, the second data processing efficiency, and the third data processing efficiency corresponding to each of the predetermined resource amounts; A test result is obtained according to the total data processing efficiency.

6. The performance testing method according to claim 3, characterized in that: The data processing efficiency includes a first data processing efficiency, a second data processing efficiency, and a third data processing efficiency; and the test results obtained according to the data processing efficiencies corresponding to the predetermined resource amounts specifically include: Determining a first result according to a first data processing efficiency corresponding to each of the predetermined resource amounts; Determining a second result according to the second data processing efficiency corresponding to each of the predetermined resource amounts; Determining a third result according to the third data processing efficiency corresponding to each of the predetermined resource amounts; A test result is obtained according to the first result, the second result and the third result.

7. The performance testing method according to claim 1, characterized in that: Before displaying the configurable items in response to triggering the test link, the method further includes: In response to the browser accessing the test page, obtaining browser parameters; Determining whether the browser supports the target interface according to the browser parameters; If the browser supports the target interface, the test link is displayed.

8. A performance testing method and device, characterized in that: The performance testing method and device comprises: A configuration page module, for displaying configurable items in response to triggering a test link, wherein the configurable items include the number of tests, the test time, and the test space; The test page module is used to respond to the completion of configuration of at least any one of the configurable items, perform a predetermined performance algorithm test with predetermined resource quantity data, until the configuration conditions in the configurable items are met, and obtain a test result.

9. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the performance testing method according to any one of claims 1 to 7 is implemented.

10. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement the performance testing method as described in any one of claims 1 to 7.