CN112765033A - Speed testing method, device, equipment and storage medium - Google Patents

Speed testing method, device, equipment and storage medium Download PDF

Info

Publication number
CN112765033A
CN112765033A CN202110104057.6A CN202110104057A CN112765033A CN 112765033 A CN112765033 A CN 112765033A CN 202110104057 A CN202110104057 A CN 202110104057A CN 112765033 A CN112765033 A CN 112765033A
Authority
CN
China
Prior art keywords
page
speed
started
starting
configuration information
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.)
Granted
Application number
CN202110104057.6A
Other languages
Chinese (zh)
Other versions
CN112765033B (en
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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202110104057.6A priority Critical patent/CN112765033B/en
Publication of CN112765033A publication Critical patent/CN112765033A/en
Application granted granted Critical
Publication of CN112765033B publication Critical patent/CN112765033B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

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

Abstract

The application discloses a speed testing method, a speed testing device, speed testing equipment and a storage medium, and relates to the field of software development and testing. The specific implementation scheme is as follows: acquiring speed test configuration information of a user; if the speed test needs to be carried out on the page to be started according to the speed test configuration information, collecting log information of the page to be started; and determining the starting speed of the page to be started according to the collected log information. A new idea is provided for efficiently determining the starting speed of the page.

Description

Speed testing method, device, equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for speed testing.
Background
With the development of science and technology, more and more application software is provided. The time (i.e. the starting speed) consumed by the application software page in the starting process is an important index for measuring the performance of the application software, and therefore, the time is very important for testing the starting speed of the page.
Disclosure of Invention
The application provides a speed testing method, a speed testing device, speed testing equipment and a storage medium.
According to an aspect of the present application, there is provided a speed testing method, the method including:
acquiring speed test configuration information of a user;
if the speed test needs to be carried out on the page to be started according to the speed test configuration information, collecting log information of the page to be started;
and determining the starting speed of the page to be started according to the collected log information.
According to another aspect of the present application, there is provided a speed processing apparatus, the apparatus including:
the configuration information acquisition module is used for acquiring the speed test configuration information of a user;
the test determining module is used for determining whether the speed test is required to be carried out on the page to be started according to the speed test configuration information;
the log information collection module is used for collecting the log information of the page to be started if the speed test needs to be carried out on the page to be started according to the speed test configuration information;
and the starting speed determining module is used for determining the starting speed of the page to be started according to the collected log information.
According to another aspect of the present application, there is provided an electronic device including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a speed testing method as described in any of the embodiments herein.
According to another aspect of the present application, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to execute a speed testing method according to any of the embodiments of the present application.
According to another aspect of the present application, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the speed testing method according to any of the embodiments of the present application.
According to the technology of the application, a new idea is provided for efficiently determining the starting speed of the page.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present application, nor do they limit the scope of the present application. Other features of the present application will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
FIG. 1A is a flow chart of a speed testing method according to an embodiment of the present application;
FIG. 1B is a schematic diagram of a visual information configuration interface provided in accordance with an embodiment of the present application;
FIG. 2 is a flow chart of another speed testing method provided according to an embodiment of the present application;
FIG. 3 is a schematic structural diagram of a speed testing apparatus according to an embodiment of the present application;
fig. 4 is a block diagram of an electronic device for implementing the speed testing method of the embodiment of the present application.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1A is a flowchart of a speed testing method according to an embodiment of the present application. The method and the device are suitable for testing the starting speed of the application software page. The application page may be any page of all pages involved by the application, such as a chat software (e.g., WeChat), and the page for performing the speed test may include a login page, a chat page, a friend circle page, and the like. This embodiment may be performed by a speed testing apparatus, which may be implemented in software and/or hardware, and optionally may be a speed testing aid (e.g., an application program or a web page, etc.), which may be integrated into an electronic device, such as an intelligent terminal. As shown in fig. 1A, the speed testing method includes:
s101, obtaining speed test configuration information of a user.
In this embodiment, when a user has a demand for starting a speed test on a page, the user may log in on a login interface provided by the speed test assisting tool, and if the user successfully logs in, the user may input related data in the visual information configuration interface according to the test demand and options (including, but not limited to, options such as a path, an operation name, an operation type, operation content, waiting time, a test device, and data for collecting the operation speed) provided by a visual information configuration interface (as shown in fig. 1B) provided by the speed test assisting tool, and click an add completion button. For example, for chat software (e.g., WeChat), when a user has a requirement for testing the starting speed (also referred to as opening speed) of a "friend circle" page, the user may input, in the visual information configuration interface, path information storing configuration information set in the "friend circle" page of this test, set the operation type as a single click, set the operation content as a "friend circle" icon screenshot, collect the option start of this operation speed data, and click an add completion button.
And then the speed test auxiliary tool can determine the speed test configuration information of the user according to the input data of the user. Optionally, the speed test configuration information of the user may be generated according to the input data of the user and the options corresponding to the input data. For example, the speed test configuration information in the present embodiment may include, but is not limited to, path information, operation information (which may include information such as operation type and operation content), and whether to collect the present operation speed data information. The path information is a path for storing the speed test configuration information; it can be understood that, as the way of opening the same page may be various, for example, for chat software (e.g. WeChat), the way of opening the "chat with XX people" page may be to find "XX people" in the "address list" page, click "XX people head portrait" to enter "XX people's main page", click "send message" icon in "XX people's main page", and then open "chat with XX people" page; or finding the XX person in the historical chat records of the WeChat page, clicking the head portrait of the XX person to open a chat page with the XX person, and the like; further, in order to avoid confusion of different opening scenarios, the path information (i.e., the path name) in this embodiment may include an operation procedure of the page to be tested, that is, a mode of starting the page to be tested this time. For a page to be tested, it can have a plurality of different operation flows.
And S102, if the speed test needs to be carried out on the page to be started according to the speed test configuration information, collecting the log information of the page to be started.
In this embodiment, the page to be started is a page to be opened by the test device currently, where the test device is an electronic device integrated with a speed test aid. Optionally, the page to be started may be determined according to the current operation of the user on the test device. For example, for chat software (e.g., WeChat), if it is monitored that the user clicks the "circle of friends" icon, it may be determined that the page to be launched is a "circle of friends" page. For another example, for the weather software, if it is monitored that the user clicks the "weather" software icon, it may be determined that the page to be started is a default page of the "weather" software, such as a home page.
Optionally, it may be determined whether a speed test needs to be performed on the page to be started according to the acquired speed test configuration information. For example, if it is determined that the user needs to test the starting speed of the page of the 'friend circle' according to the acquired speed test configuration information, and the page to be started is the page of the 'friend circle', it is determined that the speed test needs to be performed on the page to be started; and if the fact that the user needs to test the starting speed of the page of the 'friend circle' is determined according to the acquired speed test configuration information, but the page to be started is a 'chat with XX person' page, determining that the speed test of the page to be started is not needed.
Specifically, when it is determined that the speed test needs to be performed on the page to be started according to the speed test configuration information, the log information of the page to be started can be collected. For example, the target file name for storing the log information of the page to be started may be determined according to the operation flow of the page to be tested included in the path information in the speed test configuration information, and then the log information of the page to be started may be acquired from the file with the name of the target file name under the system log file. In order to facilitate quick acquisition of the required log information, optionally, in this embodiment, the log information of each page requiring the test of the starting speed is stored in a different file, that is, the storage address has uniqueness.
Optionally, if it is determined that the speed test is not required to be performed on the page to be started according to the speed test configuration information, the log information of the page to be started may not be collected in the process of starting the page to be started; and after the page to be started completes the starting operation, the operation S102 may be continued.
S103, determining the starting speed of the page to be started according to the collected log information.
Specifically, statistical analysis is performed on the collected log information, and then the starting speed of the page to be started is determined. Further, in order to ensure the accuracy of the determined starting speed of the page to be started, a plurality of tests may be performed, that is, the processes of steps S102 and S103 may be performed a plurality of times, and then the average value of the starting speeds of the page to be started determined a plurality of times may be used as the final starting speed of the page to be started.
Because the page to be started may have network abnormality, power failure and other sudden conditions in the starting process, in order to ensure the accuracy of the determined starting speed of the page to be started, multiple tests can be performed, the maximum value and the minimum value in the starting speeds of the page to be started which are determined for multiple times are removed, and the average value of the remaining starting speeds is used as the final starting speed of the page to be started.
For example, after the starting speed of the page to be started is determined, the collected log information, the determined starting speed of the page to be started, and the speed test configuration information of the user can be displayed to the user together, so that the user can visually acquire the starting speed of the page to be started, and the accuracy of the determined starting speed of the page to be started can be checked.
It should be noted that, in the prior art, for testing the starting speed of a certain page, all log information in a system log file is generally loaded into a memory for analysis, which may cause a system crash or a system jam of a device, and the analysis efficiency is low; the method and the device only collect the log information associated with the page to be started, can ensure the normal operation of the test equipment, and greatly improve the log analysis efficiency. In addition, one or more opening modes can be provided for a certain page; under the condition that a certain page is opened in multiple modes, the prior art mainly adopts a mode of rewriting codes to distinguish, is complex, has higher requirements on the professional knowledge of a user and the like, and the application aims at different opening modes, and the user only needs to set on a visual information configuration interface to realize the scene-based test.
According to the technical scheme, under the scene of testing the starting speed of the page, whether the speed test needs to be carried out on the page to be started is determined based on the speed test configuration information of the user, when the speed test needs to be carried out on the page to be started is determined, only the log information of the page to be started is collected, and the starting speed of the page to be started is determined based on the collected log information, so that the efficiency of log analysis is greatly improved, and the normal operation of a system can be ensured. In addition, under the condition that a certain page is opened in multiple modes, the method and the device can realize the sub-scene test by introducing the speed test configuration information of the user, and the flexibility of the scheme is improved.
In order to improve the efficiency of log analysis, that is, the efficiency of determining the starting speed, as an alternative of the embodiment of the present application, collecting log information of a page to be started may be: clearing historical log information; and collecting the log information of the page to be started in the starting process of the page to be started.
Specifically, before starting the page to be started, log information recorded in a system log file can be cleared; and then, starting log collection, storing the collected log information into a preset storage space, setting a name which is consistent with the opening mode of the page to be started, and stopping collecting the log when the situation that the page to be started is monitored, namely the page to be started is opened. It can be understood that, in this embodiment, by adding the operation of clearing the historical log information, the log information of the page to be started can be quickly collected from the system log file, and a foundation is laid for efficiently determining the starting speed of the page to be started.
Fig. 2 is a flow chart of another speed testing method provided according to an embodiment of the present application. On the basis of the above embodiments, the embodiments of the present application further explain the speed test that is determined to be required to be performed on the page to be started according to the speed test configuration information. As shown in fig. 2, the speed testing method includes:
s201, obtaining speed test configuration information of a user.
S202, if the current operation is determined to be the starting operation associated with the page to be tested according to the speed test configuration information, and the test option of the page to be started associated with the current operation is started, determining that the speed test needs to be performed on the page to be started.
In this embodiment, the page to be tested is a page on which the user needs to perform the start speed test. Optionally, the speed test configuration information (specifically, the path information of the speed test configuration information) may include an operation procedure for starting a page to be tested, that is, a manner for opening the page to be tested. For example, the page to be tested is a special local product page XX, and the operation process of starting the page to be tested comprises two operation steps of clicking an XX browser icon and clicking to search the special local product XX. Further, under the condition that the operation flow for starting the page to be tested comprises a plurality of operation steps, the user can select not to test the speed of the front page of the page to be tested (namely, the page associated with all the steps before the last operation step) through the option of collecting the operation speed data in the visual information configuration interface, and only the page associated with the last operation step (namely, the page to be tested) is tested in a speed mode, namely, the separation of the steps is realized, and the flexibility of the scheme is further increased. For example, for the operation step of "clicking XX browser icon", the option of collecting speed data of the operation may be set to close in the speed test configuration information of the user, that is, the test option of the "search" page associated with the operation step of "clicking XX browser icon" is closed; meanwhile, for the operation step of 'click search XX special local product', the speed test configuration information of the user may be set with an option to open for collecting speed data of the operation, that is, a test option to open a 'XX special local product' page associated with the operation step of 'click search XX special local product'.
Further, under the condition that the operation flow for starting the page to be tested comprises a plurality of operation steps, the user can also select to test the speed of the page to be tested and the speed of the front page of the page to be tested.
Optionally, the number of operation steps included in the operation flow for starting the page to be tested determines the number of starting operations associated with the page to be tested, and specifically may include at least one; further, under the condition that the number of the starting operations associated with the page to be tested is one, whether the current operation is the starting operation associated with the page to be tested is judged, for example, the current operation is clicking a friend circle icon, the starting operation associated with the page to be tested is determined to be clicking the friend circle icon according to the operation information in the speed test configuration information, and then the current operation is determined to be the starting operation associated with the page to be tested, at this time, it can be stated that the page to be started associated with the current operation is the page to be tested. Under the condition that the current operation is determined to be the starting operation associated with the page to be tested, whether the test option of the page to be started associated with the current operation is started or not is judged, that is, whether the test option of the page to be tested is started or not is judged, and the operation speed data information can be determined according to whether the operation speed data information is collected or not in the speed test configuration information. Optionally, under the condition that the current operation is determined to be the starting operation associated with the page to be started, and the test option of the page to be started associated with the current operation is started, it is determined that the speed test needs to be performed on the page to be started.
Further, under the condition that the number of the starting operations associated with the page to be tested is at least two, whether the current operation is the starting operation associated with the page to be tested is judged. For example, the current operation is to click an icon of an "XX browser icon", and the determining, according to the operation information in the speed test configuration information, that the starting operation associated with the page to be tested includes clicking the icon of the "XX browser" and clicking "search for the special local product XX", and then the current operation is determined to be the starting operation associated with the page to be tested, and at this time, it can be stated that the page to be started associated with the current operation is a front page of the page to be tested. Under the condition that the current operation is determined to be the starting operation associated with the page to be tested, whether the test option of the page to be started associated with the current operation is started can be determined according to whether the speed data information of the operation is collected in the speed test configuration information; and under the condition that the current operation is determined to be the starting operation associated with the page to be tested and the test option of the page to be started associated with the current operation is started, determining that the speed test needs to be carried out on the page to be started.
Further, when it is determined that the current operation is the starting operation associated with the page to be started, but the test option of the page to be started associated with the current operation is closed, that is, the test option of the "search" page associated with the operation step of "clicking the XX browser icon" is closed, it is determined that the speed test is not required to be performed on the page to be started.
S203, under the condition that the speed test needs to be carried out on the page to be started, collecting the log information of the page to be started.
And S204, determining the starting speed of the page to be started according to the collected log information.
According to the technical scheme of the embodiment of the application, under the condition that the operation flow for starting the page to be tested comprises a plurality of operation steps, the step separation can be realized by introducing the operation flow into the speed test configuration information; meanwhile, a trigger condition for determining whether the speed test needs to be carried out on the page to be started is added, so that the flexibility of the scheme is greatly improved.
Optionally, the operation flow for starting the page to be tested includes a plurality of operation steps, and under the condition that it is determined according to the speed test configuration information of the user that the user selects to test the speed of the page to be tested and the leading page of the page to be tested, the starting speed of the page to be tested may be directly characterized by the starting speed of the page to be tested itself, for example, the page to be tested is a "friend circle" page, and may be directly characterized by the starting speed of the page to be started (i.e., the page to be tested) associated with the operation of clicking the "friend circle" icon.
In order to meet different requirements, under the condition that the operation flow of the page to be tested includes the current operation and at least one historical operation before the current operation, the starting speed of the page to be tested can be determined according to the starting speed associated with the current operation and the starting speed associated with the at least one historical operation, that is, the starting speed of the page to be tested can also be characterized by the sum of the starting speeds of the pages involved in the operation flow of starting the page to be tested.
For example, the page to be tested is a "special local product XX" page, the operation flow for starting the page to be tested comprises two operation steps of clicking an XX browser icon and clicking and searching the XX special local product, and then the sum of the starting speed of the "search" page associated with the operation step of clicking the XX browser icon and the starting speed of the "XX special local product" page associated with the operation step of clicking and searching the XX special local product can be used as the final starting speed of the page to be tested.
It should be noted that, when the operation flow of the page to be tested includes the current operation and at least one historical operation before the current operation, the starting speed of the page to be tested is determined according to the starting speed associated with the current operation and the starting speed associated with the at least one historical operation, so that different testing requirements of the user are met, and the flexibility of the scheme is further increased.
Fig. 3 is a schematic structural diagram of a speed testing apparatus according to an embodiment of the present application. The method and the device are suitable for testing the starting speed of the application software page. The device may be implemented by software and/or hardware, and optionally, the speed testing device may be a speed testing assistant tool (for example, an application program or a web page, etc.), and the speed testing assistant tool may be integrated in an electronic device, such as an intelligent terminal. As shown in fig. 3, the data processing apparatus includes:
a configuration information obtaining module 301, configured to obtain speed test configuration information of a user;
the test determining module 302 is configured to determine whether a speed test needs to be performed on the page to be started according to the speed test configuration information;
the log information collection module 303 is configured to collect log information of the page to be started if it is determined that the speed test needs to be performed on the page to be started according to the speed test configuration information;
and the starting speed determining module 304 is configured to determine a starting speed of the page to be started according to the collected log information.
According to the technical scheme, under the scene of testing the starting speed of the page, whether the speed test needs to be carried out on the page to be started is determined based on the speed test configuration information of the user, when the speed test needs to be carried out on the page to be started is determined, only the log information of the page to be started is collected, and the starting speed of the page to be started is determined based on the collected log information, so that the efficiency of log analysis is greatly improved, and the normal operation of a system can be ensured. In addition, under the condition that a certain page is opened in multiple modes, the method and the device can realize the sub-scene test by introducing the speed test configuration information of the user, and the flexibility of the scheme is improved.
Illustratively, the test determination module 302 is specifically configured to:
and if the current operation is determined to be the starting operation associated with the page to be tested according to the speed test configuration information, and the test option of the page to be started associated with the current operation is started, determining that the speed test needs to be performed on the page to be started.
For example, the speed test configuration information in this embodiment includes an operation procedure for starting the page to be tested.
For example, in a case that the operation flow of the page to be tested includes a current operation and at least one historical operation before the current operation, the start speed determining module 304 is specifically configured to:
and determining the starting speed of the page to be tested according to the starting speed associated with the current operation and the starting speed associated with at least one historical operation.
Illustratively, the log information collecting module 303 is specifically configured to:
clearing historical log information;
and collecting the log information of the page to be started in the starting process of the page to be started.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 4 shows a schematic block diagram of an example electronic device 400 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 4, the electronic device 400 includes a computing unit 401 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)402 or a computer program loaded from a storage unit 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the electronic device 400 can also be stored. The computing unit 401, ROM 402, and RAM 403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
A number of components in the electronic device 400 are connected to the I/O interface 405, including: an input unit 406 such as a keyboard, a mouse, or the like; an output unit 407 such as various types of displays, speakers, and the like; a storage unit 408 such as a magnetic disk, optical disk, or the like; and a communication unit 409 such as a network card, modem, wireless communication transceiver, etc. The communication unit 409 allows the electronic device 400 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
Computing unit 401 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 401 executes the respective methods and processes described above, such as the speed test method. For example, in some embodiments, the speed testing method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 408. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 400 via the ROM 402 and/or the communication unit 409. When the computer program is loaded into RAM 403 and executed by computing unit 401, one or more steps of the speed testing method described above may be performed. Alternatively, in other embodiments, the computing unit 401 may be configured to perform the speed test method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), blockchain networks, and the internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (13)

1. A speed testing method, comprising:
acquiring speed test configuration information of a user;
if the speed test needs to be carried out on the page to be started according to the speed test configuration information, collecting log information of the page to be started;
and determining the starting speed of the page to be started according to the collected log information.
2. The method of claim 1, wherein determining that a speed test needs to be performed on the page to be started according to the speed test configuration information comprises:
and if the current operation is determined to be the starting operation associated with the page to be tested according to the speed test configuration information and the test option of the page to be started associated with the current operation is started, determining that the speed test needs to be performed on the page to be started.
3. The method of claim 2, wherein the speed test configuration information includes an operational flow to launch the page to be tested.
4. The method of claim 3, in the case that the operational flow of the page to be tested includes a current operation and at least one historical operation prior to the current operation, the method further comprising:
and determining the starting speed of the page to be tested according to the starting speed associated with the current operation and the starting speed associated with the at least one historical operation.
5. The method of claim 1, wherein collecting log information for the page to be launched comprises:
clearing historical log information;
and collecting the log information of the page to be started in the starting process of the page to be started.
6. A speed testing apparatus comprising:
the configuration information acquisition module is used for acquiring the speed test configuration information of a user;
the test determining module is used for determining whether the speed test is required to be carried out on the page to be started according to the speed test configuration information;
the log information collection module is used for collecting the log information of the page to be started if the speed test needs to be carried out on the page to be started according to the speed test configuration information;
and the starting speed determining module is used for determining the starting speed of the page to be started according to the collected log information.
7. The apparatus of claim 6, wherein the test determination module is specifically configured to:
and if the current operation is determined to be the starting operation associated with the page to be tested according to the speed test configuration information and the test option of the page to be started associated with the current operation is started, determining that the speed test needs to be performed on the page to be started.
8. The apparatus of claim 7, wherein the speed test configuration information comprises an operational flow to launch the page to be tested.
9. The apparatus of claim 8, wherein in a case that the operation flow of the page to be tested includes a current operation and at least one historical operation before the current operation, the start speed determining module is specifically configured to:
and determining the starting speed of the page to be tested according to the starting speed associated with the current operation and the starting speed associated with the at least one historical operation.
10. The apparatus of claim 6, wherein the log information collection module is specifically configured to:
clearing historical log information;
and collecting the log information of the page to be started in the starting process of the page to be started.
11. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the speed testing method of any one of claims 1-5.
12. A non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to execute the speed testing method according to any one of claims 1-5.
13. A computer program product comprising a computer program which, when executed by a processor, implements a speed testing method according to any one of claims 1-5.
CN202110104057.6A 2021-01-26 2021-01-26 Speed testing method, device, equipment and storage medium Active CN112765033B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110104057.6A CN112765033B (en) 2021-01-26 2021-01-26 Speed testing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110104057.6A CN112765033B (en) 2021-01-26 2021-01-26 Speed testing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112765033A true CN112765033A (en) 2021-05-07
CN112765033B CN112765033B (en) 2024-08-02

Family

ID=75707482

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110104057.6A Active CN112765033B (en) 2021-01-26 2021-01-26 Speed testing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112765033B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115061902A (en) * 2022-05-09 2022-09-16 上海钧正网络科技有限公司 Page loading time testing method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103646090A (en) * 2013-12-16 2014-03-19 百度在线网络技术(北京)有限公司 Application program recommendation method and optimization method and device for program starting speeds
CN105320602A (en) * 2015-12-04 2016-02-10 广东欧珀移动通信有限公司 Testing method and device for application starting speed
CN106681926A (en) * 2017-01-05 2017-05-17 网易(杭州)网络有限公司 Method and device for testing webpage performances
CN109902004A (en) * 2019-02-18 2019-06-18 深圳壹账通智能科技有限公司 A kind of test method and device of application program link channel
CN111597111A (en) * 2020-04-27 2020-08-28 五八有限公司 Application program starting speed monitoring method and device
CN111858360A (en) * 2020-07-23 2020-10-30 百度在线网络技术(北京)有限公司 Applet test method, device, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103646090A (en) * 2013-12-16 2014-03-19 百度在线网络技术(北京)有限公司 Application program recommendation method and optimization method and device for program starting speeds
CN105320602A (en) * 2015-12-04 2016-02-10 广东欧珀移动通信有限公司 Testing method and device for application starting speed
CN106681926A (en) * 2017-01-05 2017-05-17 网易(杭州)网络有限公司 Method and device for testing webpage performances
CN109902004A (en) * 2019-02-18 2019-06-18 深圳壹账通智能科技有限公司 A kind of test method and device of application program link channel
CN111597111A (en) * 2020-04-27 2020-08-28 五八有限公司 Application program starting speed monitoring method and device
CN111858360A (en) * 2020-07-23 2020-10-30 百度在线网络技术(北京)有限公司 Applet test method, device, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115061902A (en) * 2022-05-09 2022-09-16 上海钧正网络科技有限公司 Page loading time testing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112765033B (en) 2024-08-02

Similar Documents

Publication Publication Date Title
CN112559086B (en) Applet page rendering method and device, electronic equipment and readable storage medium
CN114389969B (en) Method and device for testing client, electronic equipment and storage medium
CN113360918A (en) Vulnerability rapid scanning method, device, equipment and storage medium
CN112765033B (en) Speed testing method, device, equipment and storage medium
CN112767935B (en) Awakening index monitoring method and device and electronic equipment
CN113641544A (en) Method, apparatus, device, medium and product for detecting application status
CN117609031A (en) Multi-core on-chip program debugging method, device, equipment and storage medium
CN115695397B (en) Communication method, device, equipment and medium based on JSON file
CN115687406B (en) Sampling method, device, equipment and storage medium for call chain data
CN116414608A (en) Abnormality detection method, abnormality detection device, abnormality detection apparatus, and storage medium
CN114116688B (en) Data processing and quality inspection method and device and readable storage medium
CN114417886A (en) Hotspot data processing method and device, electronic equipment and storage medium
CN113554062A (en) Training method, device and storage medium of multi-classification model
CN114475631B (en) Driving data processing method, device, automatic driving vehicle medium and product
CN112783507B (en) Data stream guiding playback method and device, electronic equipment and readable storage medium
CN118055051B (en) Interface communication rate detection control method, device, equipment and medium
CN116244413B (en) New intention determining method, apparatus and storage medium
JP7349012B2 (en) Methods, devices and electronic devices for monitoring wake-up indicators
CN118568006A (en) Application interface calling method, device, equipment, storage medium and program product
CN115756993A (en) System operation detection method and device, electronic equipment and storage medium
CN115904899A (en) Operation record generation method, operation record acquisition method, operation record generation device, operation record acquisition device and operation record acquisition medium
CN114399333A (en) Method, device, equipment and storage medium for detecting medium information releasing effect
CN117827194A (en) Method, apparatus, device and storage medium for inspecting elements
CN118520092A (en) Complaint event processing method and device, electronic equipment and storage medium
CN118567966A (en) Data competition monitoring method and device, electronic equipment and storage medium

Legal Events

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