Terminal performance test method and device, storage medium and electronic equipment

By comparing the backend resident data of the terminal under different application startup strategies, the terminal's application keepability is determined, and the problem of poor testing accuracy in the existing technology is solved, and the terminal's usage performance and the continuity of application services are improved.

CN119718856APending Publication Date: 2025-03-28JRD COMM (SHENZHEN) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411651545.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-19
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

The prior art is poor in testing the application keepability of the terminal, which affects the terminal's usage performance and the continuity of application services.

Method used

By obtaining the first application startup policy and the second application startup policy of the terminal, the applications in the terminal are respectively controlled to start, and the resident data of the application in the background after the startup is completed. Comparing the resident data under the two strategies, obtaining the resident difference data, and then determining the terminal's application maintenance ability.

Benefits of technology

It improves the testing accuracy of application keep-aliveness and can more effectively improve the terminal's usage performance and multitasking capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119718856A_ABST
    Figure CN119718856A_ABST
Patent Text Reader

Abstract

The invention discloses a terminal performance testing method and device, a storage medium and electronic equipment, and relates to the technical field of electronic equipment, and the method comprises the following steps: obtaining a first application starting strategy and a second application starting strategy corresponding to a terminal; respectively controlling applications in the terminal to be started according to the first application starting strategy and the second application starting strategy, and respectively recording resident data of the applications in the background after the starting is completed to obtain first application background resident data and second application background resident data; comparing the first application background residence data with the second application background residence data to obtain residence difference data; and determining the application keep-alive capability of the terminal according to the residence difference data. The test accuracy of the application keep-alive ability can be improved, and the use performance of the terminal can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic equipment, and in particular to a terminal performance testing method, device, storage medium and electronic equipment. Background Art

[0002] The application keep-alive capability refers to the ability of an application to resist being terminated by the operating system due to resource management policies after being switched to the background. This capability is crucial to improving the user experience of the terminal and ensuring the continuity of application services.

[0003] Currently, the method for testing the application keep-alive capability of a terminal is usually to simply start multiple applications at the same time to test the terminal's ability to keep applications alive. The current testing method has the problem of poor accuracy in testing the application keep-alive capability, which is not conducive to effectively improving the terminal's performance. Summary of the invention

[0004] The embodiment of the present application provides a solution that can be effective.

[0005] The embodiments of the present application provide the following technical solutions:

[0006] According to one embodiment of the present application, a terminal performance testing method includes: obtaining a first application startup policy and a second application startup policy corresponding to the terminal; controlling the application in the terminal to start up according to the first application startup policy and the second application startup policy, and recording the resident data of the application in the background after the startup is completed, to obtain the first application background resident data and the second application background resident data; comparing the first application background resident data and the second application background resident data to obtain resident difference data; and determining the application keep-alive capability of the terminal according to the resident difference data.

[0007] In some embodiments of the present application, the method of obtaining the first application startup strategy and the second application startup strategy corresponding to the terminal includes: obtaining a preset sequence startup table and a preset random startup table; determining the first application set and the predetermined application startup sequence included in the preset sequence startup table as the first application startup strategy; and determining the second application startup strategy according to the first application set and the random application startup sequence included in the preset random startup table.

[0008] In some embodiments of the present application, obtaining the first application startup policy and the second application startup policy corresponding to the terminal includes: obtaining multiple groups of terminal parameter sets for the terminal, each group of the terminal parameter sets including multiple terminal parameters; inputting the multiple groups of terminal parameter sets into a preset policy configuration model to obtain multiple groups of policy sets output by the preset policy configuration model, each group of the policy sets including one of the first application startup policy and one of the second application startup policy.

[0009] In some embodiments of the present application, the resident difference data includes the difference in the number of applications terminated in the background; determining the application keep-alive capability of the terminal based on the resident difference data includes: determining the range of the difference in the number of applications terminated in the background; and determining the predetermined keep-alive capability corresponding to the range of the difference in the number as the application keep-alive capability of the terminal.

[0010] In some embodiments of the present application, the resident difference data includes application difference information of applications that are terminated in the background; determining the application keep-alive capability of the terminal based on the resident difference data includes: scoring according to the application difference information of applications that are terminated in the background to obtain a resident score; and determining the application keep-alive capability of the terminal according to a predetermined keep-alive capability that matches the resident score.

[0011] In some embodiments of the present application, the controlling the startup of applications in the terminal according to the first application startup policy and the second application startup policy respectively includes: according to the first application startup policy, controlling the terminal to start the applications included in the first application set according to the predetermined application startup order; according to the second application startup policy, controlling the terminal to randomly start the applications included in the second application set according to the random application startup order.

[0012] In some embodiments of the present application, the startup of applications in the terminal is controlled according to the first application startup policy and the second application startup policy, respectively, including: for each group of the policy sets, according to the first application startup policy in the policy set, controlling the terminal to start the applications included in the third application set according to the first reference startup sequence; according to the second application startup policy in the policy set, controlling the terminal to start the applications included in the fourth application set according to the second reference startup sequence.

[0013] According to one embodiment of the present application, a terminal performance testing device includes: an acquisition module, used to: acquire a first application startup policy and a second application startup policy corresponding to the terminal; a control module, used to: control the application in the terminal to start up according to the first application startup policy and the second application startup policy, and respectively record the resident data of the application in the background after the startup is completed, to obtain the first application background resident data and the second application background resident data; a comparison module, used to: compare the first application background resident data and the second application background resident data to obtain resident difference data; a determination module, used to: determine the application keep-alive capability of the terminal according to the resident difference data.

[0014] In some embodiments of the present application, the acquisition module is used to: acquire a preset sequence startup table and a preset random startup table; determine the first application set and the predetermined application startup sequence included in the preset sequence startup table as the first application startup strategy; and determine the second application startup strategy based on the first application set and the random application startup sequence included in the preset random startup table.

[0015] In some embodiments of the present application, the acquisition module is used to: obtain multiple groups of terminal parameter sets for the terminal, each group of the terminal parameter sets including multiple terminal parameters; input the multiple groups of terminal parameter sets into a preset policy configuration model to obtain multiple groups of policy sets output by the preset policy configuration model, each group of the policy sets including one of the first application startup policies and one of the second application startup policies.

[0016] In some embodiments of the present application, the resident difference data includes the difference in the number of applications terminated in the background; the determination module is used to: determine the range of the difference in the number of applications terminated in the background; and determine the predetermined keep-alive capability corresponding to the range of the difference in the number as the application keep-alive capability of the terminal.

[0017] In some embodiments of the present application, the resident difference data includes application difference information of applications that are terminated in the background; the determination module is used to: score according to the application difference information of applications that are terminated in the background to obtain a resident score; and determine the application keep-alive capability of the terminal according to a predetermined keep-alive capability that matches the resident score.

[0018] In some embodiments of the present application, the control module is used to: control the terminal to start the applications included in the first application set according to the predetermined application start order according to the first application start policy; and control the terminal to randomly start the applications included in the second application set according to the random application start order according to the second application start policy.

[0019] In some embodiments of the present application, the control module is used to: for each group of the policy sets, control the terminal to start the applications included in the third application set according to the first reference startup sequence according to the first application startup strategy in the policy set; and control the terminal to start the applications included in the fourth application set according to the second reference startup sequence according to the second application startup strategy in the policy set.

[0020] According to another embodiment of the present application, a storage medium stores a computer program thereon, and when the computer program is executed by a processor of a computer, the computer executes the method described in the embodiment of the present application.

[0021] According to another embodiment of the present application, an electronic device may include: a memory storing a computer program; and a processor reading the computer program stored in the memory to execute the method described in the embodiment of the present application.

[0022] According to another embodiment of the present application, a computer program product or a computer program includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in various optional implementations described in the embodiments of the present application.

[0023] In an embodiment of the present application, a first application startup policy and a second application startup policy corresponding to a terminal are obtained; the application in the terminal is controlled to be started according to the first application startup policy and the second application startup policy, and the resident data of the application in the background after the startup is completed is recorded respectively to obtain the first application background resident data and the second application background resident data; the first application background resident data and the second application background resident data are compared to obtain resident difference data; and the application keep-alive capability of the terminal is determined according to the resident difference data.

[0024] In this way, the applications in the terminal are controlled to start up according to the first application startup strategy and the second application startup strategy, and the resident data of the applications in the background after the startup is completed are recorded respectively, so as to obtain the first application background resident data and the second application background resident data; then, the first application background resident data and the second application background resident data are compared to obtain the resident difference data. Since the resident difference data can accurately reflect the resident difference of the background applications of the same terminal under two different startup strategies, the application keep-alive capability of the terminal can be accurately determined according to the resident difference data, so as to improve the test accuracy of the application keep-alive capability, which is conducive to effectively improving the use performance of the terminal. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0026] Figure 1 A flow chart of a terminal performance testing method according to an embodiment of the present application is shown.

[0027] Figure 2 A policy acquisition flow chart according to an embodiment of the present application is shown.

[0028] Figure 3 A startup control flow chart according to an embodiment of the present application is shown.

[0029] Figure 4 A block diagram of a terminal performance testing device according to an embodiment of the present application is shown.

[0030] Figure 5 A block diagram of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0031] The present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the embodiments provided herein are only used to explain the present disclosure and are not intended to limit the present disclosure. In addition, the embodiments provided below are partial embodiments for implementing the present disclosure, rather than providing all embodiments for implementing the present disclosure. In the absence of conflict, the technical solutions recorded in the embodiments of the present disclosure can be implemented in any combination.

[0032] It should be noted that, in the embodiments of the present disclosure, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a method or apparatus including a series of elements includes not only the elements explicitly recorded, but also includes other elements not explicitly listed, or also includes elements inherent to the implementation of the method or apparatus. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other related elements in the method or apparatus including the element (such as a step in the method or a unit in the apparatus, for example, a unit may be a part of a circuit, a part of a processor, a part of a program or software, etc.).

[0033] For example, the terminal performance testing method provided by the embodiment of the present disclosure includes a series of steps, but the terminal performance testing method provided by the embodiment of the present disclosure is not limited to the recorded steps. Similarly, the terminal performance testing device provided by the embodiment of the present disclosure includes a series of units, but the device provided by the embodiment of the present disclosure is not limited to including the units explicitly recorded, and may also include units required to obtain relevant information or perform processing based on the information.

[0034] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present disclosure belongs. The terms used herein are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure.

[0035] It is understandable that in the specific implementation of this application, relevant data is involved. When the embodiments in this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0036] Figure 1 The flowchart of a terminal performance test method according to an embodiment of the present application is schematically shown. The execution subject of the terminal performance test method can be any terminal or server with processing capabilities, such as a TV, a computer, a mobile phone, a smart watch, and a home appliance, and the server is a cloud server or a physical server. In a specific embodiment of the present application, the execution subject of the terminal performance test method is specifically a terminal.

[0037] like Figure 1 As shown, the terminal performance testing method may include steps S110 to S140.

[0038] Step S110, obtaining the first application startup policy and the second application startup policy corresponding to the terminal; Step S120, controlling the startup of the application in the terminal according to the first application startup policy and the second application startup policy, and recording the resident data of the application in the background after the startup is completed, to obtain the first application background resident data and the second application background resident data; Step S130, comparing the first application background resident data and the second application background resident data to obtain resident difference data; Step S140, determining the application keep-alive capability of the terminal according to the resident difference data.

[0039] A large number of applications can be installed in the terminal. The first application startup policy is a first strategy for starting the multiple applications, and the second application startup policy is a second strategy for starting the multiple applications. The first application startup policy and the second application startup policy are different application startup policies.

[0040] According to the first application startup strategy, multiple applications in the terminal are started. During the startup process, the application started first will switch to the background after the next application is started. The resident data of the application in the background in the terminal after the startup process is completed is recorded to obtain the background resident data of the first application.

[0041] According to the second application startup policy, multiple applications in the terminal are started. During the startup process, the application started first will switch to the background after the next application is started. The resident data of the application in the background in the terminal after the startup process is completed is recorded to obtain the background resident data of the second application.

[0042] The first application background resident data may include information and the number of applications that have been terminated in the background, and the second application background resident data may include information and the number of applications that have been terminated in the background. By comparing the first application background resident data and the second application background resident data, the resident difference data of the background applications under two different startup strategies can be obtained.

[0043] Since the residency difference data can accurately reflect the residency difference of background applications of the same terminal under two different startup strategies, the application keep-alive capability of the terminal can be accurately determined based on the residency difference data, and the multi-tasking capability of the terminal can be reflected at the same time. According to the application keep-alive capability, the terminal can be effectively improved to enhance the application keep-alive capability and multi-tasking capability of the terminal.

[0044] In summary, in this manner of the embodiment of the present application, the applications in the terminal are controlled to start up according to the first application startup strategy and the second application startup strategy, and the resident data of the applications in the background after the startup is completed are recorded respectively, so as to obtain the first application background resident data and the second application background resident data; then, the first application background resident data and the second application background resident data are compared to obtain the resident difference data. Since the resident difference data can accurately reflect the resident difference of the background applications of the same terminal under two different startup strategies, the application keep-alive capability of the terminal can be accurately determined according to the resident difference data, so as to improve the test accuracy of the application keep-alive capability, which is conducive to effectively improving the use performance of the terminal.

[0045] Described below Figure 1 When performing the terminal performance test under the embodiment, further optional specific embodiments are provided under each step performed.

[0046] In one embodiment, see Figure 2 , the obtaining of the first application startup strategy and the second application startup strategy corresponding to the terminal may include: step S210, obtaining a preset sequence startup table and a preset random startup table; step S220, determining the first application set and the predetermined application startup sequence included in the preset sequence startup table as the first application startup strategy; step S230, determining the second application set and the random application startup sequence included in the preset random startup table as the second application startup strategy.

[0047] In this embodiment, a preset sequential startup table and a preset random startup table are configured. The preset sequential startup table includes a first application set and a predetermined application startup order of the applications included in the first application set. The preset random startup table includes a second application set, wherein the applications included in the second application set are randomly started.

[0048] The first application set and the predetermined application startup sequence included in the preset sequential startup table are determined as the first application startup strategy; the second application set and the random application startup sequence included in the preset random startup table are determined as the second application startup strategy. Application startup comparison can be performed according to the two strategies of the predetermined application startup sequence and the random startup.

[0049] Correspondingly, controlling the startup of applications in the terminal according to the first application startup policy and the second application startup policy respectively may include: controlling the terminal to start the applications included in the first application set according to the predetermined application startup order according to the first application startup policy; and controlling the terminal to randomly start the applications included in the second application set according to the random application startup order according to the second application startup policy.

[0050] The first application set may include multiple applications, and the second application set may include multiple applications. According to the first application startup strategy, the control terminal starts the applications included in the first application set according to the predetermined application startup sequence, and can also record the resident data of the applications in the background after the startup is completed, so as to obtain the background resident data of the first application. According to the second application startup strategy, the control terminal randomly starts the applications included in the second application set according to the random application startup sequence, and can also record the resident data of the applications in the background after the startup is completed, so as to obtain the background resident data of the second application.

[0051] The first application background resident data and the second application background resident data obtained by starting the applications in the two strategies in a predetermined application startup order and a random order are used to compare and obtain the resident difference data, which can accurately analyze the application keep-alive capability of the terminal.

[0052] Correspondingly, see Figure 3 , the resident difference data includes the difference in the number of applications terminated in the background; determining the application keep-alive capability of the terminal based on the resident difference data may include: step S310, determining the range of the difference in the number of applications terminated in the background; step S320, determining the predetermined keep-alive capability corresponding to the range of the difference in the number as the application keep-alive capability of the terminal.

[0053] The resident difference data includes the difference in the number of applications terminated in the background. For example, the background resident data of the first application is the first number of applications terminated in the background, and the background resident data of the second application is the second number of applications terminated in the background. The difference in the number is the difference between the first number and the second number.

[0054] Multiple ranges and predetermined keep-alive capabilities corresponding to each range are preset, and the range where the difference in the number of applications terminated in the background is located can be determined from the preset multiple ranges; and then the predetermined keep-alive capability corresponding to the range where the difference in the number is located can be accurately determined as the application keep-alive capability of the terminal. The larger the difference in the number, the worse the application keep-alive capability of the terminal.

[0055] Furthermore, in one embodiment, obtaining the first application startup policy and the second application startup policy corresponding to the terminal may include: obtaining multiple groups of terminal parameter sets for the terminal, each group of the terminal parameter sets including multiple terminal parameters; inputting the multiple groups of terminal parameter sets into a preset policy configuration model to obtain multiple groups of policy sets output by the preset policy configuration model, each group of the policy sets including one of the first application startup policy and one of the second application startup policy.

[0056] For the terminal to be tested, multiple terminal parameter sets of the terminal can be obtained, each terminal parameter set can be multiple terminal parameters collected in the terminal under a power state, and the multiple terminal parameters included in each terminal parameter set can be parameters derived from hardware and system software. A preset strategy configuration model is pre-trained, and the preset strategy configuration model can be a trained large model obtained by fine-tuning the large language model.

[0057] By inputting multiple groups of terminal parameter sets into a preset policy configuration model, multiple groups of policy sets can be obtained by analyzing and outputting the preset policy configuration model according to the multiple groups of terminal parameter sets, each group of policy sets includes a first application startup policy and a second application startup policy, the first application startup policy in each group of policy sets may include a third application set and a corresponding first control startup sequence, and the second application startup policy in each group of policy sets may include a fourth application set and a corresponding second control startup sequence.

[0058] Correspondingly, controlling the startup of applications in the terminal according to the first application startup policy and the second application startup policy respectively may include: for each group of the policy sets, controlling the terminal to start applications included in the third application set according to a first reference startup sequence according to the first application startup policy in the policy set; and controlling the terminal to start applications included in the fourth application set according to a second reference startup sequence according to the second application startup policy in the policy set.

[0059] For example, the multiple policy sets are specifically 2 groups. According to the first application startup policy in the first policy set, the terminal can be controlled to start the applications included in the third application set according to the first reference startup sequence, and the resident data of the application in the background after the startup is completed can be recorded to obtain the first application background resident data corresponding to the first policy set; according to the second application startup policy in the first policy set, the terminal can be controlled to start the applications included in the fourth application set according to the second reference startup sequence, and the resident data of the application in the background after the startup is completed can be recorded to obtain the second application background resident data corresponding to the first policy set; similarly, the first application background resident data and the second application background resident data corresponding to the second policy set can be obtained.

[0060] The two strategies of starting applications respectively according to the first control startup sequence and the second control startup sequence output by the preset policy configuration model, and the first application background resident data and the second application background resident data respectively obtained are used to compare and obtain the resident difference data, and the resident difference data can be further accurately analyzed to obtain the application keep-alive capability of the terminal.

[0061] In one embodiment, the resident difference data includes application difference information of applications that are terminated in the background; determining the application keep-alive capability of the terminal based on the resident difference data may include: scoring according to the application difference information of applications that are terminated in the background to obtain a resident score; and determining the application keep-alive capability of the terminal as a predetermined keep-alive capability that matches the resident score.

[0062] The resident difference data includes the first difference information of the application that is terminated in the background. For example, the first application background resident data is the second detailed information of the application that is terminated in the background, and the second application background resident data is the detailed information of the application that is terminated in the background. The application difference information is the difference between the first difference information of the application and the second difference information of the application (for example, the difference in application size area and application memory occupancy, etc.).

[0063] A plurality of scoring intervals and predetermined keep-alive capabilities corresponding to each scoring interval are pre-set, and a resident score is obtained by scoring according to the application difference information of the applications terminated in the background, and the predetermined keep-alive capability corresponding to the scoring interval that matches the resident score can be accurately determined as the application keep-alive capability of the terminal. Among them, the lower the resident score, the stronger the application keep-alive capability of the terminal. Among them, scoring according to the application difference information of the applications terminated in the background to obtain the resident score can be specifically: weighted summing the application difference information to obtain the resident score.

[0064] In order to better implement the terminal performance test method provided in the embodiment of the present application, the embodiment of the present application also provides a terminal performance test device based on the above terminal performance test method. The meanings of the terms are the same as those in the above terminal performance test method, and the specific implementation details can refer to the description in the method embodiment. Figure 4 A block diagram of a terminal performance testing device according to an embodiment of the present application is shown.

[0065] like Figure 4 As shown, the terminal performance testing device 400 may include: an acquisition module 410 can be used to: acquire a first application startup policy and a second application startup policy corresponding to the terminal; a control module 420 can be used to: control the startup of the application in the terminal according to the first application startup policy and the second application startup policy, and respectively record the resident data of the application in the background after the startup is completed, to obtain the first application background resident data and the second application background resident data; a comparison module 430 can be used to: compare the first application background resident data and the second application background resident data to obtain resident difference data; a determination module 440 can be used to: determine the application keep-alive capability of the terminal according to the resident difference data.

[0066] In some embodiments of the present application, the acquisition module is used to: acquire a preset sequence startup table and a preset random startup table; determine the first application set and the predetermined application startup sequence included in the preset sequence startup table as the first application startup strategy; and determine the second application startup strategy based on the first application set and the random application startup sequence included in the preset random startup table.

[0067] In some embodiments of the present application, the acquisition module is used to: obtain multiple groups of terminal parameter sets for the terminal, each group of the terminal parameter sets including multiple terminal parameters; input the multiple groups of terminal parameter sets into a preset policy configuration model to obtain multiple groups of policy sets output by the preset policy configuration model, each group of the policy sets including one of the first application startup policies and one of the second application startup policies.

[0068] In some embodiments of the present application, the resident difference data includes the difference in the number of applications terminated in the background; the determination module is used to: determine the range of the difference in the number of applications terminated in the background; and determine the predetermined keep-alive capability corresponding to the range of the difference in the number as the application keep-alive capability of the terminal.

[0069] In some embodiments of the present application, the resident difference data includes application difference information of applications that are terminated in the background; the determination module is used to: score according to the application difference information of applications that are terminated in the background to obtain a resident score; and determine the application keep-alive capability of the terminal according to a predetermined keep-alive capability that matches the resident score.

[0070] In some embodiments of the present application, the control module is used to: control the terminal to start the applications included in the first application set according to the predetermined application start order according to the first application start policy; and control the terminal to randomly start the applications included in the second application set according to the random application start order according to the second application start policy.

[0071] In some embodiments of the present application, the control module is used to: for each group of the policy sets, control the terminal to start the applications included in the third application set according to the first reference startup sequence according to the first application startup strategy in the policy set; and control the terminal to start the applications included in the fourth application set according to the second reference startup sequence according to the second application startup strategy in the policy set.

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

[0073] In addition, the present application also provides an electronic device, such as Figure 5 As shown, Figure 5 A block diagram of an electronic device according to an embodiment of the present application is shown, specifically:

[0074] The electronic device may include components such as a processor 501 with one or more processing cores, a memory 502 with one or more computer-readable storage media, a power supply 503, and an input unit 504. Those skilled in the art will appreciate that Figure 5 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0075] in:

[0076] The processor 501 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire computer device. By running or executing software programs and / or modules stored in the memory 502 and calling data stored in the memory 502, it executes various functions of the computer device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 501 may include one or more processing cores; preferably, the processor 501 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user pages and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 501.

[0077] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing by running the software programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 502 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.

[0078] The electronic device also includes a power supply 503 for supplying power to each component. Preferably, the power supply 503 can be logically connected to the processor 501 through a power management system, so as to manage charging, discharging, power consumption and other functions through the power management system. The power supply 503 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.

[0079] The electronic device may further include an input unit 504, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0080] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 501 in the electronic device will load the executable files corresponding to the processes of one or more computer programs into the memory 502 according to the following instructions, and the processor 501 will run the computer program stored in the memory 502, thereby realizing various functions in the aforementioned embodiments of the present application, such as the processor 501 may perform the following steps:

[0081] In some embodiments of the present application, the method of obtaining the first application startup strategy and the second application startup strategy corresponding to the terminal includes: obtaining a preset sequence startup table and a preset random startup table; determining the first application set and the predetermined application startup sequence included in the preset sequence startup table as the first application startup strategy; and determining the second application startup strategy according to the first application set and the random application startup sequence included in the preset random startup table.

[0082] In some embodiments of the present application, obtaining the first application startup policy and the second application startup policy corresponding to the terminal includes: obtaining multiple groups of terminal parameter sets for the terminal, each group of the terminal parameter sets including multiple terminal parameters; inputting the multiple groups of terminal parameter sets into a preset policy configuration model to obtain multiple groups of policy sets output by the preset policy configuration model, each group of the policy sets including one of the first application startup policy and one of the second application startup policy.

[0083] In some embodiments of the present application, the resident difference data includes the difference in the number of applications terminated in the background; determining the application keep-alive capability of the terminal based on the resident difference data includes: determining the range of the difference in the number of applications terminated in the background; and determining the predetermined keep-alive capability corresponding to the range of the difference in the number as the application keep-alive capability of the terminal.

[0084] In some embodiments of the present application, the resident difference data includes application difference information of applications that are terminated in the background; determining the application keep-alive capability of the terminal based on the resident difference data includes: scoring according to the application difference information of applications that are terminated in the background to obtain a resident score; and determining the application keep-alive capability of the terminal according to a predetermined keep-alive capability that matches the resident score.

[0085] In some embodiments of the present application, the controlling the startup of applications in the terminal according to the first application startup policy and the second application startup policy respectively includes: according to the first application startup policy, controlling the terminal to start the applications included in the first application set according to the predetermined application startup order; according to the second application startup policy, controlling the terminal to randomly start the applications included in the second application set according to the random application startup order.

[0086] In some embodiments of the present application, the startup of applications in the terminal is controlled according to the first application startup policy and the second application startup policy, respectively, including: for each group of the policy sets, according to the first application startup policy in the policy set, controlling the terminal to start the applications included in the third application set according to the first reference startup sequence; according to the second application startup policy in the policy set, controlling the terminal to start the applications included in the fourth application set according to the second reference startup sequence.

[0087] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0088] To this end, an embodiment of the present application further provides a storage medium, in which a computer program is stored. The computer program can be loaded by a processor to execute the steps in any method provided in the embodiment of the present application.

[0089] The storage medium may be a computer-readable storage medium, and the storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0090] Since the computer program stored in the storage medium can execute the steps in any method provided in the embodiments of the present application, the beneficial effects that can be achieved by the method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

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

[0092] It should be understood that the present application is not limited to the embodiments that have been described above and shown in the accompanying drawings, but various modifications and changes may be made without departing from the scope thereof.

Claims

1. A terminal performance testing method, characterized in that: include: Obtaining a first application startup policy and a second application startup policy corresponding to the terminal; Controlling the applications in the terminal to start up respectively according to the first application start-up strategy and the second application start-up strategy, and recording the resident data of the applications in the background after the start-up is completed respectively, to obtain the first application background resident data and the second application background resident data; Comparing the first application background resident data with the second application background resident data to obtain resident difference data; An application keep-alive capability of the terminal is determined according to the resident difference data.

2. The method according to claim 1, characterized in that The obtaining of the first application startup policy and the second application startup policy corresponding to the terminal includes: Obtain a preset sequential start table and a preset random start table; Determining the first application set and the predetermined application startup sequence included in the preset sequential startup table as the first application startup strategy; The second application startup strategy is determined according to the first application set and the random application startup sequence included in the preset random startup table.

3. The method according to claim 1, characterized in that The obtaining of the first application startup policy and the second application startup policy corresponding to the terminal includes: Acquire multiple groups of terminal parameter sets of the terminal, each group of the terminal parameter set including multiple terminal parameters; The multiple groups of terminal parameter sets are input into a preset policy configuration model to obtain multiple groups of policy sets output by the preset policy configuration model, each group of the policy sets includes one of the first application startup policies and one of the second application startup policies.

4. The method according to claim 2, characterized in that: The resident difference data includes the difference in the number of applications terminated in the background; and determining the application keep alive capability of the terminal according to the resident difference data includes: Determine a range within which the difference in the number of applications terminated in the background falls; The predetermined keep-alive capability corresponding to the range where the difference in the number lies is determined as the application keep-alive capability of the terminal.

5. The method according to claim 3, characterized in that: The resident difference data includes application difference information of applications that are terminated in the background; and determining the application keep alive capability of the terminal according to the resident difference data includes: Scoring the application difference information of the application terminated in the background to obtain a retention score; The predetermined keep-alive capability matched by the resident score is determined as the application keep-alive capability of the terminal.

6. The method according to claim 2, characterized in that The controlling the application in the terminal to start up according to the first application start-up policy and the second application start-up policy respectively includes: According to the first application startup strategy, controlling the terminal to start the applications included in the first application set according to the predetermined application startup sequence; According to the second application startup policy, the terminal is controlled to randomly start the applications included in the second application set according to the random application startup sequence.

7. The method according to claim 3, characterized in that The controlling the application in the terminal to start up according to the first application start-up policy and the second application start-up policy respectively includes: For each group of the policy sets, according to the first application startup policy in the policy set, controlling the terminal to start the applications included in the third application set according to the first comparison startup sequence; According to the second application startup policy in the policy set, the terminal is controlled to start the applications included in the fourth application set according to the second reference startup sequence.

8. A terminal performance testing device, characterized in that: include: An acquisition module, used to: acquire a first application startup policy and a second application startup policy corresponding to the terminal; A control module, used to: control the applications in the terminal to start up according to the first application start-up strategy and the second application start-up strategy, and respectively record the resident data of the applications in the background after the start-up is completed, so as to obtain the first application background resident data and the second application background resident data; A comparison module, used to compare the background resident data of the first application and the background resident data of the second application to obtain resident difference data; The determination module is used to determine the application keep-alive capability of the terminal according to the resident difference data.

9. A storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is caused to execute the method according to any one of claims 1 to 7.

10. An electronic device, characterized in that: include: a memory storing a computer program; A processor reads a computer program stored in a memory to execute the method according to any one of claims 1 to 7.