Movatterモバイル変換


[0]ホーム

URL:


CN114706741A - Performance test method, performance test device, computer equipment and medium - Google Patents

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

Info

Publication number
CN114706741A
CN114706741ACN202210372749.3ACN202210372749ACN114706741ACN 114706741 ACN114706741 ACN 114706741ACN 202210372749 ACN202210372749 ACN 202210372749ACN 114706741 ACN114706741 ACN 114706741A
Authority
CN
China
Prior art keywords
configuration file
performance
performance test
result
historical
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
CN202210372749.3A
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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co LtdfiledCriticalBeijing Dajia Internet Information Technology Co Ltd
Priority to CN202210372749.3ApriorityCriticalpatent/CN114706741A/en
Publication of CN114706741ApublicationCriticalpatent/CN114706741A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

The disclosure relates to a performance test method, a performance test device, computer equipment and a medium, belonging to the technical field of computers, wherein the method comprises the following steps: the method comprises the steps of responding to a performance test request of a configuration file of a target function sent by a terminal, carrying out performance test on the configuration file, carrying out performance analysis on the configuration file based on a performance test result of the configuration file and a performance test result of a historical configuration file of the target function to obtain a performance analysis result of the configuration file, and sending the performance analysis result of the configuration file to the terminal so as to trigger the terminal to display the performance analysis result of the configuration file. In the embodiment of the disclosure, the performance test process and the performance analysis process of the configuration file are triggered by sending the performance test request, so that a full-automatic performance test mode is provided, the efficiency of the performance test is improved, the performance analysis is performed by combining the historical configuration file of the target function, the information amount referred by the performance analysis is increased, and the accuracy of the performance test is improved.

Description

Performance test method, performance test device, computer equipment and medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a performance testing method and apparatus, a computer device, and a medium.
Background
With the continuous development of internet technology and computer technology, more and more computer software products enter people's lives. Generally, in the performance optimization stage of a computer software product, the performance of the computer software product needs to be tested to find out the performance defects of the computer software product and perform performance optimization.
At present, when a performance test is performed on a computer software product, developers usually perform manual operations to test various performance indexes of the computer software product, and then analyze test results of the computer software product according to product requirements and historical experiences of the computer software product.
In the technology, the manual testing efficiency is low, the error is easy to occur, and the accurate and efficient performance test is difficult to realize.
Disclosure of Invention
The present disclosure provides a performance testing method, apparatus, computer device and medium, which can realize accurate and efficient performance testing. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a performance testing method, including:
responding to a performance test request of a configuration file of a target function sent by a terminal, and performing performance test on the configuration file to obtain a performance test result of the configuration file;
performing performance analysis on the configuration file based on a performance test result of the configuration file and a performance test result of a historical configuration file of the target function to obtain a performance analysis result of the configuration file, wherein the historical configuration file is a configuration file adopted in a historical performance test event of the target function;
and sending the performance analysis result of the configuration file to the terminal so as to trigger the terminal to display the performance analysis result of the configuration file.
In some embodiments, performing the performance test on the configuration file, and obtaining the performance test result of the configuration file includes:
acquiring the configuration file based on the storage position of the configuration file carried by the performance test request;
running the configuration file to obtain a running result of the configuration file;
and determining the performance test result of the configuration file based on the operation result of the configuration file.
In some embodiments, performing performance analysis on the configuration file based on the performance test result of the configuration file and the performance test result of the historical configuration file of the target function, and obtaining the performance analysis result of the configuration file includes:
determining a performance analysis result of the profile based on a performance test result of the profile in at least one performance indicator dimension and a performance test result of the historical profile in the at least one performance indicator dimension.
In some embodiments, determining the performance analysis result of the profile based on the performance test result of the profile in at least one performance indicator dimension and the performance test result of the historical profile in the at least one performance indicator dimension comprises:
determining a performance comparison parameter of the configuration file and the historical configuration file in the at least one performance index dimension based on a performance test result of the configuration file in the at least one performance index dimension and a performance test result of the historical configuration file in the at least one performance index dimension, and determining the determined performance comparison parameter in the at least one performance index dimension as the performance analysis result, wherein the performance comparison parameter represents a comparison condition of the configuration file and the historical configuration file in a corresponding performance index dimension.
In some embodiments, determining the performance analysis result of the profile based on the performance test result of the profile in at least one performance indicator dimension and the performance test result of the historical profile in the at least one performance indicator dimension comprises:
and generating a performance test record of the target function based on the performance test result of the configuration file in the at least one performance index dimension and the performance test result of the historical configuration file in the at least one performance index dimension, and determining the performance test record as the performance analysis result, wherein the performance test record is used for recording the performance test result of at least one performance test event of the target function.
In some embodiments, after performing performance analysis on the configuration file based on the performance test result of the configuration file and the performance test result of the historical configuration file of the target function to obtain the performance analysis result of the configuration file, the method further includes:
and responding to the configuration file with abnormity, and sending a performance abnormity prompt to the terminal, wherein the performance abnormity prompt is used for prompting the configuration file with abnormity.
According to a second aspect of the embodiments of the present disclosure, there is provided a performance testing method, including:
responding to a performance test operation on a configuration file of a target function, sending a performance test request to a server, wherein the performance test request is used for requesting performance test on the configuration file, and performing performance analysis on the configuration file based on a performance test result of the configuration file and a performance test result of a historical configuration file of the target function, and the historical configuration file is a configuration file adopted in a historical performance test event of the target function;
and receiving a performance analysis result of the configuration file returned by the server based on the performance test request, and displaying the performance analysis result of the configuration file.
In some embodiments, displaying the performance analysis results of the profile includes:
and displaying the performance comparison parameters of the configuration file and the historical configuration file on at least one performance index dimension, wherein the performance comparison parameters represent the comparison condition of the configuration file and the historical configuration file on the corresponding performance index dimension.
In some embodiments, displaying the performance analysis results of the profile includes:
and displaying a performance test record of the target function, wherein the performance test record is used for recording a performance test result of at least one performance test event of the target function.
In some embodiments, the method further comprises:
an entry for displaying the performance test record, the entry being used for triggering display of the performance test record;
and responding to the triggering operation of the entry of the performance test record, and executing the step of displaying the performance test record of the target function.
In some embodiments, displaying the performance test record of the target function includes:
and displaying a performance trend graph of the target function, wherein the performance trend graph is used for indicating the variation trend of the performance test result of the at least one performance test event.
In some embodiments, after displaying the performance trend graph of the target function, the method further comprises:
in the performance trend graph, in response to a trigger operation on a performance test result of any one performance test event, a configuration file adopted in the performance test event is displayed.
In some embodiments, displaying the profile employed in the performance test event includes:
and under the condition that the performance test result of the performance test event is changed compared with the performance test result of the last performance test event, displaying a target code segment in the displayed configuration file, wherein the target code segment is the code segment causing the change.
In some embodiments, after displaying the performance trend graph of the target function, the method further comprises:
in the performance trend graph, in response to the hovering operation in the area where the performance test result of any performance test event is located, a preview window is displayed, and the configuration file adopted in the performance test event is displayed in the preview window.
In some embodiments, the method further comprises:
and displaying a performance abnormity prompt sent by the server, wherein the performance abnormity prompt is used for prompting that the configuration file has abnormity.
According to a third aspect of the embodiments of the present disclosure, there is provided a performance testing apparatus, the apparatus comprising:
the performance testing unit is configured to execute a performance testing request of a configuration file responding to a target function sent by the terminal, and perform performance testing on the configuration file to obtain a performance testing result of the configuration file;
the performance analysis unit is configured to execute performance analysis on the configuration file based on a performance test result of the configuration file and a performance test result of a historical configuration file of the target function, and obtain a performance analysis result of the configuration file, wherein the historical configuration file is a configuration file adopted in a historical performance test event of the target function;
and the sending unit is configured to send the performance analysis result of the configuration file to the terminal so as to trigger the terminal to display the performance analysis result of the configuration file.
In some embodiments, the performance testing unit is configured to perform:
acquiring the configuration file based on the storage position of the configuration file carried by the performance test request;
running the configuration file to obtain a running result of the configuration file;
and determining the performance test result of the configuration file based on the operation result of the configuration file.
In some embodiments, the performance analysis unit is configured to perform:
determining a performance analysis result of the profile based on a performance test result of the profile in at least one performance index dimension and a performance test result of the historical profile in the at least one performance index dimension.
In some embodiments, the performance analysis unit is configured to perform:
determining a performance comparison parameter of the configuration file and the historical configuration file in the at least one performance index dimension based on a performance test result of the configuration file in the at least one performance index dimension and a performance test result of the historical configuration file in the at least one performance index dimension, and determining the determined performance comparison parameter in the at least one performance index dimension as the performance analysis result, wherein the performance comparison parameter represents a comparison condition of the configuration file and the historical configuration file in a corresponding performance index dimension.
In some embodiments, the performance analysis unit is configured to perform:
and generating a performance test record of the target function based on the performance test result of the configuration file in the at least one performance index dimension and the performance test result of the historical configuration file in the at least one performance index dimension, and determining the performance test record as the performance analysis result, wherein the performance test record is used for recording the performance test result of at least one performance test event of the target function.
In some embodiments, the sending unit is further configured to perform:
and responding to the configuration file with abnormity, and sending a performance abnormity prompt to the terminal, wherein the performance abnormity prompt is used for prompting the configuration file with abnormity.
According to a fourth aspect of embodiments of the present disclosure, there is provided a performance testing apparatus, the apparatus comprising:
a sending unit, configured to execute a performance test operation in response to a configuration file of a target function, send a performance test request to a server, where the performance test request is used to request a performance test on the configuration file, and perform a performance analysis on the configuration file based on a performance test result of the configuration file and a performance test result of a historical configuration file of the target function, where the historical configuration file is a configuration file adopted in a historical performance test event of the target function;
and the display unit is configured to receive the performance analysis result of the configuration file returned by the server based on the performance test request and display the performance analysis result of the configuration file.
In some embodiments, the display unit includes:
a first display subunit, configured to perform displaying of a performance comparison parameter of the configuration file and the historical configuration file in at least one performance index dimension, where the performance comparison parameter represents a comparison condition of the configuration file and the historical configuration file in a corresponding performance index dimension.
In some embodiments, the display unit includes:
and the second display subunit is configured to execute performance test record displaying the target function, wherein the performance test record is used for recording the performance test result of at least one performance test event of the target function.
In some embodiments, the second display subunit is further configured to perform:
an entry for displaying the performance test record, the entry being used for triggering display of the performance test record;
and responding to the triggering operation of the entry of the performance test record, and executing the step of displaying the performance test record of the target function.
In some embodiments, the second display subunit is configured to perform:
and displaying a performance trend graph of the target function, wherein the performance trend graph is used for indicating the variation trend of the performance test result of the at least one performance test event.
In some embodiments, the second display subunit is further configured to perform:
in the performance trend graph, in response to a trigger operation on a performance test result of any one performance test event, a configuration file adopted in the performance test event is displayed.
In some embodiments, the second display subunit is further configured to perform:
and under the condition that the performance test result of the performance test event is changed compared with the performance test result of the last performance test event, displaying a target code segment in the displayed configuration file, wherein the target code segment is the code segment causing the change.
In some embodiments, the second display subunit is further configured to perform:
in the performance trend graph, in response to the hovering operation in the area where the performance test result of any performance test event is located, a preview window is displayed, and the configuration file adopted in the performance test event is displayed in the preview window.
In some embodiments, the display unit is further configured to perform:
and displaying a performance abnormity prompt sent by the server, wherein the performance abnormity prompt is used for prompting that the configuration file has abnormity.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer apparatus including:
one or more processors;
a memory for storing the processor executable program code;
wherein the processor is configured to execute the program code to implement the performance testing method described above.
According to a sixth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium including: the program code in the computer readable storage medium, when executed by a processor of a computer device, enables the computer device to perform the performance testing method described above.
According to a seventh aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the performance testing method described above.
According to the technical scheme provided by the embodiment of the disclosure, the performance test process and the performance analysis process of the configuration file are triggered and executed by sending the performance test request through the terminal, a full-automatic performance test mode is provided, manual test and manual analysis are not needed, the efficiency of the performance test is improved, the performance analysis is carried out on the current configuration file by combining the performance test result of the historical configuration file of the target function, the information amount referred by the performance analysis is increased, and the accuracy of the performance test is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a schematic diagram of an implementation environment of a performance testing method according to an exemplary embodiment;
FIG. 2 is a flow chart illustrating a method of performance testing in accordance with an exemplary embodiment;
FIG. 3 is a flow chart illustrating a method of performance testing in accordance with an exemplary embodiment;
FIG. 4 is a flow chart illustrating a method of performance testing in accordance with an exemplary embodiment;
FIG. 5 is a schematic flow chart illustrating a performance test in accordance with an exemplary embodiment;
FIG. 6 is a block diagram illustrating a test apparatus in accordance with an exemplary embodiment;
FIG. 7 is a block diagram of a test apparatus shown in accordance with an exemplary embodiment;
FIG. 8 is a block diagram illustrating a terminal in accordance with an exemplary embodiment;
FIG. 9 is a block diagram illustrating a server in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
It should be noted that information (including but not limited to user equipment information, user personal information, etc.), data (including but not limited to data for analysis, stored data, presented data, etc.), and signals referred to in this disclosure are authorized by the user or sufficiently authorized by various parties, and the collection, use, and processing of the relevant data requires compliance with relevant laws and regulations and standards in relevant countries and regions. For example, the information involved in performance testing in this disclosure is obtained with sufficient authorization.
Fig. 1 is a schematic diagram of an implementation environment of a performance testing method provided in an embodiment of the present disclosure, referring to fig. 1, where the implementation environment includes: a terminal 101 and aserver 102.
The terminal 101 may be at least one of a smartphone, a smart watch, a desktop computer, a laptop computer, a virtual reality terminal, an augmented reality terminal, a wireless terminal, a laptop portable computer, and the like. The terminal 101 has a communication function and can access a wired network or a wireless network. The terminal 101 may be generally referred to as one of a plurality of terminals, and the embodiment is only illustrated by theterminal 101. Those skilled in the art will appreciate that the number of terminals described above may be greater or fewer.
In some embodiments, the terminal 101 is associated with a platform having a performance testing function. In the embodiment of the present disclosure, the terminal 101 is configured to send a performance test request to theserver 102 in response to a performance test operation on a configuration file of a target function, so as to request theserver 102 to perform a performance test on the configuration file, perform a performance analysis on the configuration file based on a performance test result of the configuration file and a performance test result of a historical configuration file of the target function, and further receive and display a performance analysis result of the configuration file returned by theserver 102.
Theserver 102 may be an independent physical server, a server cluster or a distributed file system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a CDN (Content Delivery Network), a big data and artificial intelligence platform, and the like.
In some embodiments, theserver 102 and the terminal 101 are connected directly or indirectly through wired or wireless communication, which is not limited in the embodiments of the present disclosure. In this embodiment, theserver 102 is configured to perform a performance test on the configuration file in response to a performance test request of the configuration file of the target function sent by the terminal 101 to obtain a performance test result of the configuration file, perform a performance analysis on the configuration file based on the performance test result of the configuration file and a performance test result of a historical configuration file of the target function to obtain a performance analysis result of the configuration file, and send the performance analysis result of the configuration file to the terminal 101 to trigger the terminal 101 to display the performance analysis result of the configuration file.
Alternatively, the number of theservers 102 may be more or less, and the embodiment of the disclosure does not limit this. Of course, theserver 102 may also include other functional servers to provide more comprehensive and diverse services.
Fig. 2 is a flow chart illustrating a method of performance testing according to an exemplary embodiment, as illustrated in fig. 2, performed by a computer device, which may be provided as the server illustrated in fig. 1 described above. Illustratively, the method comprises the steps of:
instep 201, the server performs a performance test on the configuration file in response to a performance test request of the configuration file of the target function sent by the terminal, so as to obtain a performance test result of the configuration file.
Instep 202, the server performs performance analysis on the configuration file based on the performance test result of the configuration file and the performance test result of the historical configuration file of the target function, to obtain a performance analysis result of the configuration file, where the historical configuration file is a configuration file used in the historical performance test event of the target function.
Instep 203, the server sends the performance analysis result of the configuration file to the terminal to trigger the terminal to display the performance analysis result of the configuration file.
According to the technical scheme provided by the embodiment of the disclosure, the performance test process and the performance analysis process of the configuration file are triggered and executed by sending the performance test request through the terminal, a full-automatic performance test mode is provided, manual test and manual analysis are not needed, the efficiency of the performance test is improved, the performance analysis is carried out on the current configuration file by combining the performance test result of the historical configuration file of the target function, the information amount referred by the performance analysis is increased, and the accuracy of the performance test is improved.
In some embodiments, performing the performance test on the configuration file, and obtaining the performance test result of the configuration file includes:
acquiring the configuration file based on the storage position of the configuration file carried by the performance test request;
running the configuration file to obtain a running result of the configuration file;
and determining the performance test result of the configuration file based on the operation result of the configuration file.
In some embodiments, performing performance analysis on the configuration file based on the performance test result of the configuration file and the performance test result of the historical configuration file of the target function, and obtaining the performance analysis result of the configuration file includes:
determining a performance analysis result of the profile based on a performance test result of the profile in at least one performance indicator dimension and a performance test result of the historical profile in the at least one performance indicator dimension.
In some embodiments, determining the performance analysis result of the profile based on the performance test result of the profile in at least one performance indicator dimension and the performance test result of the historical profile in the at least one performance indicator dimension comprises:
determining a performance comparison parameter of the configuration file and the historical configuration file in the at least one performance index dimension based on a performance test result of the configuration file in the at least one performance index dimension and a performance test result of the historical configuration file in the at least one performance index dimension, and determining the determined performance comparison parameter in the at least one performance index dimension as the performance analysis result, wherein the performance comparison parameter represents a comparison condition of the configuration file and the historical configuration file in a corresponding performance index dimension.
In some embodiments, determining the performance analysis result of the profile based on the performance test result of the profile in at least one performance indicator dimension and the performance test result of the historical profile in the at least one performance indicator dimension comprises:
and generating a performance test record of the target function based on the performance test result of the configuration file in the at least one performance index dimension and the performance test result of the historical configuration file in the at least one performance index dimension, and determining the performance test record as the performance analysis result, wherein the performance test record is used for recording the performance test result of at least one performance test event of the target function.
In some embodiments, after performing performance analysis on the configuration file based on the performance test result of the configuration file and the performance test result of the historical configuration file of the target function to obtain the performance analysis result of the configuration file, the method further includes:
and responding to the configuration file with abnormity, and sending a performance abnormity prompt to the terminal, wherein the performance abnormity prompt is used for prompting the configuration file with abnormity.
Fig. 3 is a flow chart illustrating a performance testing method according to an exemplary embodiment, as shown in fig. 3, performed by a computer device, which may be provided as the terminal shown in fig. 1 described above. Illustratively, the method comprises the steps of:
instep 301, the terminal sends a performance test request to the server in response to a performance test operation on a configuration file of a target function, where the performance test request is used to request a performance test on the configuration file, and performs a performance analysis on the configuration file based on a performance test result of the configuration file and a performance test result of a historical configuration file of the target function, where the historical configuration file is a configuration file used in a historical performance test event of the target function.
Instep 302, the terminal receives the performance analysis result of the configuration file returned by the server based on the performance test request, and displays the performance analysis result of the configuration file.
According to the technical scheme provided by the embodiment of the disclosure, the performance test process and the performance analysis process of the configuration file are triggered and executed by sending the performance test request through the terminal, a full-automatic performance test mode is provided, manual test and manual analysis are not needed, the efficiency of the performance test is improved, the performance analysis is carried out on the current configuration file by combining the performance test result of the historical configuration file of the target function, the information amount referred by the performance analysis is increased, and the accuracy of the performance test is improved.
In some embodiments, displaying the performance analysis results of the profile includes:
and displaying the performance comparison parameters of the configuration file and the historical configuration file on at least one performance index dimension, wherein the performance comparison parameters represent the comparison condition of the configuration file and the historical configuration file on the corresponding performance index dimension.
In some embodiments, displaying the performance analysis results of the profile includes:
and displaying a performance test record of the target function, wherein the performance test record is used for recording a performance test result of at least one performance test event of the target function.
In some embodiments, the method further comprises:
an entry for displaying the performance test record, the entry being used for triggering display of the performance test record;
and responding to the triggering operation of the entry of the performance test record, and executing the step of displaying the performance test record of the target function.
In some embodiments, displaying the performance test record for the target function includes:
and displaying a performance trend graph of the target function, wherein the performance trend graph is used for indicating the variation trend of the performance test result of the at least one performance test event.
In some embodiments, after displaying the performance trend graph of the target function, the method further comprises:
in the performance trend graph, in response to a trigger operation on a performance test result of any one performance test event, a configuration file adopted in the performance test event is displayed.
In some embodiments, displaying the profile employed in the performance test event includes:
and under the condition that the performance test result of the performance test event is changed compared with the performance test result of the last performance test event, displaying a target code segment in the displayed configuration file, wherein the target code segment is the code segment causing the change.
In some embodiments, after displaying the performance trend graph of the target function, the method further comprises:
in the performance trend graph, in response to the hovering operation in the area where the performance test result of any performance test event is located, a preview window is displayed, and the configuration file adopted in the performance test event is displayed in the preview window.
In some embodiments, the method further comprises:
and displaying a performance abnormity prompt sent by the server, wherein the performance abnormity prompt is used for prompting that the configuration file has abnormity.
Fig. 2 to fig. 3 are only basic flows of the present disclosure, and the following further explains the scheme provided by the present disclosure based on a specific implementation, and fig. 4 is a flow chart of a performance testing method according to an exemplary embodiment, and referring to fig. 4, the method includes:
in step 401, the terminal sends a performance test request to the server in response to a performance test operation on the configuration file of the target function.
The terminal is associated with a performance testing platform which provides a function of testing the performance of the computer software product. The process of testing the performance of the computer software product is also a process of testing the performance of a configuration file of the computer software product, and the configuration file of the computer software product refers to a code file of the computer software product. It should be understood that the configuration file of the computer software product is composed of a configuration file of at least one function, such as a configuration file of a login function, a configuration file of a payment function, and the like, wherein for a configuration file of any one function, the configuration file of the function is a code file capable of implementing the corresponding function. In the embodiments of the present disclosure, a target function is used to refer to a function to be subjected to performance detection.
In the embodiment of the present disclosure, the performance test request is used to request a performance test on the configuration file, and perform a performance analysis on the configuration file based on a performance test result of the configuration file and a performance test result of a historical configuration file of the target function, where the historical configuration file is a configuration file used in a historical performance test event of the target function. Therefore, a mode of performance test and performance analysis by combining the historical configuration file is provided, the information amount referred by the performance test is increased, and the accuracy of the performance test is improved.
In some embodiments, the performance testing operation refers to an uploading operation of a configuration file of the target function, and accordingly, step 401 may be replaced by: and the terminal responds to the uploading operation of the configuration file of the target function and sends a performance test request to the server. In some embodiments, the performance testing operation refers to an uploading operation of configuration information of the configuration file of the target function, where the configuration information includes a storage location of the configuration file of the target function, and accordingly, step 401 may be replaced with: and the terminal responds to the uploading operation of the configuration information of the configuration file of the target function and sends a performance test request to the server.
In some embodiments, the performance test platform associated with the terminal is provided with an information configuration page, and the information configuration page is provided with a function of uploading a configuration file of a target function, or the information configuration page is provided with a function of uploading configuration information of the configuration file of the target function. Illustratively, the information configuration page is provided with a first uploading control for uploading the configuration file of the target function, and accordingly, the process of uploading the configuration file of the target function can be triggered and executed by implementing a triggering operation on the first uploading control; or, the information configuration page is provided with a second uploading control for uploading configuration information of the configuration file of the target function, and accordingly, by performing a triggering operation on the second uploading control, a process of executing subsequent uploading of the configuration information of the configuration file of the target function can be triggered.
For the process of uploading the configuration information, besides the storage location of the configuration file, the configuration information also includes code operation information, a performance index type, a result prompting mode and other related information of the configuration file. The code operation information comprises a code language of the configuration file, a code writing tool of the configuration file, operation parameters of the configuration file and the like; the performance index type refers to a performance index which is required to be referred to for performing performance test on the configuration file; the result prompting mode is a prompting mode for a performance test result after the performance test is finished.
It should be noted that, in the above embodiments, the terminal is triggered to send the performance test request to the server by using an upload operation based on the configuration file of the target function or an upload operation based on the configuration information of the configuration file of the target function as an example, while in other embodiments, the information configuration page is provided with a performance detection control for the configuration file, and accordingly, by performing a trigger operation on the performance detection control, the terminal can be triggered to send the performance test request to the server.
It should be further noted that, in some embodiments, in response to an upload operation of a configuration file of a target function or an upload operation of configuration information of the configuration file of the target function, the terminal sends the uploaded configuration file of the target function or the uploaded configuration information of the configuration file of the target function to the server, so as to trigger the server to store the uploaded configuration file of the target function or the uploaded configuration information of the configuration file of the target function in a product information base, where the product information base is used for storing the configuration file of at least one function and corresponding configuration information. In some embodiments, the server includes at least one configuration collection module for collecting configuration information for the configuration files.
In step 402, the server performs a performance test on the configuration file in response to a performance test request of the configuration file of the target function sent by the terminal, so as to obtain a performance test result of the configuration file.
In some embodiments, after receiving a performance test request of a configuration file of a target function, a server obtains the configuration file based on a storage location of the configuration file carried by the performance test request, runs the configuration file to obtain a running result of the configuration file, and determines the performance test result of the configuration file based on the running result of the configuration file.
In an optional embodiment, the server obtains the configuration file from the product information base based on a storage location of the configuration file carried in the performance test request, and then performs a subsequent performance test process based on the obtained configuration file.
In an optional embodiment, in a process of running the configuration file by the server, the server determines a code running rule of the configuration file based on the code running information of the configuration file and the target relationship data carried in the performance test request, and runs the configuration file based on the code running rule of the configuration file, so as to obtain a running result of the configuration file, where the target relationship data represents a correspondence between the code running information of the configuration file and the code running rule of the configuration file.
In an optional embodiment, the server determines the performance test result of the configuration file in at least one performance index dimension based on the performance index type of the configuration file and the operation result of the configuration file, which are carried in the performance test request.
It should be noted that the server includes a performance testing module, and the performance testing module is configured to perform a performance test on the configuration file to obtain a performance testing result of the configuration file.
In some embodiments, after obtaining the performance test result of the configuration file based on step 402, the server stores the performance test result of the configuration file in correspondence with the configuration information of the configuration file, so that the performance test result of the configuration file can be obtained quickly in the following.
In step 403, the server performs performance analysis on the configuration file based on the performance test result of the configuration file and the performance test result of the historical configuration file of the target function, so as to obtain a performance analysis result of the configuration file.
In some embodiments, the server determines the performance analysis result of the profile based on the performance test result of the profile in at least one performance indicator dimension and the performance test result of the historical profile in the at least one performance indicator dimension. This process is explained below based on the implementation (1-1) and the implementation (1-2):
implementation (1-1): the server determines a performance comparison parameter of the configuration file and the historical configuration file in the at least one performance index dimension based on a performance test result of the configuration file in the at least one performance index dimension and a performance test result of the historical configuration file in the at least one performance index dimension, and determines the determined performance comparison parameter in the at least one performance index dimension as the performance analysis result, wherein the performance comparison parameter represents a comparison condition of the configuration file and the historical configuration file in a corresponding performance index dimension.
In the embodiment shown in implementation (1-1), the historical profile is the profile used by the last performance detection event. In some embodiments, the process of obtaining the performance test result of the historical configuration file is as follows: the server obtains the performance test result of the historical configuration file of the target function from a historical result set, wherein the historical result set is used for storing the historical configuration file of at least one function and the corresponding performance test result.
In some embodiments, the process of determining the performance alignment parameter is: in any performance index dimension, the server determines a ratio between a performance test result of the configuration file and a performance test result of the historical configuration file, and determines the ratio as a performance comparison parameter in the performance index dimension. In an alternative embodiment, before determining the performance comparison parameters, the server converts the performance test results of the configuration file into structured data for subsequent determination of the performance comparison parameters based on the structured data. The structured data is data that can be expressed by a two-dimensional table structure. Illustratively, the structured data is JSON (Java Script Object Notation) data.
In the above embodiment, by obtaining the performance comparison parameters of the configuration file and the historical configuration file in the at least one performance index dimension, the comparison condition of the configuration file and the historical configuration file in the corresponding performance index dimension can be determined, so that a richer information amount is provided, and the accuracy of the performance test is improved.
Implementation (1-2): the server generates a performance test record of the target function based on a performance test result of the configuration file in the at least one performance index dimension and a performance test result of the historical configuration file in the at least one performance index dimension, and determines the performance test record as the performance analysis result, wherein the performance test record is used for recording a performance test result of at least one performance test event of the target function.
In the illustrated embodiment of implementations (1-2), the historical profile is a profile employed by at least one performance detection event in the past. In some embodiments, the server maintains a performance test record that is updated based on the performance test results of the configuration file after the performance test results of the configuration file are obtained based on step 402. In some embodiments, after generating the performance test record of the target function, a page address of the performance test record is generated for subsequent viewing of the performance test record of the target function based on the page address.
In the above embodiment, through the performance test record of the target function, the performance test result of at least one performance test event of the target function can be specified, so that a richer information amount is provided, and the accuracy of the performance test is improved.
It should be noted that the server includes a performance analysis module, and the performance analysis module is configured to perform performance analysis on the configuration file to obtain a performance analysis result of the configuration file. In some embodiments, the performance analysis module is configured to obtain configuration information of the configuration file and a last performance test result from the server, obtain performance test results of the historical configuration file from the historical result set, and perform performance analysis based on the last performance test result of the configuration file and the performance test results of the historical configuration file.
In step 404, the server sends the performance analysis result of the configuration file to the terminal.
In some embodiments, the server sends the performance analysis result of the configuration file to the terminal based on a result prompting manner of the configuration file carried by the performance test request, so as to trigger the terminal to display the performance analysis result of the configuration file.
In an optional embodiment, taking a result prompting mode as a short message mode as an example, the server sends the performance analysis result of the configuration file to the terminal in a short message mode; in yet another alternative embodiment, taking the result prompting mode as an email mode as an example, the server sends the performance analysis result of the configuration file to the terminal in the form of an email; in another optional embodiment, taking the result prompting mode as a session mode as an example, the server sends the performance analysis result of the configuration file to the terminal in a session mode. The embodiment of the present disclosure does not limit the manner of the result prompt.
In some embodiments, the server sends a performance exception prompt to the terminal in response to the configuration file being abnormal, the performance exception prompt is used for prompting that the configuration file is abnormal, and accordingly, the terminal receives and displays the performance exception prompt sent by the server. In an optional embodiment, the server determines, based on a performance anomaly threshold of the configuration file carried in the performance test request, whether a performance test result of the configuration file reaches the performance anomaly threshold, and sends a performance anomaly prompt to the terminal when the performance test result of the configuration file reaches the performance anomaly threshold, where the performance anomaly threshold is a preset threshold, such as 50%. In some embodiments, a performance test result reaching the performance anomaly threshold value refers to a performance test result that is greater than or equal to the performance anomaly threshold value. Therefore, the performance abnormity indication is triggered under the condition that the configuration file is abnormal, and the safety of performance test is improved. Of course, in other embodiments, when the performance test result of the configuration file does not reach the performance anomaly threshold, a performance normality prompt is sent to the terminal to prompt that all the configuration files are normal.
In step 405, the terminal receives the performance analysis result of the configuration file returned by the server based on the performance test request, and displays the performance analysis result of the configuration file.
Based on the two implementations shown in step 403, the process of displaying the performance analysis result by the terminal in step 405 also includes the following two implementations, which are referred to as implementation (2-1) and implementation (2-2).
Implementation (2-1): and the terminal displays the performance comparison parameters of the configuration file and the historical configuration file on at least one performance index dimension, wherein the performance comparison parameters represent the comparison condition of the configuration file and the historical configuration file on the corresponding performance index dimension. In the embodiment, the displayed information amount is increased by displaying the performance comparison parameters of the configuration file and the historical configuration file in the at least one performance index dimension, so that a user can timely know the comparison condition of the configuration file and the historical configuration file in the corresponding performance index dimension, and the man-machine interaction efficiency is improved.
In some embodiments, the terminal further displays the performance test results of the profile in at least one performance indicator dimension and the performance test results of the historical profile in at least one performance indicator dimension. In an optional embodiment, the terminal displays, in a table form, a performance test result of the configuration file in at least one performance indicator dimension, a performance test result of the historical configuration file in at least one performance indicator dimension, and a performance comparison parameter of the configuration file and the historical configuration file in at least one performance indicator dimension. Therefore, the performance comparison parameters of the configuration file and the historical configuration file on the at least one performance index dimension are displayed in a table form, the comparison condition of the configuration file and the historical configuration file on the corresponding performance index dimension can be visually displayed, and the man-machine interaction efficiency is improved.
Implementation (2-2): and the terminal displays the performance test record of the target function, wherein the performance test record is used for recording the performance test result of at least one performance test event of the target function. In this embodiment, the displayed information amount is increased by displaying the performance test record of the target function, so that the user can timely acquire the performance test result of at least one performance test event of the target function, and the human-computer interaction efficiency is improved.
In some embodiments, the terminal displays an entry of the performance test record, where the entry is used to trigger display of the performance test record, and further, the terminal executes the step of displaying the performance test record of the target function in response to a trigger operation on the entry of the performance test record. In the embodiment, the performance test record of the target function can be triggered and displayed by the user through the entry of the performance test record by setting the entry of the performance test record, so that the human-computer interaction efficiency is improved.
In some embodiments, the performance test record is provided as a performance trend graph, and accordingly, the process of displaying the performance test record of the target function by the terminal is as follows: the terminal displays a performance trend graph of the target function, wherein the performance trend graph is used for indicating the variation trend of the performance test result of the at least one performance test event. Illustratively, the horizontal axis of the performance trend graph represents the event identification of the at least one performance test event, and the vertical axis of the performance trend graph represents the performance test result of the at least one performance test event. Therefore, the performance test result of at least one performance test event of the target function is displayed in the form of a trend graph, the comparison condition of each configuration file on the corresponding performance index dimension can be visually displayed, and the human-computer interaction efficiency is improved.
In some embodiments, the terminal displays the configuration file adopted in any performance test event in the performance trend graph in response to the triggering operation of the performance test result of any performance test event. In some embodiments, in the case that the performance test result of the performance test event is changed compared with the performance test result of the last performance test event, a target code segment, which is a code segment causing the change, is displayed in the displayed configuration file. Therefore, when the configuration file adopted in the performance test event is triggered and displayed, the target code segment in the configuration file can be displayed in a one-key mode, namely the code segment which is positioned to the configuration file in a one-key mode and changes, and the man-machine interaction efficiency is improved.
In other embodiments, the terminal displays a preview window in the performance trend graph in response to the hovering operation in the area where the performance test result of any performance test event is located, and displays the configuration file adopted in the performance test event in the preview window. Therefore, by hovering operation at any performance test result position in the performance trend graph, a preview window for displaying the performance test event can be triggered, so that a corresponding configuration file can be checked in the preview window, and the man-machine interaction efficiency is improved. In some embodiments, in the case that the performance test result of the performance test event changes compared with the performance test result of the last performance test event, a target code segment, which is a code segment causing the change, is displayed in the preview window. Furthermore, on the basis of previewing the window, the user can also position the code segment which is changed in the configuration file by one key, and the man-machine interaction efficiency is improved.
In a specific example, fig. 5 is a flow diagram of a performance test according to an exemplary embodiment, and referring to fig. 5, a performance test flow line (pipeline) shown in fig. 5 is constructed by automatically deploying a CICD capability, so as to implement functions of compiling and running a performance test, analyzing a result, outputting a report, and alarming an exception. The automatic Deployment CICD capability includes CI (content Integration, persistent Integration) capability, CD (content Deployment) capability, and CD (content Delivery) capability. In the performance testing process shown in fig. 5, a configuration collection module is used to collect a configuration file (such as a Benchmark file) of a target function and configuration information of the configuration file, store the collected configuration file in a product information base, and synchronously store the configuration information of the configuration file in a server (that is, store the Benchmark configuration in a cloud); acquiring a configuration file of a target function from a product information base through a performance testing module (such as a Benchmark deployment module), performing performance testing on the configuration file to obtain a performance testing result of the configuration file, and synchronously storing the performance testing result of the configuration file to a server side (namely storing the Benchmark result in a cloud side); further, the performance analysis module performs performance analysis on the configuration file to obtain a performance analysis result of the configuration file, for example, in some embodiments, the performance test result of the configuration file is compared with the performance test result of the historical configuration file, in still other embodiments, the performance test record is updated based on the performance test result of the configuration file, and the page address of the performance test record is output, so that the performance test record of the target function is checked subsequently based on the page address, in other embodiments, the configuration file is monitored in real time, and an exception alarm is performed when the configuration file is abnormal.
According to the technical scheme provided by the embodiment of the disclosure, the performance test process and the performance analysis process of the configuration file are triggered and executed by sending the performance test request through the terminal, a full-automatic performance test mode is provided, manual test and manual analysis are not needed, the efficiency of the performance test is improved, the performance analysis is carried out on the current configuration file by combining the performance test result of the historical configuration file of the target function, the information amount referred by the performance analysis is increased, and the accuracy of the performance test is improved.
FIG. 6 is a block diagram illustrating a performance testing apparatus according to an example embodiment. Referring to fig. 6, the apparatus includes aperformance test unit 601, aperformance analysis unit 602, and atransmission unit 603.
Aperformance testing unit 601, configured to execute a performance testing request of a configuration file responding to a target function sent by a terminal, perform a performance test on the configuration file, and obtain a performance testing result of the configuration file;
aperformance analysis unit 602 configured to perform performance analysis on the configuration file based on a performance test result of the configuration file and a performance test result of a historical configuration file of the target function, so as to obtain a performance analysis result of the configuration file, where the historical configuration file is a configuration file adopted in a historical performance test event of the target function;
a sendingunit 603 configured to send the performance analysis result of the configuration file to the terminal, so as to trigger the terminal to display the performance analysis result of the configuration file.
According to the technical scheme provided by the embodiment of the disclosure, the performance test process and the performance analysis process of the configuration file are triggered and executed by sending the performance test request through the terminal, a full-automatic performance test mode is provided, manual test and manual analysis are not needed, the efficiency of the performance test is improved, the performance analysis is carried out on the current configuration file by combining the performance test result of the historical configuration file of the target function, the information amount referred by the performance analysis is increased, and the accuracy of the performance test is improved.
In some embodiments, theperformance testing unit 601 is configured to perform:
acquiring the configuration file based on the storage position of the configuration file carried by the performance test request;
running the configuration file to obtain a running result of the configuration file;
and determining the performance test result of the configuration file based on the operation result of the configuration file.
In some embodiments, theperformance analysis unit 602 is configured to perform:
determining a performance analysis result of the profile based on a performance test result of the profile in at least one performance indicator dimension and a performance test result of the historical profile in the at least one performance indicator dimension.
In some embodiments, theperformance analysis unit 602 is configured to perform:
determining a performance comparison parameter of the configuration file and the historical configuration file in the at least one performance index dimension based on a performance test result of the configuration file in the at least one performance index dimension and a performance test result of the historical configuration file in the at least one performance index dimension, and determining the determined performance comparison parameter in the at least one performance index dimension as the performance analysis result, wherein the performance comparison parameter represents a comparison condition of the configuration file and the historical configuration file in a corresponding performance index dimension.
In some embodiments, theperformance analysis unit 602 is configured to perform:
and generating a performance test record of the target function based on the performance test result of the configuration file in the at least one performance index dimension and the performance test result of the historical configuration file in the at least one performance index dimension, and determining the performance test record as the performance analysis result, wherein the performance test record is used for recording the performance test result of at least one performance test event of the target function.
In some embodiments, the sendingunit 603 is further configured to perform:
and responding to the configuration file with abnormity, and sending a performance abnormity prompt to the terminal, wherein the performance abnormity prompt is used for prompting the configuration file with abnormity.
FIG. 7 is a block diagram illustrating a performance testing apparatus according to an example embodiment. Referring to fig. 7, the apparatus includes a transmittingunit 701 and adisplay unit 702.
A sendingunit 701 configured to execute a performance test operation in response to a configuration file of a target function, send a performance test request to a server, where the performance test request is used to request a performance test on the configuration file, and perform a performance analysis on the configuration file based on a performance test result of the configuration file and a performance test result of a historical configuration file of the target function, where the historical configuration file is a configuration file used in a historical performance test event of the target function;
adisplay unit 702 configured to perform receiving a performance analysis result of the configuration file returned by the server based on the performance test request, and displaying the performance analysis result of the configuration file.
According to the technical scheme provided by the embodiment of the disclosure, the performance test process and the performance analysis process of the configuration file are triggered and executed by sending the performance test request through the terminal, a full-automatic performance test mode is provided, manual test and manual analysis are not needed, the efficiency of the performance test is improved, the performance analysis is carried out on the current configuration file by combining the performance test result of the historical configuration file of the target function, the information amount referred by the performance analysis is increased, and the accuracy of the performance test is improved.
In some embodiments, thedisplay unit 702 includes:
the first display subunit is configured to perform displaying of a performance comparison parameter of the configuration file and the historical configuration file in at least one performance index dimension, where the performance comparison parameter represents a comparison condition of the configuration file and the historical configuration file in a corresponding performance index dimension.
In some embodiments, thedisplay unit 702 includes:
and the second display subunit is configured to execute performance test record displaying the target function, wherein the performance test record is used for recording the performance test result of at least one performance test event of the target function.
In some embodiments, the second display subunit is further configured to perform:
an entry for displaying the performance test record, the entry being used for triggering display of the performance test record;
and responding to the triggering operation of the entry of the performance test record, and executing the step of displaying the performance test record of the target function.
In some embodiments, the second display subunit is configured to perform:
and displaying a performance trend graph of the target function, wherein the performance trend graph is used for indicating the variation trend of the performance test result of the at least one performance test event.
In some embodiments, the second display subunit is further configured to perform:
in the performance trend graph, in response to the triggering operation of the performance test result of any performance test event, the configuration file adopted in the performance test event is displayed.
In some embodiments, the second display subunit is further configured to perform:
and under the condition that the performance test result of the performance test event is changed compared with the performance test result of the last performance test event, displaying a target code segment in the displayed configuration file, wherein the target code segment is the code segment causing the change.
In some embodiments, the second display subunit is further configured to perform:
in the performance trend graph, in response to the hovering operation in the area where the performance test result of any performance test event is located, a preview window is displayed, and the configuration file adopted in the performance test event is displayed in the preview window.
In some embodiments, thedisplay unit 702 is further configured to perform:
and displaying a performance abnormity prompt sent by the server, wherein the performance abnormity prompt is used for prompting that the configuration file has abnormity.
It should be noted that: in the performance testing apparatus provided in the above embodiment, only the division of the functional modules is illustrated in the performance testing, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the performance testing apparatus and the performance testing method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
The computer device mentioned in the embodiments of the present disclosure may be provided as a terminal. Fig. 8 shows a block diagram of a terminal 800 according to an exemplary embodiment of the disclosure. The terminal 800 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. The terminal 800 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, etc.
In general, the terminal 800 includes: aprocessor 801 and amemory 802.
Theprocessor 801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. Theprocessor 801 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). Theprocessor 801 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, theprocessor 801 may be integrated with a GPU (Graphics Processing Unit) which is responsible for rendering and drawing the content required to be displayed by the display screen. In some embodiments, theprocessor 801 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 802 may include one or more computer-readable storage media, which may be non-transitory.Memory 802 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium inmemory 802 is used to store at least one program code for execution byprocessor 801 to implement processes performed by terminals in the performance testing methods provided by method embodiments of the present disclosure.
In some embodiments, the terminal 800 may further include: aperipheral interface 803 and at least one peripheral. Theprocessor 801,memory 802 andperipheral interface 803 may be connected by bus or signal lines. Various peripheral devices may be connected toperipheral interface 803 by a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of aradio frequency circuit 804, adisplay screen 805, acamera assembly 806, anaudio circuit 807, apositioning assembly 808, and apower supply 809.
Theperipheral interface 803 may be used to connect at least one peripheral related to I/O (Input/Output) to theprocessor 801 and thememory 802. In some embodiments, theprocessor 801,memory 802, andperipheral interface 803 are integrated on the same chip or circuit board; in some other embodiments, any one or two of theprocessor 801, thememory 802, and theperipheral interface 803 may be implemented on separate chips or circuit boards, which are not limited by this embodiment.
TheRadio Frequency circuit 804 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. Theradio frequency circuitry 804 communicates with communication networks and other communication devices via electromagnetic signals. Therf circuit 804 converts an electrical signal into an electromagnetic signal to be transmitted, or converts a received electromagnetic signal into an electrical signal. Optionally, theradio frequency circuit 804 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. Theradio frequency circuit 804 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, theradio frequency circuit 804 may further include NFC (Near Field Communication) related circuits, which are not limited by this disclosure.
Thedisplay screen 805 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When thedisplay 805 is a touch display, thedisplay 805 also has the ability to capture touch signals on or above the surface of thedisplay 805. The touch signal may be input to theprocessor 801 as a control signal for processing. At this point, thedisplay 805 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, thedisplay 805 may be one, disposed on a front panel of the terminal 800; in other embodiments, thedisplay 805 may be at least two, respectively disposed on different surfaces of the terminal 800 or in a folded design; in other embodiments, thedisplay 805 may be a flexible display disposed on a curved surface or a folded surface of the terminal 800. Even further, thedisplay 805 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. TheDisplay 805 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and other materials.
Thecamera assembly 806 is used to capture images or video. Optionally,camera assembly 806 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments,camera assembly 806 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp and can be used for light compensation under different color temperatures.
Theaudio circuit 807 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to theprocessor 801 for processing or inputting the electric signals to theradio frequency circuit 804 to realize voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones may be provided at different portions of the terminal 800. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from theprocessor 801 or theradio frequency circuit 804 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, theaudio circuitry 807 may also include a headphone jack.
Thepositioning component 808 is used to locate the current geographic Location of the terminal 800 for navigation or LBS (Location Based Service).
Apower supply 809 is used to supply power to the various components in theterminal 800. Thepower source 809 may be ac, dc, disposable or rechargeable. When thepower source 809 comprises a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 800 also includes one or more sensors 810. The one or more sensors 810 include, but are not limited to: acceleration sensor 811, gyro sensor 812, pressure sensor 813, fingerprint sensor 814, optical sensor 815 andproximity sensor 816.
The acceleration sensor 811 may detect the magnitude of acceleration in three coordinate axes of the coordinate system established with the terminal 800. For example, the acceleration sensor 811 may be used to detect the components of the gravitational acceleration in three coordinate axes. Theprocessor 801 may control thedisplay 805 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 811. The acceleration sensor 811 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 812 may detect a body direction and a rotation angle of the terminal 800, and the gyro sensor 812 may cooperate with the acceleration sensor 811 to acquire a 3D motion of the user with respect to the terminal 800. From the data collected by the gyro sensor 812, theprocessor 801 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 813 may be disposed on the side frames ofterminal 800 and/or underneathdisplay 805. When the pressure sensor 813 is disposed on the side frame of the terminal 800, the holding signal of the user to the terminal 800 can be detected, and theprocessor 801 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 813. When the pressure sensor 813 is disposed at a lower layer of thedisplay screen 805, theprocessor 801 controls the operability control on the UI interface according to the pressure operation of the user on thedisplay screen 805. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 814 is used for collecting a fingerprint of the user, and theprocessor 801 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 814, or the fingerprint sensor 814 identifies the identity of the user according to the collected fingerprint. Upon identifying that the user's identity is a trusted identity, theprocessor 801 authorizes the user to perform relevant sensitive operations including unlocking a screen, viewing encrypted information, downloading software, paying for and changing settings, etc. Fingerprint sensor 814 may be disposed on the front, back, or side ofterminal 800. When a physical button or a vendor Logo is provided on the terminal 800, the fingerprint sensor 814 may be integrated with the physical button or the vendor Logo.
The optical sensor 815 is used to collect the ambient light intensity. In one embodiment,processor 801 may control the display brightness ofdisplay 805 based on the ambient light intensity collected by optical sensor 815. Specifically, when the ambient light intensity is high, the display brightness of thedisplay screen 805 is increased; when the ambient light intensity is low, the display brightness of thedisplay 805 is reduced. In another embodiment, theprocessor 801 may also dynamically adjust the shooting parameters of thecamera assembly 806 based on the ambient light intensity collected by the optical sensor 815.
Aproximity sensor 816, also known as a distance sensor, is typically provided on the front panel of the terminal 800. Theproximity sensor 816 is used to collect the distance between the user and the front surface of the terminal 800. In one embodiment, when theproximity sensor 816 detects that the distance between the user and the front surface of the terminal 800 gradually decreases, theprocessor 801 controls thedisplay 805 to switch from the bright screen state to the dark screen state; when theproximity sensor 816 detects that the distance between the user and the front surface of the terminal 800 becomes gradually larger, thedisplay 805 is controlled by theprocessor 801 to switch from the breath-screen state to the bright-screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 8 is not intended to be limiting ofterminal 800, and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components may be used.
The computer device mentioned in the embodiments of the present disclosure may be provided as a server. Fig. 9 is a block diagram of a server according to an exemplary embodiment, where theserver 900 may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 901 and one ormore memories 902, where the one ormore memories 902 store at least one program code, and the at least one program code is loaded and executed by the one ormore processors 901 to implement the processes executed by the server in the performance testing method provided by the various method embodiments. Certainly, theserver 900 may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface, so as to perform input and output, and theserver 900 may also include other components for implementing device functions, which are not described herein again.
In an exemplary embodiment, there is also provided a computer readable storage medium, such as amemory 902, comprising program code executable by aprocessor 901 of theserver 900 to perform the performance testing method described above. Alternatively, the computer-readable storage medium may be a ROM (Read-Only Memory), a RAM (Random Access Memory), a CD-ROM (Compact-Disc Read-Only Memory), a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided, comprising a computer program which, when executed by a processor, implements the performance testing method described above.
In some embodiments, a computer program according to embodiments of the present disclosure may be deployed to be executed on one computer device or on multiple computer devices at one site, or distributed across multiple sites and interconnected by a communication network, and the multiple computer devices distributed across the multiple sites and interconnected by the communication network may constitute a block chain system.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements 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 disclosure is limited only by the appended claims.

Claims (10)

CN202210372749.3A2022-04-112022-04-11Performance test method, performance test device, computer equipment and mediumPendingCN114706741A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202210372749.3ACN114706741A (en)2022-04-112022-04-11Performance test method, performance test device, computer equipment and medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202210372749.3ACN114706741A (en)2022-04-112022-04-11Performance test method, performance test device, computer equipment and medium

Publications (1)

Publication NumberPublication Date
CN114706741Atrue CN114706741A (en)2022-07-05

Family

ID=82172514

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202210372749.3APendingCN114706741A (en)2022-04-112022-04-11Performance test method, performance test device, computer equipment and medium

Country Status (1)

CountryLink
CN (1)CN114706741A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN115481001A (en)*2022-09-212022-12-16上海哔哩哔哩科技有限公司 Method and device for analyzing test data

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN115481001A (en)*2022-09-212022-12-16上海哔哩哔哩科技有限公司 Method and device for analyzing test data

Similar Documents

PublicationPublication DateTitle
CN110798790B (en)Microphone abnormality detection method, device and storage medium
CN111338910B (en) Log data processing and display method, device, device and storage medium
CN113098755B (en)Group chat creating method, device, terminal and storage medium
CN108897659B (en)Method, device and storage medium for modifying log level
CN110224870B (en)Interface monitoring method and device, computing equipment and storage medium
CN111177013A (en)Log data acquisition method and device, computer equipment and storage medium
CN110784370B (en)Method and device for testing equipment, electronic equipment and medium
CN113204298A (en)Method and device for displaying release progress, electronic equipment and storage medium
CN110659542B (en)Monitoring method and device
CN111858382A (en) Application testing method, device, server, system and storage medium
CN110768843B (en)Network problem analysis method, device, terminal and storage medium
CN109684123B (en)Problem resource positioning method, device, terminal and storage medium
CN112910722B (en)Network request testing method, device, terminal and storage medium
CN114706741A (en)Performance test method, performance test device, computer equipment and medium
CN113099378A (en)Positioning method, device, equipment and storage medium
CN113157570A (en)Method, device and storage medium for determining trigger subject information
CN110263695B (en)Face position acquisition method and device, electronic equipment and storage medium
CN112529871A (en)Method and device for evaluating image and computer storage medium
CN111666214A (en)Client fault tolerance test method, device, terminal, server and storage medium
CN113971123A (en)Application program testing method and device, testing terminal and storage medium
CN113591090A (en)Method, device and equipment for reporting program bug and storage medium
CN113342645B (en)Method, device, equipment and storage medium for testing business function
CN114071119B (en)Resource testing method and device, electronic equipment and storage medium
CN112463603B (en) Memory leak detection method, device, terminal and storage medium
CN107800720A (en)Kidnap report method, device, storage medium and equipment

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp