Method and device for testing downloading speed of webpage opening resources and medium

By obtaining the timestamp information and resource size of each download stage of the web page, and calculating the average download speed of the web page, the problem of low dynamic resource loading and detection accuracy in the existing technology is solved, and a more accurate web page loading speed detection is achieved.

CN119996261APending Publication Date: 2025-05-13JUQING NETWORK TECH (JINAN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510094599.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-21
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

Existing web page performance testing tools cannot simulate dynamic resource loading behavior in complex environments in real time, and cannot provide detailed information for each resource download stage, resulting in low accuracy in web page loading speed detection.

Method used

By determining the web page to be detected based on the current operation information, and using the preset API to obtain the timestamp information of each download stage, the overall time-consuming of opening the web page is calculated. At the same time, the loading resource information is classified and statistics are carried out, the resource sizes of various resources are obtained through network requests, and the average download speed is calculated.

Benefits of technology

It realizes a critical stage of capturing the actual loading of web page content more accurately, improves the accuracy of web page loading speed detection, and can better reflect the loading speed actually perceived by users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996261A_ABST
    Figure CN119996261A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a method and equipment for testing the downloading speed of webpage opening resources and a medium, relates to the technical field of network speed measurement, and is used for solving the problem that a current traditional webpage performance testing tool is usually limited to static analysis and cannot simulate a dynamic resource loading behavior in a complex environment in real time. The method comprises the following steps: determining a to-be-detected webpage based on current operation information, acquiring timestamp information of each downloading stage of the to-be-detected webpage according to a preset API (Application Program Interface) corresponding to the to-be-detected webpage, and determining the overall opening time consumption of the to-be-detected webpage based on the timestamp information; carrying out classified statistics on the loading resource information of the to-be-detected webpage so as to carry out network requests on URLs of various resources and obtain the resource sizes of the various resources; and determining the average downloading speed of the to-be-detected webpage according to the resource sizes of the various resources and the overall opening time consumption of the to-be-detected webpage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network engineering technology, and in particular to a method, device and medium for testing the download speed of opening resources on a web page. Background Art

[0002] With the rapid development of Internet technology, the richness and interactivity of web page content have been increasingly enhanced. Web pages contain a large number of resources such as pictures, videos, scripts, style sheets, etc. When users visit a web page, these resources need to be downloaded from the server to the local computer before they can be correctly parsed and presented by the browser. Therefore, the loading speed of a web page, that is, the time required for users to click on a link until the web page is fully presented, has become one of the important indicators for measuring user experience.

[0003] The loading speed of a web page is affected by many factors, including but not limited to the response speed of the server, network bandwidth, resource size, web page structure, browser parsing efficiency, etc. Among them, the download speed of resources is the key factor that directly affects the loading speed of a web page. Current traditional web performance testing tools are often limited to static analysis and cannot simulate dynamic resource loading behavior in a complex environment in real time. In addition, current testing methods usually only focus on the overall loading time of a web page, but cannot provide detailed information on each resource download stage, ignoring the relationship between resource size and download speed, resulting in low accuracy in detecting the loading speed of a web page. Summary of the invention

[0004] In order to solve the above technical problems, one or more embodiments of the present specification provide a method, device and medium for testing the download speed of opening resources on a web page.

[0005] One or more embodiments of this specification adopt the following technical solutions:

[0006] One or more embodiments of the present specification provide a method for testing the download speed of opening resources on a web page, the method comprising:

[0007] Determine a web page to be detected based on the current operation information, obtain timestamp information of each downloading stage of the web page to be detected according to a preset API corresponding to the web page to be detected, and determine the overall time consumption of opening the web page to be detected based on the timestamp information;

[0008] Classify and count the resource information loaded by the web page to be detected, so as to make network requests for URLs of various resources and obtain the resource sizes of various resources;

[0009] The average download speed of the web page to be detected is determined according to the resource size of the various resources and the overall time consumed to open the web page to be detected.

[0010] Optionally, in one or more embodiments of the present specification, obtaining timestamp information of each downloading stage of the web page to be detected according to a preset API corresponding to the web page to be detected, so as to determine the overall time consumed to open the web page to be detected based on the timestamp information, specifically includes:

[0011] Obtaining the timestamp information of each downloading stage of the web page to be detected according to the preset API corresponding to the web page to be detected; wherein the timestamp information includes: a timestamp node and timestamp data;

[0012] Determine a loading start timestamp based on the timestamp node, and match the timestamp node based on a preset node name to determine a loading end timestamp;

[0013] The timestamp data corresponding to the loading end timestamp and the loading start timestamp are subtracted to determine the overall time consumption of opening the web page to be detected.

[0014] Optionally, in one or more embodiments of the present specification, classifying and counting the loaded resource information of the web page to be detected specifically includes:

[0015] Identify the suffix of each loaded resource information of the web page to be detected, and determine whether the suffix is ​​within the preset resource range;

[0016] If it is not within the preset resource range, filtering the loaded resource information;

[0017] If it is within the preset resource range, the loaded resource information is classified based on the resource type corresponding to the suffix name.

[0018] Optionally, in one or more embodiments of the present specification, performing a network request on the URL of each resource to obtain the resource size of each resource specifically includes:

[0019] Initiate a preset first type of network request for URLs of various resources; wherein the preset first type of network request is a HEAD request;

[0020] Determining whether the preset first type of network request is successful based on the response information of the preset first type of network request;

[0021] If yes, obtaining header information of each type of resources according to the preset first type of network request, so as to determine the resource size of each type of resources according to the value corresponding to the specified unit of the header information;

[0022] If not, the preset first type of network request is downgraded, a preset second type of network request is obtained, and the resource size of each type of resource is determined according to the response information of the preset second type of network request; wherein the preset second type of network request is a GET request.

[0023] Optionally, in one or more embodiments of the present specification, performing a network request on the URL of each resource to obtain the resource size of each resource specifically includes:

[0024] Obtaining performance data of the current processor to determine the number of concurrent initial network requests based on a matching relationship between the performance data and historical request records; wherein the performance data includes: CPU usage, core frequency, cache hit rate, and instruction execution efficiency;

[0025] Determine the priority of each resource based on matching the resource type of each resource with the preset resource priority table;

[0026] Based on the concurrent number of initial network requests and the priorities of various resources, grouping network requests for URLs of various resources to obtain multiple groups of network requests;

[0027] Comparing the performance data with preset performance data thresholds in real time to determine one or more change performance data exceeding the preset performance data thresholds, and determining the operation state of the current processor according to the change direction and change amount of the change performance data; wherein the operation state includes: low load state, high load state, and normal state;

[0028] If it is determined that the operating state is a low-load state, the initial concurrent number of network requests is incremented based on a preset ratio, so as to update the next group of network requests according to the updated concurrent number of network requests;

[0029] If it is determined that the operating state is a high-load state, the initial concurrent number of network requests is decreased based on a preset ratio, so as to update the next group of network requests according to the updated concurrent number of network requests;

[0030] The resource sizes of various types of resources are determined according to the response information of the network request.

[0031] Optionally, in one or more embodiments of the present specification, after determining the average download speed of the web page to be detected according to the resource size of the various resources and the overall time consumed to open the web page to be detected, the method further includes:

[0032] Comparing the average download speed of the web page to be detected with the benchmark speed of the web page to be detected to obtain a comparison result;

[0033] If it is determined based on the comparison results within the preset period that the average download speed is lower than the reference speed, then obtaining a web page of the same type corresponding to the network to be detected;

[0034] The average download speed of the web page to be detected is evaluated according to the average download speed of the web pages of the same type, so as to send the evaluation result to the user terminal corresponding to the network to be detected.

[0035] Optionally, in one or more embodiments of the present specification, determining the web page to be detected based on the current operation information specifically includes:

[0036] Acquire current user operation information of the user terminal based on the monitoring event, and determine whether the current user operation information corresponds to a webpage opening operation according to the operation type and operation object of the current user operation information;

[0037] If yes, generating a detection confirmation window for the web page opening operation based on a preset script;

[0038] According to the confirmation information of the current user terminal on the detection confirmation window, it is determined whether the web page corresponding to the web page opening operation is a web page to be detected.

[0039] Optionally, in one or more embodiments of the present specification, determining the average download speed of the web page to be detected according to the resource size of the various resources and the overall time consumed to open the web page to be detected specifically includes:

[0040] Accumulating the resource sizes of various resources to determine the total size of the loaded resources of the web page to be detected;

[0041] Based on the ratio of the total size of the loaded resources to the overall time consumed in opening the web page to be detected, the average download speed of the web page to be detected is determined.

[0042] One or more embodiments of the present specification provide a device for testing the download speed of opening resources on a web page, the device comprising:

[0043] at least one processor; and,

[0044] a memory communicatively connected to the at least one processor; wherein,

[0045] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform any of the above methods.

[0046] One or more embodiments of the present specification provide a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured to execute any of the above-described methods.

[0047] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects:

[0048] By obtaining the timestamp information of each download stage through the preset API corresponding to the web page to be tested to determine the overall opening time, it is possible to more accurately capture the key stage of the actual loading completion of the web page content, so that the calculated overall opening time helps the subsequent calculated download speed to better reflect the loading speed actually perceived by the user. Through the URL address in the resource information, the network resource is requested again, and the size of the resource is obtained from the data returned for statistics, avoiding the problem that the existing acquisition method cannot obtain the size of all resources. In addition, by collecting through the requested URL and then resending the request, obtaining the resource size also realizes the process of dynamic resource loading, avoiding the problem that traditional web page performance testing tools are limited to static analysis, and improving the accuracy of web page testing. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the technical solutions in the embodiments of this specification or the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art description. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. In the drawings:

[0050] Figure 1 A flowchart of a method for testing the download speed of opening resources on a web page provided in an embodiment of this specification;

[0051] Figure 2 An overall logic diagram of a download speed test for opening resources on a web page provided in an embodiment of this specification;

[0052] Figure 3 A schematic diagram of the structure of a device for testing the download speed of opening resources on a web page provided in an embodiment of this specification;

[0053] Figure 4 A schematic diagram of the structure of a non-volatile storage medium provided in an embodiment of this specification. DETAILED DESCRIPTION

[0054] The embodiments of this specification provide a method, device and medium for testing the download speed of opening resources on a web page.

[0055] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.

[0056] like Figure 1 As shown, the embodiment of this specification provides a schematic flow chart of a method for testing the download speed of opening resources on a web page. Figure 1 It can be seen that in one or more embodiments of the present specification, a method for testing the download speed of opening resources on a web page includes the following steps:

[0057] S101: determining a web page to be detected based on current operation information, obtaining timestamp information of each downloading stage of the web page to be detected according to a preset API corresponding to the web page to determine the overall time consumption of opening the web page to be detected based on the timestamp information.

[0058] In this specification, based on the user's first operation, a web page is opened until the web page is loaded. By counting the time and resource size spent in each stage of the web page opening process, the corresponding result of opening the web page can be obtained. In order to obtain the time spent in each stage, the embodiment of this specification will first determine the web page to be detected according to the current operation information, and then obtain the timestamp information of each download stage of the web page to be detected according to the preset API corresponding to the web page to be detected, so as to determine the overall time spent on opening the web page to be detected according to the timestamp information.

[0059] Specifically, in one or more embodiments of the present specification, determining a web page to be detected based on current operation information specifically includes the following process:

[0060] First, the current user operation information of the user terminal is obtained based on the monitoring event, and then according to the operation type and operation object of the current user operation information, it is determined whether the current user operation information corresponds to the web page opening operation. If so, a detection confirmation window of the web page opening operation is generated according to the preset script, and then according to the confirmation information of the current user terminal on the detection confirmation window, it is determined whether the web page corresponding to the web page opening operation is the web page to be detected.

[0061] Specifically, in one or more embodiments of the present specification, obtaining the timestamp information of each downloading stage of the web page to be detected according to the preset API corresponding to the web page to be detected, so as to determine the overall time consumption of opening the web page to be detected based on the timestamp information, specifically includes the following process:

[0062] First, the timestamp information of each downloading stage of the web page to be detected is obtained according to the preset API corresponding to the web page to be detected. It should be noted that the timestamp information includes: timestamp node and timestamp data. Then, since the timestamps of each stage in the process of opening and loading the web page are obtained through the API, most of the time-consuming operations in this process are before the designated marking node, that is, the loading start timestamp is determined according to the timestamp node, and the loading end timestamp is determined based on the preset node name and the timestamp node. Then, the loading end timestamp is subtracted from the timestamp data corresponding to the loading start timestamp, that is, the web page loading start timestamp and the loading end timestamp are taken, and the two timestamps are subtracted to obtain the overall opening time of the web page to be detected. In this process, the overall opening time is calculated by obtaining the timestamp information of each downloading stage of the web page. Since multiple timestamp nodes are taken into account, rather than simply using general start and end times, the time consumption of the web page at each stage in the loading process can be more accurately determined. In particular, focusing on most of the time-consuming operations before the specified marking node can more accurately capture the key stage of the actual loading of the web page content, so that the calculated overall opening time can better reflect the web page loading efficiency actually perceived by the user.

[0063] S102: Classify and count the resource information loaded by the web page to be detected, so as to make network requests for URLs of various resources and obtain resource sizes of various resources.

[0064] In order to clearly understand the composition of different types of resources in a web page, determine the size of each type of resource, and then facilitate the subsequent summary and calculation of resource loading time. In the embodiment of this specification, the loading resource information of the web page to be tested will be classified and counted, so as to make network requests for the URLs of various resources and obtain the resource sizes of various resources. Since some resources contain resource size information in the loading resource information obtained according to the API, there are still many resources that do not obtain large resource size information here. Therefore, this application re-requests the network resource through the URL address in the resource information, calculates the size of the resource from the data returned, and performs statistics, avoiding the problem that the existing acquisition method cannot obtain the size of all resources. And collecting through the requested URL, and then resending the request, obtaining the resource size also realizes the process of dynamic resource loading, avoiding the problem that traditional web page performance testing tools are limited to static analysis, and improving the accuracy of web page testing.

[0065] Specifically, in one or more embodiments of the present specification, classification and statistics of the loaded resource information of the web page to be detected specifically include the following process:

[0066] First, identify the suffix of each loaded resource information of the web page to be detected, and determine whether the suffix is ​​within the preset resource range. If it is determined that it is not within the preset resource range, then filter out the loaded resource information. If it is within the preset resource range, then classify the loaded resource information according to the resource type corresponding to the suffix. For example, when the preset resource range is: picture type resources, video type resources, font type resources, then the resources that are not in the above classification will be filtered.

[0067] Furthermore, in one or more embodiments of the present specification, a network request is made to the URL of each resource to obtain the resource size of each resource, which specifically includes the following process:

[0068] First, if Figure 2 As shown, a preset first type of network request will be initiated for the URL of each type of resource; wherein, it should be noted that the preset first type of network request is a HEAD request. Then, it can be determined whether the preset first type of network request is successful based on the response information based on the preset first type of network request. If successful, then the header information of each type of resource can be obtained according to the preset first type of network request, and the resource size of each type of resource can be determined according to the numerical value corresponding to the designated unit of the header information. If the preset first type of network request is unsuccessful, then the preset first type of network request needs to be downgraded, and the preset second type of network request is obtained, and the resource size of each type of resource is determined according to the response information of the preset second type of network request, wherein the preset second type of network request is a GET request.

[0069] The process begins with the use of the first type of network request, the HEAD request, which only requests the header information of the resource, rather than obtaining the entity content of the entire resource like the GET request. This means that during the network transmission process, the amount of data transmitted is relatively small, and a quick response can be obtained, saving network bandwidth and the time cost of transmitting a large amount of unnecessary data between the server and the client. Especially when a large number of web resources need to be detected or when facing many resource types, the initial resource size detection task can be completed efficiently. Only when the HEAD request is unsuccessful will it be downgraded to a GET request. This downgrade strategy avoids the high time cost caused by using the GET request method with a larger data transmission volume in all cases. It also provides a reliable data foundation for subsequent related work such as web page performance analysis based on resource size.

[0070] Furthermore, in another embodiment of the present specification, performing a network request on the URL of each resource to obtain the resource size of each resource can also be achieved in the following manner:

[0071] First, the performance data of the current processor is obtained, so as to determine the initial concurrent number of network requests based on the matching relationship between the performance data and the historical request records. Among them, it should be noted that the performance data includes: CPU usage, core frequency, cache hit rate, and instruction execution efficiency. Then, the priority of each resource is determined according to the resource type of each resource and the preset resource priority table. According to the initial concurrent number of network requests and the priority of each resource, the URL of each resource is grouped to obtain multiple groups of network requests. Then, the performance data is compared with each preset performance data threshold in real time to determine one or more variable performance data exceeding the preset performance data threshold, and then the operating state of the current processor is determined according to the change direction and change amount of the variable performance data. Among them, it can be understood that the operating state includes: low load state, high load state, and normal state. If the operating state is determined to be a low load state, then the initial concurrent number of network requests needs to be increased based on the preset ratio to update the next group of network requests according to the updated concurrent number of network requests. If the running state is determined to be a high-load state, then the initial concurrent number of network requests needs to be reduced based on the preset ratio, so as to update the next set of network requests according to the updated concurrent number of network requests. Then, the resource size of each type of resource is determined based on the response information of the network request.

[0072] In the above method, the actual performance state of the processor is fully considered by obtaining the performance data of the current processor and combining it with the historical request records to determine the process of the initial concurrent number of network requests, avoiding the situation where excessive requests lead to processor overload or too few requests lead to inefficient resource acquisition, so that the concurrent number of network requests is adapted to the processor performance, laying the foundation for efficient acquisition of resource size from the beginning. Then, in the process of network request, the performance data of the processor is monitored in real time and compared with the preset performance data threshold, and the concurrent number of network requests is dynamically adjusted according to the running state of the processor. In the low-load state, the concurrent number is increased, and in the high-load state, the concurrent number is decreased, which can flexibly optimize the network request strategy according to the real-time load of the processor, maximize the use of processor resources, and avoid excessive impact on processor performance, so as to ensure that the entire resource size acquisition process can be carried out stably and efficiently. In addition, the URLs of various resources are grouped to obtain multiple groups of network requests in combination with the initial concurrent number of network requests and the priority of various resources. This grouping method comprehensively considers two important factors, processor performance and resource priority, so that network requests can be carried out in an orderly manner, avoiding resource competition and inefficiency problems that may be caused by irregular requests.

[0073] S103: Determine an average download speed of the web page to be detected according to the resource sizes of the various resources and the overall time consumed to open the web page to be detected.

[0074] After obtaining the resource sizes of various resources and the overall opening time of the web page to be detected based on the above steps S101-S102, the average download speed of the web page to be detected can be determined based on the ratio of the total resource size to the overall opening time after summarizing the resource sizes of various resources.

[0075] Specifically, in one or more embodiments of the present specification, the average download speed of the web page to be detected is determined according to the resource size of each type of resource and the overall time consumed for opening the web page to be detected, which specifically includes the following process: First, the resource size of each type of resource is accumulated to determine the total size of the loaded resources of the web page to be detected. Then, based on the ratio of the total size of the loaded resources to the overall time consumed for opening the web page to be detected, the average download speed of the web page to be detected is determined. That is, web page download speed = total resource size (MB) / loading time consumed (seconds), for example, the entire web page takes 1 second to open, and the resource size of the entire web page is 10MB, then the calculated average download speed of the resources opened by this web page is 10MB / s. In this method, the calculation is based on the total size of all loaded resources of the web page to be detected, and it does not only focus on the download situation of a certain type of specific resource or a certain local area. This means that the speed performance of the entire web page during the download process can be fully reflected, covering the comprehensive download situation of various types of resources such as images, scripts, style sheets, etc. in the web page, so that the user can have an intuitive feeling about the overall download speed of the web page, which helps to accurately evaluate the performance level of the web page in network transmission.

[0076] Further, in one or more embodiments of the present specification, after determining the average download speed of the web page to be detected according to the resource size of each resource and the overall time consumed to open the web page to be detected, the method further includes the following process:

[0077] First, the average download speed of the web page to be detected is compared with the benchmark speed of the web page to be detected to obtain the comparison result. If it can be determined that the average download speed is lower than the benchmark speed according to the comparison results in the preset period, then the web page of the same type corresponding to the network to be detected is obtained at this time, so as to evaluate the average download speed of the web page to be detected according to the average download speed of the web page of the same type, and send the evaluation result to the user end corresponding to the network to be detected. For example, in a certain application scenario, in a continuous 5-hour detection, the average download speeds obtained are 400KB / s, 380KB / s, 420KB / s, 350KB / s, and 410KB / s respectively. After comparing these average download speeds with the benchmark speed of 500KB per second, it is found that each comparison result is that the average download speed is lower than the benchmark speed. Therefore, other web pages of the same type can be selected for detection. If the average download speeds of web pages of the same type are as follows: the average download speed of web page A is 550KB / s; the average download speed of web page B is 600KB / s; the average download speed of web page C is 580KB / s. By comparing the average download speed of these same type of web pages with the average download speed of the web page to be detected, it can be seen that the download speed of the web page to be detected is obviously slow, and there are certain performance problems. At this time, the comparison result can be sent to the user end corresponding to the network to be detected, so as to optimize the web page to be detected.

[0078] like Figure 3 As shown, the embodiment of this specification provides a structural schematic diagram of a download speed test device for opening resources on a web page. Figure 3 It can be seen that in one or more embodiments of the present specification, a download speed test device for opening resources on a web page includes:

[0079] at least one processor; and,

[0080] a memory communicatively connected to the at least one processor; wherein,

[0081] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform any of the above methods.

[0082] like Figure 4 As shown, the present specification provides a schematic diagram of the structure of a non-volatile storage medium. Figure 4 It can be seen that in one or more embodiments of the present specification, a non-volatile storage medium stores computer executable instructions 401, and the computer executable instructions 401 can: execute any of the above-mentioned methods.

[0083] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0084] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0085] The above description is only one or more embodiments of this specification and is not intended to limit this specification. For those skilled in the art, one or more embodiments of this specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of this specification shall be included in the scope of the claims of this specification.

Claims

1. A method for testing the download speed of opening resources on a web page, characterized in that: The method comprises: Determine a web page to be detected based on the current operation information, obtain timestamp information of each downloading stage of the web page to be detected according to a preset API corresponding to the web page to be detected, and determine the overall time consumption of opening the web page to be detected based on the timestamp information; Classify and count the resource information loaded by the web page to be detected, so as to make network requests for URLs of various resources and obtain the resource sizes of various resources; The average download speed of the web page to be detected is determined according to the resource size of the various resources and the overall time consumed to open the web page to be detected.

2. A method for testing the download speed of opening resources on a web page according to claim 1, characterized in that: Acquiring timestamp information of each downloading stage of the web page to be detected according to a preset API corresponding to the web page to be detected, so as to determine the overall time consumption of opening the web page to be detected based on the timestamp information, specifically includes: Obtaining the timestamp information of each downloading stage of the web page to be detected according to the preset API corresponding to the web page to be detected; wherein the timestamp information includes: a timestamp node and timestamp data; Determine a loading start timestamp based on the timestamp node, and match the timestamp node based on a preset node name to determine a loading end timestamp; The timestamp data corresponding to the loading end timestamp and the loading start timestamp are subtracted to determine the overall time consumption of opening the web page to be detected.

3. A method for testing the download speed of opening resources on a web page according to claim 1, characterized in that: Classifying and counting the resource information loaded by the web page to be detected, specifically including: Identify the suffix of each loaded resource information of the web page to be detected, and determine whether the suffix is ​​within the preset resource range; If it is not within the preset resource range, filtering the loaded resource information; If it is within the preset resource range, the loaded resource information is classified based on the resource type corresponding to the suffix name.

4. A method for testing the download speed of opening resources on a web page according to claim 1, characterized in that: Make network requests for the URLs of various resources to obtain the resource sizes of various resources, including: Initiate a preset first type of network request for URLs of various resources; wherein the preset first type of network request is a HEAD request; Determining whether the preset first type of network request is successful based on the response information of the preset first type of network request; If yes, obtaining header information of each type of resources according to the preset first type of network request, so as to determine the resource size of each type of resources according to the value corresponding to the specified unit of the header information; If not, the preset first type of network request is downgraded, a preset second type of network request is obtained, and the resource size of each type of resource is determined according to the response information of the preset second type of network request; wherein the preset second type of network request is a GET request.

5. A method for testing the download speed of opening resources on a web page according to claim 1, characterized in that: Make network requests for the URLs of various resources to obtain the resource sizes of various resources, including: Obtaining performance data of the current processor to determine the number of concurrent initial network requests based on a matching relationship between the performance data and historical request records; wherein the performance data includes: CPU usage, core frequency, cache hit rate, and instruction execution efficiency; Determine the priority of each resource based on matching the resource type of each resource with the preset resource priority table; Based on the concurrent number of initial network requests and the priorities of various resources, grouping network requests for URLs of various resources to obtain multiple groups of network requests; Comparing the performance data with preset performance data thresholds in real time to determine one or more change performance data exceeding the preset performance data thresholds, and determining the operation state of the current processor according to the change direction and change amount of the change performance data; wherein the operation state includes: low load state, high load state, and normal state; If it is determined that the operating state is a low-load state, the initial concurrent number of network requests is incremented based on a preset ratio, so as to update the next group of network requests according to the updated concurrent number of network requests; If it is determined that the operating state is a high-load state, the initial concurrent number of network requests is decreased based on a preset ratio, so as to update the next group of network requests according to the updated concurrent number of network requests; The resource sizes of various types of resources are determined according to the response information of the network request.

6. A method for testing the download speed of opening a webpage resource according to claim 1, characterized in that: After determining the average download speed of the web page to be detected according to the resource size of the various resources and the overall time consumed to open the web page to be detected, the method further includes: Comparing the average download speed of the web page to be detected with the benchmark speed of the web page to be detected to obtain a comparison result; If it is determined based on the comparison results within the preset period that the average download speed is lower than the reference speed, then obtaining a web page of the same type corresponding to the network to be detected; The average download speed of the web page to be detected is evaluated according to the average download speed of the web pages of the same type, so as to send the evaluation result to the user terminal corresponding to the network to be detected.

7. A method for testing the download speed of opening a webpage resource according to claim 1, characterized in that: Determine the web page to be detected based on the current operation information, including: Acquire current user operation information of the user terminal based on the monitoring event, and determine whether the current user operation information corresponds to a webpage opening operation according to the operation type and operation object of the current user operation information; If yes, generating a detection confirmation window for the web page opening operation based on a preset script; According to the confirmation information of the current user terminal on the detection confirmation window, it is determined whether the web page corresponding to the web page opening operation is a web page to be detected.

8. A method for testing the download speed of opening a webpage resource according to claim 1, characterized in that: Determining the average download speed of the web page to be detected according to the resource size of the various resources and the overall time consumed to open the web page to be detected, specifically includes: Accumulating the resource sizes of various resources to determine the total size of the loaded resources of the web page to be detected; Based on the ratio of the total size of the loaded resources to the overall time consumed in opening the web page to be detected, the average download speed of the web page to be detected is determined.

9. A download speed test device for opening a webpage resource, comprising: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can: execute any of the methods described in claims 1-8.

10. A non-volatile storage medium storing computer executable instructions, characterized in that: The computer executable instructions can: execute the method described in any one of claims 1 to 8.