A page performance testing method, device, electronic device and storage medium

By receiving test requests from different areas and calling performance testing tools, it solves the problem of integrating performance test results of the same page application in different areas, achieves comprehensive system evaluation and optimization of the page application, and reduces deployment costs and optimization difficulty.

CN114371969BActive Publication Date: 2024-08-30TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210003160.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-04
Publication Date
2024-08-30
Estimated Expiration
2042-01-04

AI Technical Summary

Technical Problem

The existing technology is difficult to integrate the performance test results of the same page application in different areas, resulting in the inability to conduct comprehensive and systematic evaluation and targeted optimization, which increases the deployment cost and optimization difficulty.

Method used

By receiving test requests from different areas, determine the target calling services, and use these services to call performance testing tools, obtain and save the performance test results of each area, and achieve comprehensive system evaluation and optimization of page applications.

Benefits of technology

It realizes the integration of multi-region performance test results for the same page application, supports comprehensive system evaluation and targeted optimization, and reduces deployment costs and optimization difficulty.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114371969B
    Figure CN114371969B
Patent Text Reader

Abstract

The present application provides a page performance testing method, device, electronic device and storage medium, and relates to the field of computer technology. The method is based on pages to be tested from at least two regions of the same page application, and according to the target region identifiers of the at least two regions, combined with the correspondence between the region identifiers and the calling services, the corresponding target calling services are determined respectively, and based on the obtained at least two target calling services, the corresponding performance testing tools are called respectively, and the corresponding pages to be tested are subjected to performance testing, and the corresponding performance testing results are obtained and saved. In this way, the performance test results corresponding to multiple regions can be integrated, the page application can be comprehensively and systematically evaluated, the performance of the page application can be optimized in a targeted manner, and the performance of the page application can be comprehensively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a page performance testing method, device, electronic device, and storage medium. Background Art

[0002] During the development and online use phases of web applications, performance testing of web applications is required to obtain performance test results. After obtaining the performance test results, developers can optimize the performance of web applications based on the various performance indicators in the performance test results, thereby improving the user experience and the promotion of web applications.

[0003] Currently, when performing performance testing on a web application, the Uniform Resource Locator (URL) address of each page to be tested in the web application is usually entered into the performance optimization testing tool lighthouse in sequence. In this way, lighthouse can be used to call the corresponding page to be tested through the URL address for performance testing, and multiple important performance indicators of the page to be tested can be obtained.

[0004] However, the same page application will generate different pages to be tested when running in different regions. Through one lighthouse, you can only perform performance tests on the pages to be tested associated with one region. If you want to perform performance tests on the pages to be tested associated with another region, you need to redeploy a lighthouse in another region. This will greatly increase the deployment cost of the lighthouse.

[0005] Furthermore, for the same web application, the performance test results obtained by deploying lighthouses in different areas cannot be integrated. As a result, it is impossible to conduct a comprehensive and systematic evaluation of the operating status of the above-mentioned web application, and it is impossible to perform targeted optimization of the web application, which is not conducive to improving the performance of the web application. Summary of the invention

[0006] In order to solve the technical problems existing in the related technology, the embodiments of the present application provide a page performance testing method, device, electronic device and storage medium, which can integrate the performance testing of pages in multiple areas separately, and obtain the performance test results, so as to conduct a comprehensive and systematic evaluation of the page application.

[0007] The specific technical solutions provided by the embodiments of this application are as follows:

[0008] A page performance testing method, comprising:

[0009] Receive test requests from at least two regions respectively; each test request includes: a target region identifier of the corresponding region and a link address of a page to be tested, wherein the page to be tested corresponding to different test requests is generated based on the same page application program according to the operation requirements of the corresponding region;

[0010] Based on the target area identifiers of the at least two areas, respectively, and in combination with the correspondence between the area identifiers and the calling services, respectively determine the corresponding target calling services;

[0011] Based on the at least two obtained target calling services, corresponding performance testing tools are respectively called to perform performance testing on corresponding pages to be tested, and corresponding performance testing results are obtained;

[0012] Corresponding to the page application, at least two obtained performance test results are associated and saved.

[0013] A page performance testing method, comprising:

[0014] In response to the performance test operation of the pages to be tested from at least two regions respectively for the same page application, a corresponding test request is sent to the background server; wherein the pages to be tested corresponding to the different test requests are generated based on the same page application according to the operation requirements of the corresponding regions;

[0015] Receiving at least two performance test results returned by the backend server after the backend server performs performance tests on the pages to be tested corresponding to the corresponding areas based on the at least two test requests obtained;

[0016] In response to the operation of displaying data, the at least two performance test results are displayed respectively.

[0017] A page performance testing device, comprising:

[0018] A request receiving module is used to receive test requests from at least two areas respectively; each test request includes: a target area identifier of the corresponding area and a link address of a page to be tested, wherein the page to be tested corresponding to different test requests is generated based on the same page application program according to the operation requirements of the corresponding area;

[0019] A service determination module, configured to determine corresponding target calling services respectively based on the target area identifiers of the at least two areas and in combination with the corresponding relationship between the area identifiers and the calling services;

[0020] A result acquisition module is used to call corresponding performance testing tools based on the at least two obtained target calling services, perform performance testing on corresponding pages to be tested, and obtain corresponding performance testing results;

[0021] The result saving module is used to store at least two obtained performance test results in association with the page application.

[0022] Optionally, the result acquisition module is specifically used to:

[0023] Call the service for at least two obtained targets and perform the following operations respectively:

[0024] Based on an obtained target calling service, a corresponding performance testing tool is called to perform performance testing on a corresponding to-be-tested page to obtain corresponding original performance data;

[0025] Extract key information from the original performance data to obtain corresponding key performance data; the key performance data includes various performance indicators and target area identifiers of corresponding areas;

[0026] The key performance data is used as the performance test result corresponding to the page to be tested.

[0027] Optionally, a performance comparison module is also included to:

[0028] Receive a first test comparison request sent by the front-end platform; the first test comparison request is used to instruct: to compare performance test results for at least two areas associated with the page application;

[0029] Obtaining performance test results of at least two areas associated and saved corresponding to the page application;

[0030] The performance test results of the at least two areas are sent to the front-end platform, so that the front-end platform compares the various performance indicators in the performance test results of the at least two areas, and obtains and displays corresponding regional performance comparison results.

[0031] Optionally, corresponding to the page application, performance test results of at least two created versions of the same to-be-tested page in the same area are also associated and saved; the performance comparison module is further used to:

[0032] receiving a second test comparison request sent by the front-end platform; the second test comparison request is used to indicate: for the same area associated with the page application, at least two created versions of the same page to be tested, to compare the performance test results;

[0033] Obtaining performance test results of at least two created versions of the same region and the same page to be tested that are associated and saved corresponding to the page application;

[0034] The performance test results of the at least two created versions are sent to the front-end platform, so that the front-end platform compares the various performance indicators in the performance test results of the at least two created versions, and obtains and displays the corresponding version performance comparison results.

[0035] Optionally, in addition to the at least two performance test results stored in association, a performance test result of a corresponding competing page application is also stored in association, where the competing page application is a page application that is a competitor of the page application; the performance comparison module is further used to:

[0036] receiving a third test comparison request sent by the front-end platform; the third test comparison request is used to indicate: for the same designated area, the page application and the competing page application are to be compared in terms of performance test results;

[0037] Obtaining performance test results of the page application and the competing page application, respectively corresponding to the same designated area;

[0038] The performance test results of the page application and the competitor's page application corresponding to the same designated area are sent to the front-end platform, so that the front-end platform compares the various performance indicators in the performance test results of the page application and the competitor's page application corresponding to the same designated area, and obtains and displays the corresponding competitor performance comparison results.

[0039] A page performance testing device, comprising:

[0040] A request sending module, used to send corresponding test requests to the backend server in response to performance test operations of pages to be tested from at least two regions for the same page application; wherein the pages to be tested corresponding to different test requests are generated based on the same page application according to the operation requirements of the corresponding regions;

[0041] A result receiving module, used for receiving at least two performance test results returned by the backend server after the backend server respectively performs performance tests on the pages to be tested corresponding to the corresponding areas based on the at least two test requests obtained;

[0042] The result display module is used to display the at least two performance test results respectively in response to the operation of displaying data.

[0043] An electronic device provided by an embodiment of the present application includes a processor and a memory, wherein the memory stores program code, and when the program code is executed by the processor, the processor executes the steps of any one of the above-mentioned page performance testing methods.

[0044] An embodiment of the present application provides a computer-readable storage medium, which includes a program code. When the program code is run on an electronic device, the program code is used to enable the electronic device to execute the steps of any one of the above-mentioned page performance testing methods.

[0045] A computer program product provided in an embodiment of the present application includes a computer program / instruction, which, when executed on a computer, enables the computer to execute the above-mentioned page performance testing method.

[0046] The beneficial effects of this application are as follows:

[0047] The embodiment of the present application provides a page performance testing method, device, electronic device and storage medium, which can receive test requests from at least two regions respectively, and each test request includes a target region identifier of the corresponding region and a link address of the page to be tested, wherein the page to be tested corresponding to different test requests is generated based on the same page application according to the operation requirements of the corresponding region, based on the target region identifiers of at least two regions respectively, combined with the correspondence between the region identifier and the call service, the corresponding target call service can be determined respectively, and based on the at least two target call services obtained, the corresponding performance test tool is called respectively, and the corresponding page to be tested is subjected to performance testing, and the corresponding performance test results are obtained, and the at least two performance test results obtained are associated and saved with the corresponding page application. Since for the same page application, the pages to be tested from different regions respectively can determine the corresponding target call services respectively according to the target region identifiers of each region respectively, and the corresponding performance test tools are called respectively through the obtained target call services, and the corresponding page to be tested is subjected to performance testing, and the corresponding performance test results are obtained and saved, so that the performance test results corresponding to multiple regions can be integrated, the page application can be comprehensively and systematically evaluated, the performance of the page application can be optimized in a targeted manner, and the performance of the page application can be comprehensively improved.

[0048] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 A schematic diagram of an application scenario of a page performance testing method provided in an embodiment of the present application;

[0050] Figure 2a A schematic diagram of a flow chart of a page performance testing method provided in an embodiment of the present application;

[0051] Figure 2b A logical schematic diagram of a page performance testing method provided in an embodiment of the present application;

[0052] Figure 3a A schematic diagram of a display interface for project creation provided in an embodiment of the present application;

[0053] Figure 3b A schematic diagram of a display interface for project management provided in an embodiment of the present application;

[0054] Figure 3c A schematic diagram of a display interface for URL address management provided in an embodiment of the present application;

[0055] Figure 3d A schematic diagram of a display interface for adding a URL address provided in an embodiment of the present application;

[0056] Figure 3e A flowchart of another page performance testing method provided in an embodiment of the present application;

[0057] Figure 4a A flowchart of another page performance testing method provided in an embodiment of the present application;

[0058] Figure 4b A schematic diagram of a display interface for performance test results provided in an embodiment of the present application;

[0059] Figure 4c A schematic diagram of another display interface for performance test results provided in an embodiment of the present application;

[0060] Figure 4d A schematic diagram of a display interface for historical data provided in an embodiment of the present application;

[0061] Figure 5a A flowchart of another page performance testing method provided in an embodiment of the present application;

[0062] Figure 5b A schematic diagram of a display interface for regional performance comparison results provided in an embodiment of the present application;

[0063] Figure 6a A flowchart of another page performance testing method provided in an embodiment of the present application;

[0064] Figure 6b A schematic diagram of a display interface for version performance comparison results provided in an embodiment of the present application;

[0065] Figure 7a A flowchart of another page performance testing method provided in an embodiment of the present application;

[0066] Figure 7b A schematic diagram of a display interface for comparing the performance of competing products provided in an embodiment of the present application;

[0067] Figure 7c A schematic diagram for comparing page parameters provided in an embodiment of the present application;

[0068] Figure 7d A schematic diagram of the overall framework of a page performance testing method provided in an embodiment of the present application;

[0069] Figure 8 A schematic diagram of the structure of a page performance testing device provided in an embodiment of the present application;

[0070] Fig. 9 A schematic diagram of the structure of another page performance testing device provided in an embodiment of the present application;

[0071] Fig.10 A schematic diagram of the structure of another page performance testing device provided in an embodiment of the present application;

[0072] Fig.11 A schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application;

[0073] Fig.12 A schematic diagram of the structure of a computing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0074] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the technical solution of the present application, rather than all of the embodiments. Based on the embodiments recorded in the application documents, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the technical solution of the present application.

[0075] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the invention described herein can be implemented in sequences other than those illustrated or described herein.

[0076] Some of the terms used in the embodiments of the present application are explained below to facilitate understanding by those skilled in the art.

[0077] Lighthouse: is a tool for performance testing on the WEB side, used to improve the quality of network applications. After entering the URL address of a page to be tested into Lighthouse, you can obtain important performance indicators of the page, such as performance, accessibility, user experience (Best Practices), search engine optimization (SEO), etc. Developers can optimize the page performance based on these performance indicators, thereby improving user experience and increasing product popularity.

[0078] Web application: is an application that can be accessed through the WEB. The biggest advantage of web application is that users can easily access the application. All they need is a browser, and they don’t need to install other software.

[0079] Region: The region in this application can be a region or a country.

[0080] The word “exemplary” is used hereinafter to mean “serving as an example, example, or illustration.” Any embodiment described as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.

[0081] The terms "first" and "second" in this document are used for descriptive purposes only and should not be understood as explicitly or implicitly indicating relative importance or implicitly indicating the number of technical features indicated. Therefore, features defined as "first" and "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.

[0082] The present application embodiment relates to blockchain technology, which is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, which is a string of blocks generated by cryptographic methods. Each block records a batch of test data of user behavior, which is used to verify the validity (anti-counterfeiting) of its test data and generate the next block. Each block of the blockchain includes the hash value of the test data stored in this block (the hash value of this block) and the hash value of the previous block, and each block is connected by the hash value to form a blockchain. In addition, each block of the blockchain can also include information such as the timestamp when the block was generated.

[0083] In an embodiment of the present application, corresponding to the page application, the associated performance test results can be saved in real time on the blockchain. When the front end needs to display the performance test results, or compare and display the performance test results, the saved performance test results can be pulled from the blockchain through the background server.

[0084] The following is a brief introduction to the design concept of the embodiment of the present application:

[0085] By performing performance testing on the page application, the corresponding performance test results can be obtained, so that the developers can optimize the performance of the page application according to the various performance indicators in the performance test results, thereby improving the user experience and enhancing the promotability of the page application. At present, the URL address of the page in the page application is usually entered into the performance testing tool lighthouse, and lighthouse will perform performance testing on the corresponding page according to the URL address to obtain the corresponding performance test results of the page. However, for pages from different regions of the same application, the traditional lighthouse cannot integrate the performance test results corresponding to each region. In this way, it is impossible to conduct a comprehensive and systematic evaluation of the running status of the page application, and it is impossible to perform targeted optimization of the page application, which is not conducive to the performance improvement of the page application.

[0086] In view of this, the embodiments of the present application provide a page performance testing method, device, electronic device and storage medium, which can be based on the pages to be tested from at least two regions of the same page application, according to the target region identifiers of the at least two regions, combined with the correspondence between the region identifiers and the calling services, respectively determine the corresponding target calling services, and based on the obtained at least two target calling services, respectively call the corresponding performance testing tools, perform performance testing on the corresponding pages to be tested, and obtain and save the corresponding performance testing results. In this way, the performance test results corresponding to multiple regions can be integrated, the page application can be comprehensively and systematically evaluated, the performance of the page application can be optimized in a targeted manner, and the performance of the page application can be comprehensively improved.

[0087] The preferred embodiments of the present application are described below in conjunction with the drawings in the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application. In addition, the embodiments of the present application and the features in the embodiments may be combined with each other if there is no conflict.

[0088] See also Figure 1As shown, it is a schematic diagram of an application scenario in an embodiment of the present application. The application scenario diagram includes a front-end platform 100 and a back-end server 200. The front-end platform 100 and the back-end server 200 can communicate through a communication network. Optionally, the communication network can be a wired network or a wireless network. The front-end platform 100 and the back-end server 200 can be directly or indirectly connected via wired or wireless communication, and the present application does not limit this.

[0089] In the embodiment of the present application, the front-end platform 100 is an electronic device used by the user, which may be a personal computer, mobile phone, tablet computer, notebook, e-book reader, smart home, vehicle-mounted terminal, etc. The back-end server 200 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.

[0090] Exemplarily, the user can create a page application project on the front-end platform 100, and create the URL addresses of each page to be tested in the new page application under the page application project, as well as the target area identifier of the area corresponding to the page application. When the user completes the creation and starts the performance test of the page to be tested, the front-end platform 100 can send a test request including the URL address of the page to be tested and the target area identifier of the corresponding area to the back-end server 200. After receiving the test request sent by the front-end platform 100, the back-end server 200 can determine the target calling service corresponding to the target area identifier based on the target area identifier in the test request and the correspondence between the area identifier and the calling service, and call the corresponding performance testing tool through the target calling service to perform a performance test on the page to be tested, and obtain and save the corresponding performance test results.

[0091] After the backend server 200 obtains and saves the performance test results corresponding to each page application, if the frontend platform 100 needs to display the performance test results or compare and display the performance test results, the corresponding performance test results can be pulled through the backend server 200.

[0092] It should be noted that Figure 1 This is an example introduction to the application scenarios of the page performance testing method of the present application. In fact, the application scenarios to which the method in the embodiments of the present application can be applied are not limited to this.

[0093] In some embodiments, the user may also create a game live broadcast application project on the front-end platform 100, and add the URL addresses of each page to be tested in the game live broadcast application and the country identification corresponding to the game live broadcast application to the project. In response to the user's operation of performing performance tests on each page to be tested in the game live broadcast application, the front-end platform 100 may send a test request including the URL address and country identification of each page to be tested to the back-end server 200. After receiving the test request sent by the front-end platform 100, the back-end server 200 may determine the target call service corresponding to a page to be tested according to the country identification in the test request, and call the corresponding performance test tool based on the URL address of the page to be tested through the target call service, perform performance tests on the page to be tested, and obtain and save the corresponding performance test results.

[0094] To further illustrate the technical solution provided by the embodiment of the present application, this is described in detail below in conjunction with the accompanying drawings and specific implementation methods. Although the embodiment of the present application provides the method operation steps as shown in the following embodiments or drawings, more or fewer operation steps may be included in the method based on routine or no creative labor. In the steps where there is no necessary causal relationship logically, the execution order of these steps is not limited to the execution order provided by the embodiment of the present application. The method may be executed in the order of the method shown in the embodiment or drawings or in parallel during the actual processing process or when the device is executed.

[0095] Figure 2a A flow chart of a page performance testing method provided by an embodiment of the present application is shown, and the method can be executed by a background server. Figure 2a , the page performance testing process in the embodiment of the present application is elaborated in detail.

[0096] Step S201: receiving test requests from at least two areas respectively.

[0097] The backend server may receive a test request initiated by the frontend platform for respectively performing performance tests on pages to be tested from at least two regions of the same page application.

[0098] Each test request includes: a target region identifier of the corresponding region and a link address of the page to be tested, and the pages to be tested corresponding to different test requests are generated based on the same page application according to the operation requirements of the corresponding region. In the embodiment of the present application, the region can be a region or a country, and when the region is a country, the target region identifier is the target country identifier.

[0099] For example, if a web application S is running in both country A and country B, and the user needs to perform performance tests on the web application S in country A and country B respectively to obtain corresponding performance test results, the user can send test request A and test request B to the backend server respectively through the front-end platform. The test request A includes the target country identifier of country A and the URL address of the page s to be tested in the web application S, i.e., the link address, and the test request B includes the target country identifier of country B and the URL address of the page s to be tested in the web application S.

[0100] Step S202: Based on the target area identifiers of the at least two areas, and in combination with the correspondence between the area identifiers and the calling services, respectively determine the corresponding target calling services.

[0101] For at least two regions, the following operations may be performed respectively: based on the target region identifier of one region and in combination with the correspondence between the region identifier and the calling service, a target calling service corresponding to the target region identifier of one region is determined.

[0102] Step S203: Based on the at least two target call services obtained, corresponding performance testing tools are respectively called to perform performance testing on the corresponding pages to be tested, and corresponding performance testing results are obtained.

[0103] For at least two target call services obtained, the following operations may be performed respectively: based on one target call service obtained, a corresponding performance test tool is called to perform a performance test on the corresponding page to be tested, and corresponding original performance data is obtained, and key information is extracted from the original performance data to obtain corresponding key performance data, and the key performance data is used as the performance test result corresponding to the page to be tested. Each key performance data obtained includes various performance indicators and a target area identifier of the corresponding area.

[0104] Step S204: Corresponding to the page application, at least two obtained performance test results are associated and saved.

[0105] After obtaining the performance test results corresponding to the pages to be tested from at least two regions for the same page application, the at least two obtained performance test results may be associated and saved corresponding to the page application.

[0106] For example, Figure 2bAs shown, regions C1, C2, and C3 all run page applications W, and the front-end platform can send test requests T1, T2, and T3 to the back-end server for performance testing of the to-be-tested pages P in the page applications W from regions C1, C2, and C3, respectively. After receiving the test requests T1, T2, and T3, the back-end server can determine the corresponding target call service F1 according to the target region identifier of region C1 in the test request T1, determine the corresponding target call service F2 according to the target region identifier of region C2 in the test request T2, and determine the corresponding target call service F3 according to the target region identifier of region C3 in the test request T3.

[0107] Afterwards, the backend server can call the corresponding performance test tool L1 through the target call service F1, perform a performance test on the test page P, and obtain a performance test result S1, call the corresponding performance test tool L2 through the target call service F2, perform a performance test on the test page P, and obtain a performance test result S2, and call the corresponding performance test tool L3 through the target call service F3, perform a performance test on the test page P, and obtain a performance test result S3. After respectively obtaining the performance test result S1, the performance test result S2, and the performance test result S3, the backend server can correspond to the page application W and associate and save the performance test result S1, the performance test result S2, and the performance test result S3.

[0108] In one embodiment, before performing performance testing on a page to be tested in a page application, a user can manage the URL addresses of the page application project to be tested and the pages under the project on a front-end platform.

[0109] Specifically, users can first create a page application to be tested on the front-end platform. Figure 3a As shown, users can select the "Project Management" option under "Performance Monitoring" on the front-end platform, and select the "Apply for Project" option in "Project Management" to create a new page application. Under "Apply for Project", users can fill in the newly created page application that needs to be performance tested, that is, the "Project Name", the relevant introduction information of the newly created page application, that is, the "Project Description", and the "Person in Charge" who initiated this performance test. After the user fills in the "Project Name", "Project Description" and "Person in Charge" under "Apply for Project", click "Create Now" to create a new page application project.

[0110] After "applying for a project", users can also view all created page application projects on the front-end platform. Figure 3bAs shown, in the "Project List" of "Project Management", the "Project Names" created by the user can be displayed, including "Page Application 1", "Page Application 2" and "Page Application 3", and the "Creation Time" and "Creator" of "Page Application 1", "Page Application 2" and "Page Application 3" can be displayed respectively. In the "Project List", the user can also "operate" on the created projects and delete the created projects. For example, if "Page Application 2" needs to be removed from the created project, the user can click the "Delete" option in "Page Application 2" to remove "Page Application 2" from the project.

[0111] In addition, the "project list" also includes a "project link mapping table". For example, after clicking "View Details" in the "project link mapping table" corresponding to "page application 3", an interface as shown in 3c may be displayed. Figure 3c In the project "Page Application 3", the pages to be tested can be displayed, as well as the "URL of the page to be monitored", "update time" and "creator" corresponding to each page. Figure 3c In the "page application 3", the user can also "operate" each page displayed in the "page application 3", that is, "edit" or "delete" each page.

[0112] exist Figure 3c There is also an "Add URL" option. Figure 3c After clicking "Add URL", the following information will be displayed: Figure 3d The interface shown in the figure. Figure 3d As shown in the figure, users can fill in the new "Page URL" and "Operator" under "Add URL". Figure 3d Click the "Add URL" operation in the dialog box to add a new page to be tested in "Page Application 3".

[0113] After the user creates the page application to be tested and the URL address of the page to be tested under the page application on the front-end platform, he can initiate a test request to the back-end server to perform a performance test on the pages to be tested in different areas of the same page application, so that the back-end server can perform performance tests on the corresponding pages to be tested according to the corresponding test requests and obtain the corresponding performance test results.

[0114] Specifically, the above process can be executed by the front-end platform, see Figure 3e The following is a schematic diagram of the page performance test process performed by the front-end platform in the embodiment of the present application. Figure 3e , the process is explained in detail.

[0115] Step S301, in response to a performance test operation on pages to be tested from at least two regions respectively for the same page application, a corresponding test request is sent to a background server.

[0116] Among them, the pages to be tested corresponding to different test requests are generated based on the same page application and in accordance with the operation requirements of the corresponding area.

[0117] Step S302: receiving at least two performance test results returned by the backend server after the backend server performs performance tests on the pages to be tested corresponding to the corresponding areas based on the at least two test requests obtained.

[0118] After receiving the test request for the same page application from at least two regions for the performance test of the pages to be tested, the backend server performs the performance test on the corresponding pages to be tested respectively. Figure 2a , I will not go into details here.

[0119] Step S303: in response to the operation of displaying data, at least two performance test results are displayed respectively.

[0120] After receiving the performance test results corresponding to at least two areas of the same page application returned by the backend server, the front-end platform can display the at least two obtained performance test results respectively.

[0121] Optionally, when the front-end platform displays at least two performance test results separately, it can display them in a graphical form so that the user can observe the performance data of the page more intuitively.

[0122] In another embodiment, the page performance testing method provided in the embodiment of the present application can also be executed collaboratively by the front-end platform and the back-end server. Figure 4a An interactive flow chart of a page performance testing method is shown, such as Figure 4a As shown, the method may include the following steps:

[0123] Step S401, the front-end platform performs a performance test on a page to be tested from a specified area in response to a specified page application.

[0124] Step S402: the front-end platform sends a test request to the back-end server.

[0125] The test request may include a target area identifier of a designated area and a URL address of a page to be tested.

[0126] Step S403: the backend server determines a corresponding target calling service based on the target area identifier of the designated area in the test request and the corresponding relationship between the area identifier and the calling service.

[0127] Step S404: the background server calls the corresponding performance testing tool through the target calling service, performs performance testing on the page to be tested, obtains corresponding performance testing results, and saves the performance testing results into a database.

[0128] Among them, the database for storing the performance test results can be a MySQL database or other databases, which is limited here by the embodiment of the present application.

[0129] The backend server can call the corresponding performance test tool through the obtained target call service, perform performance test on the page to be tested, and obtain the corresponding original performance data. After obtaining the original performance data corresponding to the page to be tested, the backend server can extract key information from the original performance data, obtain the corresponding key performance data, and use the key performance data as the performance test result corresponding to the page to be tested. Among them, the obtained key performance data contains various performance indicators and the target area identifier of the specified area.

[0130] Specifically, after the target call service is used to call the corresponding performance test tool, the performance test is performed on the page to be tested, and the corresponding original performance data is obtained, since the target call service has a limit on the size of the data, the original performance data obtained often exceeds the limit of the target call service. Therefore, after obtaining the original performance data, the target call service can first extract the useful information in the original performance data to obtain the corresponding key performance data, and then return the key performance data as the performance test result corresponding to the page to be tested to the background server, so that the background server saves the obtained performance test result to the database. For example, the limit of the target call service is 6M, and the size of the original performance data obtained is 20M. After the target call service extracts useful information from the original performance data and obtains key performance data of 48K in size, it can return the key performance data as the performance test result to the background server.

[0131] Optionally, the target calling service can be a cloud function service. When the backend server performs a performance test on the page to be tested, it can map the target area identifier of the area corresponding to the page to be tested to the cloud function service corresponding to the target area identifier of the area, and use the cloud function service to call the lighthouse tool deployed in the area to perform a comprehensive performance evaluation of the page to be tested. After the performance test is completed, lighthouse can return the corresponding performance test results to the backend server.

[0132] In one embodiment, the front-end platform can submit the page to be tested based on the page implemented by vue-element-admin by creating a project and the corresponding page URL address. Among them, the page to be tested is the page to be tested, and testing the speed of the page to be tested is to perform a performance test on the page to be tested. After receiving the request to test the speed of the page to be tested, the backend server can request the corresponding cloud function service according to the country information carried in the request. For example, if a page to be tested in country A is submitted, the page to be tested can be mapped to the cloud function service corresponding to country A, and the cloud function service corresponding to country A can call the locally deployed lighthouse service based on the page URL address to perform a comprehensive performance evaluation of the page to be tested.

[0133] Step S405: the front-end platform responds to the operation of displaying data.

[0134] Step S406: the front-end platform sends a data acquisition request to the back-end server.

[0135] Step S407: the backend server pulls the corresponding performance test results from the database based on the data acquisition request.

[0136] Optionally, the background server can pull the corresponding performance test results from the MySQL database, and the background server also includes a Redis cache service, which is mainly used to cache the interface list data provided to the front-end platform for calling. In order to reduce the call burden on the MySQL database and improve the interface performance, the Redis database is used to cache the returned interface results for the pulled list data.

[0137] Step S408: The backend server sends the performance test results to the frontend platform.

[0138] Step S409: the front-end platform displays the performance test data.

[0139] In response to the user's operation of displaying the performance test result corresponding to the page to be tested from the specified area for the specified page application, the front-end platform can send a data acquisition request to the back-end server. After receiving the data acquisition request, the back-end server can pull the performance test result corresponding to the page to be tested from the database according to the target area identifier of the specified area and the URL address of the page to be tested included in the acquisition request, and send the performance test result corresponding to the page to be tested to the front-end platform. After receiving the performance test result corresponding to the page to be tested, the front-end platform can display the performance test result to the user.

[0140] For example, the front-end platform responds to the user's display Figure 3cWhen the performance test result corresponding to the page with "sub-project ID" "1" under "Page Application 3" is obtained, a corresponding data acquisition request can be sent to the backend server, and the backend server can pull the performance test result corresponding to the page with "sub-project ID" "1" from the database, and return the performance test result to the front-end platform, so that the front-end platform can display it as follows Figure 4b Performance test results shown. Figure 4b The performance indicators in the performance test results corresponding to the page with "sub-project ID" "1" are displayed, and the Figure 4b From the performance test results shown, users can clearly see the performance of the page with "sub-project ID" "1". Based on the performance test results, users can easily optimize the performance of the page with "sub-project ID" "1" to further improve the performance of the page.

[0141] Optionally, the front-end platform can also display the performance test results corresponding to the page with "sub-project ID" "1" as follows: Figure 4c shown.

[0142] Optionally, the front-end platform can also display the historical performance test results corresponding to the page with "sub-project ID" "1", and the displayed historical performance test results can be as follows: Figure 4d shown.

[0143] Optionally, after Lighthouse performs a performance test on the page to obtain the corresponding performance test results and returns the performance test results to the backend server, the backend server can archive the performance test results to facilitate subsequent historical data viewing, country comparison and competitor comparison, etc., and the front-end platform can also display the performance test results obtained this time, as well as historical data, country comparison results and competitor comparison results.

[0144] In addition, you can also set a timing plan based on the schedule to test the speed every day at times when the user traffic is relatively large, so as to detect online problems in time.

[0145] In some embodiments, the backend server corresponds to the same page application and stores the obtained performance test results in association. In response to the user's operation of displaying the performance test comparison results of different areas, the frontend platform can send a corresponding request to the backend server, so that the backend server can return the performance test results corresponding to different areas according to the request, and then the frontend platform can compare the obtained performance test results corresponding to different areas and display them to the user. The above process can be performed collaboratively by the frontend platform and the backend server, and the interactive flow chart of the process can be as follows: Figure 5a As shown, the following steps are included:

[0146] Step S501: The front-end platform performs a performance test result comparison operation in response to at least two areas associated with the same page application.

[0147] Step S502: the front-end platform sends a first test comparison request to the back-end server.

[0148] Step S503: The backend server obtains the performance test results of at least two areas associated and saved corresponding to the same page application according to the first test comparison request.

[0149] After receiving the first test request sent by the front-end platform, the back-end server can pull out the performance test results of at least two areas associated and saved corresponding to the same page application from the database according to the first test request.

[0150] Step S504: the backend server sends the performance test results of at least two areas to the frontend platform.

[0151] After obtaining the performance test results of at least two areas associated and saved corresponding to the same page application, the backend server can send the performance test results to the front-end platform.

[0152] For example, both country A and country B run a page application S. In response to a user's operation of comparing the performance test results corresponding to the pages to be tested s in the page application S of country A and country B, the front-end platform can send a corresponding first test request to the back-end server. After receiving the first test request, the back-end server can pull out the performance test results corresponding to the pages to be tested s in the page application S of country A and country B from the database, and send the corresponding performance test results to the front-end platform.

[0153] Step S505: the front-end platform compares various performance indicators in the performance test results of at least two regions to obtain corresponding regional performance comparison results.

[0154] Step S506: the front-end platform displays the regional performance comparison results.

[0155] After receiving the performance test results of at least two regions returned by the backend server, the front-end platform can compare the various performance indicators in all the performance test results, obtain corresponding regional performance comparison results, and display the obtained regional performance comparison results.

[0156] For example, in response to a user's operation of comparing the performance test results corresponding to the pages to be tested in the page application 3 from countries A and B, the front-end platform can send a first test comparison request to the back-end server, and the back-end server can return the performance test results corresponding to country A and the performance test results corresponding to country B. After receiving the performance test results corresponding to countries A and B respectively returned by the back-end server, the front-end platform can compare the various performance indicators in the performance test results. In response to the user displaying the performance test comparison results corresponding to the pages to be tested in the page application 3 from countries A and B, the front-end platform can display the following. Figure 5b Country performance comparison results shown.

[0157] When comparing the performance of pages in multiple regions, such as pages in multiple countries, based on the performance test service deployed in multiple countries, you can choose to conduct multi-country performance tests simultaneously to obtain performance test data for multiple countries. This allows you to visually observe the performance of pages accessed in different countries. By aggregating performance test data from multiple countries, you can achieve the comparison function, which facilitates targeted problem troubleshooting and performance optimization for certain countries with poor performance.

[0158] In other embodiments, the background server corresponds to the same page application, and is also associated with and stores the performance test results of at least two created versions of the same page to be tested in the same area. In response to the user's operation of displaying the performance test comparison results of different created versions, the front-end platform can send a corresponding request to the background server, so that the background server can return the performance test results corresponding to the different created versions according to the request, and then the front-end platform can compare the obtained performance test results corresponding to the different created versions and display them to the user. The above process can be executed collaboratively by the front-end platform and the background server, and the interactive flow chart of the process can be as follows: Figure 6a As shown, the following steps are included:

[0159] Step S601, the front-end platform performs a performance test result comparison operation in response to at least two created versions of the same to-be-tested page in the same area associated with the same page application.

[0160] Step S602: the front-end platform sends a second test comparison request to the back-end server.

[0161] Step S603: The backend server obtains, according to the second test comparison request, performance test results of at least two created versions of the same page application, the same area, and the same page to be tested that are associated and saved.

[0162] After receiving the second test request sent by the front-end platform, the backend server can pull out the performance test results of at least two created versions of the same area and the same page to be tested corresponding to the same page application and associated and saved from the database according to the second test request.

[0163] Step S604: the backend server sends the performance test results of at least two created versions to the frontend platform.

[0164] After obtaining the performance test results of at least two created versions of the same page application, the same area, and the same page to be tested that are associated and saved, the backend server can send the performance test results to the front-end platform.

[0165] For example, for a page application S running in country A, the page s to be tested in the page application S has two creation versions, namely creation version s1 and creation version s2. In response to the user's operation of comparing the performance test results corresponding to creation version s1 and creation version s2 in the page application S of country A, the front-end platform can send a corresponding second test request to the back-end server. After receiving the second test request, the back-end server can pull out the performance test results corresponding to creation version s1 and creation version s2 in the page application S of country A from the database, and send the corresponding performance test results to the front-end platform.

[0166] Step S605: the front-end platform compares various performance indicators in the performance test results of at least two created versions to obtain corresponding version performance comparison results.

[0167] Step S606: The front-end platform displays the version performance comparison results.

[0168] After receiving the performance test results of at least two created versions returned by the backend server, the front-end platform can compare the various performance indicators in all the performance test results, obtain corresponding version performance comparison results, and display the obtained version performance comparison results.

[0169] For example, in response to a user's operation of comparing the performance test results corresponding to version 1 and version 2 of the page to be tested in page application 3 from country A, the front-end platform can send a second test comparison request to the back-end server, and the back-end server can return the performance test results corresponding to version 1 and the performance test results corresponding to version 2. After receiving the performance test results corresponding to version 1 and version 2 returned by the back-end server, the front-end platform can compare the various performance indicators in the performance test results. In response to the user displaying the performance test comparison results corresponding to version 1 and version 2 for the page to be tested in page application 3, the front-end platform can display the following: Figure 6b The performance comparison results of the versions shown are as follows.

[0170] In other embodiments, in addition to the performance test results corresponding to the same page application, the backend server also stores the performance test results of the corresponding competing page applications. The competing page application is a page application that is a competitor of the above-mentioned page application. In response to the user's operation of displaying the performance test comparison results of different page applications, the front-end platform can send a corresponding request to the backend server, so that the backend server can return the performance test results corresponding to the different page applications according to the request, and then the front-end platform can compare the obtained performance test results corresponding to the different page applications and display them to the user. The above process can be performed collaboratively by the front-end platform and the back-end server, and the interaction process of the process can be as follows. Figure 7a As shown, the following steps are included:

[0171] In step S701, the front-end platform performs a performance test result comparison operation in response to a web page application and a competing web page application for the same designated area.

[0172] Step S702: the front-end platform sends a third test comparison request to the back-end server.

[0173] Step S703: The backend server obtains performance test results of the page application and the competing page application corresponding to the same designated area according to the third test comparison request.

[0174] After receiving the third test request sent by the front-end platform, the backend server can pull out the performance test results of the page application and the competing page application corresponding to the same designated area from the database according to the third test request.

[0175] In step S704, the backend server sends the performance test results of the page application and the competing page application corresponding to the same designated area to the front-end platform.

[0176] After obtaining the performance test results of the page application and the competing page application corresponding to the same designated area, the backend server can send the performance test results to the front-end platform.

[0177] For example, page application S1 and page application S2 are running in country A, and page application S1 and page application S2 are competing page applications. In response to the user's operation of comparing the performance test results corresponding to the page s1 to be tested in page application S1 of country A and the page s2 to be tested in page application S2 of country A, the front-end platform can send a corresponding third test request to the back-end server. After receiving the third test request, the back-end server can pull out the performance test results corresponding to the page s1 to be tested in page application S1 of country A and the page s2 to be tested in page application S2 of country A from the database, and send the corresponding performance test results to the front-end platform.

[0178] In step S705, the front-end platform compares the performance indicators of the page application and the competing page application in the performance test results corresponding to the same designated area to obtain corresponding competing performance comparison results.

[0179] Step S706: The front-end platform displays the performance comparison results of competing products.

[0180] After receiving the performance test results of the page application and the competitor's page application returned by the backend server corresponding to the same designated area, the front-end platform can compare the various performance indicators in all performance test results, obtain corresponding competitor performance comparison results, and display the obtained competitor performance comparison results.

[0181] For example, page application 2 and page application 3 in country A are competitors of each other. In response to the user's operation of comparing the performance test results corresponding to the pages to be tested in page application 2 and page application 3 from country A, the front-end platform can send a third test comparison request to the back-end server, and the back-end server can return the performance test results corresponding to page application 2 and the performance test results corresponding to page application 3. After receiving the performance test results corresponding to page application 2 and page application 3 respectively returned by the back-end server, the front-end platform can compare the various performance indicators in the performance test results. In response to the user displaying the performance test comparison results corresponding to the pages to be tested in page application 2 and page application 3, the front-end platform can display the following: Figure 7b The performance comparison results of the versions shown are as follows.

[0182] In summary, if Figure 7cAs shown, when the fixed parameter is the page application and the variable parameter is the country, the effect that can be achieved is country comparison, that is, for the performance test results of country A and country B of the same page application, a country performance comparison can be performed. When the fixed parameter is the country and the variable parameter is the page application, the effect that can be achieved is competitor comparison, that is, for the performance test results of page application A and page application B in the same country, a competitor performance comparison can be performed. When the fixed parameters are the country and the page application, and the variable parameter is the creation version, the effect that can be achieved is version comparison, that is, for the performance test results of creation version A and creation version B of the same page application and the same country, a version performance comparison can be performed.

[0183] Optionally, the background server may also include a timed trigger service and an alarm service. Among them, the timed trigger service is implemented based on node-schedule, which is a timed task module of Node.js. It can conveniently manage time trigger timing and trigger callbacks, and perform page speed measurement in the callback. That is, the timed trigger service can formulate a timed task so that the background server can regularly execute the task of performance testing the page to be tested. Specifically, when the timed task is turned on, the background server can receive a test request from the user on the front-end platform for a performance test operation on the page to be tested in the specified area and the specified page application, and determine the corresponding target call service based on the target area identifier of the specified area in the test request, so as to call the corresponding performance test tool through the target call service, perform performance testing on the page to be tested, and obtain the corresponding performance test results.

[0184] The alarm service can set an alarm threshold so that an alarm is issued when the performance indicators included in the obtained performance test results are lower than the alarm threshold. Specifically, after the background server performs a performance test on the page to be tested and obtains the corresponding performance test results, it can compare the various performance indicators in the performance test results with the alarm threshold. If the performance indicator is lower than the alarm threshold, an alarm is issued to prompt the user that there is a performance problem in the page to be tested. For example, the alarm threshold set by the alarm service is 70. After the background server performs a performance test on the page to be tested, the performance indicators in the performance test results obtained include Performance, Accessibility, Best Practices and SEO, among which the Performance score is 33, the Accessibility score is 73, the Best Practices score is 73, and the SEO score is 91. Since the Performance score in the performance indicators is lower than the alarm threshold, the alarm service can issue an alarm signal.

[0185] In one embodiment, the overall framework diagram for performing performance testing on a page can be as follows: Figure 7d As shown. Figure 7d As shown, the overall framework can include six modules: callback service, front-end platform, speed measurement service, timing trigger service, redis data cache service and mysql database.

[0186] After each code submission, the submission details will be pushed to the callback service, which will trigger the page speed test. The front-end platform is used to obtain the historical speed test data pulled by the speed test service and trigger the speed test task of the speed test service. The speed test service is used to perform speed test tasks, and performance testing includes the speed test service.

[0187] The timed trigger service is used to time the speed test service to perform performance speed test tasks. The redis data cache service caches the interface list data provided to the front-end call, that is, for the list data of historical speed test data pulled by the speed test service, the Redis database is used to cache the returned interface results. The mysql database is used to store all speed test data.

[0188] The page performance testing method provided in the embodiment of the present application may have the following advantages: 1. It can better view the performance data corresponding to a certain page under a certain project, including regional performance comparison data, competitor performance comparison data and version performance comparison data; 2. It can perform targeted performance optimization for low-scoring regions and low-scoring pages to improve page performance; 3. Convert data into charts to more conveniently view data trends. For places where branches drop sharply, you can hover to display the commit number, so that you can know that the changes in page performance may be caused by this code submission; 4. Support historical data viewing, do a good job of data archiving, facilitate the creation and deletion of page application projects and URL addresses, support scheduled triggering of daily performance monitoring tasks, and also support single page performance testing. While paying attention to the page function, the performance test results of the page can also be well controlled and monitored, thereby ensuring the running quality of the page application.

[0189] and Figure 2a The page performance test method shown is based on the same inventive concept, and a page performance test device is also provided in the embodiment of the present application, and the page performance test device can be deployed in the background server. Since the device is the device corresponding to the page performance test method of the present application, and the principle of solving the problem by the device is similar to that of the method, the implementation of the device can refer to the implementation of the above method, and the repeated parts will not be repeated.

[0190] Figure 8 A schematic diagram of the structure of a page performance testing device provided in an embodiment of the present application is shown. Figure 8As shown, the performance testing device includes a request receiving module 801 , a service determining module 802 , a result obtaining module 803 and a result saving module 804 .

[0191] The request receiving module 801 is used to receive test requests from at least two regions respectively; each test request includes: a target region identifier of the corresponding region and a link address of a page to be tested, wherein the page to be tested corresponding to different test requests is generated based on the same page application program according to the operation requirements of the corresponding region;

[0192] A service determination module 802, configured to determine corresponding target calling services respectively based on the target area identifiers of the at least two areas and in combination with the correspondence between the area identifiers and the calling services;

[0193] The result acquisition module 803 is used to call corresponding performance testing tools based on the at least two target call services obtained, perform performance testing on the corresponding to-be-tested pages, and obtain corresponding performance testing results;

[0194] The result saving module 804 is used to store at least two obtained performance test results in association with the corresponding page application.

[0195] Optionally, the result acquisition module 803 is specifically used to:

[0196] Call the service for at least two obtained targets and perform the following operations respectively:

[0197] Based on an obtained target calling service, a corresponding performance testing tool is called to perform performance testing on a corresponding to-be-tested page to obtain corresponding original performance data;

[0198] Extract key information from the original performance data to obtain corresponding key performance data; the key performance data includes various performance indicators and target area identifiers of corresponding areas;

[0199] Use the key performance data as the performance test results corresponding to the page to be tested.

[0200] Optional, such as Fig. 9 As shown, the above device may further include a performance comparison module 901, which is used to:

[0201] Receive a first test comparison request sent by the front-end platform; the first test comparison request is used to instruct: to compare performance test results for at least two areas associated with the page application;

[0202] Obtain the corresponding page application and associate the performance test results of at least two areas saved;

[0203] The performance test results of at least two areas are sent to the front-end platform, so that the front-end platform compares the various performance indicators in the performance test results of at least two areas, and obtains and displays the corresponding regional performance comparison results.

[0204] Optionally, the corresponding page application is also associated with and saves performance test results of at least two created versions of the same to-be-tested page in the same region; the performance comparison module 901 is further used to:

[0205] receiving a second test comparison request sent by the front-end platform; the second test comparison request is used to indicate: for the same area associated with the page application, at least two created versions of the same to-be-tested page are compared with performance test results;

[0206] Obtain the corresponding page application and the associated saved performance test results of at least two created versions of the same area and the same page to be tested;

[0207] The performance test results of at least two created versions are sent to the front-end platform, so that the front-end platform compares the various performance indicators in the performance test results of at least two created versions, and obtains and displays the corresponding version performance comparison results.

[0208] Optionally, in addition to the at least two performance test results stored in association, a performance test result of a corresponding competing page application is also stored in association, where the competing page application is a page application that is a competitor of the page application; the performance comparison module 901 is further used to:

[0209] receiving a third test comparison request sent by the front-end platform; the third test comparison request is used to instruct: for the same designated area, the page application and the competing page application to compare the performance test results;

[0210] Obtain performance test results of the web application and competitor web application in the same specified area;

[0211] The performance test results of the page application and the competitor's page application corresponding to the same designated area are sent to the front-end platform, so that the front-end platform compares the various performance indicators in the performance test results of the page application and the competitor's page application corresponding to the same designated area, and obtains and displays the corresponding competitor performance comparison results.

[0212] and Figure 3eThe page performance test method shown is based on the same inventive concept, and a page performance test device is also provided in the embodiment of the present application, and the page performance test device can be deployed in the front-end platform. Since the device is the device corresponding to the page performance test method of the present application, and the principle of solving the problem by the device is similar to that of the method, the implementation of the device can refer to the implementation of the above method, and the repeated parts will not be repeated.

[0213] Fig.10 A schematic diagram of the structure of a page performance testing device provided in an embodiment of the present application is shown. Fig.10 As shown, the page performance testing device includes a request sending module 1001 , a result receiving module 1002 and a result display module 1003 .

[0214] The request sending module 1001 is used to send a corresponding test request to the background server in response to the performance test operation of the pages to be tested from at least two regions for the same page application; wherein the pages to be tested corresponding to different test requests are generated based on the same page application according to the operation requirements of the corresponding region;

[0215] The result receiving module 1002 is used to receive at least two performance test results returned by the backend server after the backend server performs performance tests on the pages to be tested corresponding to the corresponding areas based on the at least two test requests obtained;

[0216] The result display module 1003 is used to display at least two performance test results in response to the operation of displaying data.

[0217] Based on the same inventive concept as the above method embodiment, an electronic device is also provided in the embodiment of the present application, referring to Fig.11 As shown, it is a schematic diagram of a hardware structure of an electronic device using an embodiment of the present application, and the electronic device 1100 may include at least a processor 1101 and a memory 1102. The memory 1102 stores program codes, and when the program codes are executed by the processor 1101, the processor 1101 executes the steps of any of the above-mentioned page performance test methods.

[0218] In some possible implementations, the computing device according to the present application may include at least one processor and at least one memory. The memory stores program code, and when the program code is executed by the processor, the processor executes the steps of the page performance testing method according to various exemplary implementations of the present application described above in this specification. For example, the processor may execute the following steps: Figure 2a or Figure 3e Follow the steps shown in .

[0219] Refer to the following Fig.121200 according to this embodiment of the present application is described. Fig.12 As shown, the computing device 1200 is in the form of a general computing device. The components of the computing device 1200 may include but are not limited to: at least one processing unit 1201, at least one storage unit 1202, and a bus 1203 connecting different system components (including the storage unit 1202 and the processing unit 1201).

[0220] Bus 1203 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.

[0221] The storage unit 1202 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 12021 and / or a cache memory unit 12022 , and may further include a read-only memory (ROM) 12023 .

[0222] The storage unit 1202 may also include a program / utility 12025 having a set (at least one) of program modules 12024, such program modules 12024 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0223] The computing device 1200 may also communicate with one or more external devices 1204 (e.g., keyboards, pointing devices, etc.), one or more devices that enable a user to interact with the computing device 1200, and / or any device that enables the computing device 1200 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 1205. In addition, the computing device 1200 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 1206. As shown, the network adapter 1206 communicates with other modules for the computing device 1200 via a bus 1203. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the computing device 1200, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0224] Based on the same inventive concept as the above method embodiment, various aspects of the page performance testing method provided by the present application can also be implemented in the form of a program product, which includes a program code. When the program product is run on an electronic device, the program code is used to enable the electronic device to execute the steps of the page performance testing method according to various exemplary embodiments of the present application described above in this specification. For example, the electronic device can execute the following steps: Figure 2a or Figure 3e Follow the steps shown in .

[0225] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0226] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0227] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A page performance testing method, It is characterized in that include: Receiving test requests from at least two regions; Each test request includes: a target area identifier of a corresponding area and a link address of a page to be tested, wherein the page to be tested corresponding to different test requests is generated based on the same page application program according to the operation requirements of the corresponding area; the area is a region or a country; Based on the target area identifiers of the at least two areas, respectively, and in combination with the correspondence between the area identifiers and the calling services, respectively determine the corresponding target calling services; wherein the target calling services are cloud function services; Based on the at least two target call services obtained, the performance test tools deployed in the corresponding areas are respectively called to perform performance tests on the corresponding pages to be tested, and obtain corresponding performance test results; Corresponding to the page application, at least two obtained performance test results are associated and saved.

2. The method according to claim 1, It is characterized in that The invoking service based on the at least two obtained targets, respectively invoking corresponding performance testing tools, performing performance testing on corresponding pages to be tested, and obtaining corresponding performance testing results, includes: Call the service for at least two obtained targets and perform the following operations respectively: Based on an obtained target calling service, a corresponding performance testing tool is called to perform performance testing on a corresponding to-be-tested page to obtain corresponding original performance data; Extract key information from the original performance data to obtain corresponding key performance data; the key performance data includes various performance indicators and target area identifiers of corresponding areas; The key performance data is used as the performance test result corresponding to the page to be tested.

3. The method according to claim 1 or 2, It is characterized in that After the at least two obtained performance test results are stored in association, the method further includes: Receive a first test comparison request sent by the front-end platform; the first test comparison request is used to instruct: to compare performance test results for at least two areas associated with the page application; Obtaining performance test results of at least two areas associated and saved corresponding to the page application; The performance test results of the at least two areas are sent to the front-end platform, so that the front-end platform compares the various performance indicators in the performance test results of the at least two areas, and obtains and displays corresponding regional performance comparison results.

4. The method according to claim 1 or 2, It is characterized in that Corresponding to the page application, performance test results of at least two created versions of the same to-be-tested page in the same area are also associated and saved; After the at least two obtained performance test results are stored in association, the method further includes: receiving a second test comparison request sent by the front-end platform; the second test comparison request is used to indicate: for the same area associated with the page application, at least two created versions of the same page to be tested, to compare the performance test results; Obtaining performance test results of at least two created versions of the same region and the same page to be tested that are associated and saved corresponding to the page application; The performance test results of the at least two created versions are sent to the front-end platform, so that the front-end platform compares the various performance indicators in the performance test results of the at least two created versions, and obtains and displays the corresponding version performance comparison results.

5. The method according to claim 1 or 2, It is characterized in that In addition to the at least two performance test results stored in association, a performance test result of a corresponding competing webpage application is also stored in association, where the competing webpage application is a webpage application that is a competitor of the webpage application; After the at least two obtained performance test results are stored in association, the method further includes: receiving a third test comparison request sent by the front-end platform; the third test comparison request is used to indicate: for the same designated area, the page application and the competing page application are to be compared in terms of performance test results; Obtaining performance test results of the page application and the competing page application, respectively corresponding to the same designated area; The performance test results of the page application and the competitor's page application corresponding to the same designated area are sent to the front-end platform, so that the front-end platform compares the various performance indicators in the performance test results of the page application and the competitor's page application corresponding to the same designated area, and obtains and displays the corresponding competitor performance comparison results.

6. A page performance testing method, It is characterized in that include: In response to a performance test operation of pages to be tested from at least two regions respectively for the same page application, a corresponding test request is sent to a backend server; wherein the pages to be tested corresponding to different test requests are generated based on the same page application according to the operation requirements of the corresponding region; the region is a region or a country; receiving at least two performance test results returned by the backend server after the backend server respectively performs performance tests on the pages to be tested corresponding to the corresponding areas based on the at least two test requests obtained; wherein the performance test results are obtained by the backend server respectively determining the corresponding target calling services based on the target area identifiers of the at least two areas and the correspondence between the area identifiers and the calling services, and then respectively calling the performance testing tools deployed in the corresponding areas based on the at least two target calling services obtained to perform performance tests on the corresponding pages to be tested; wherein the target calling service is a cloud function service; In response to the operation of displaying data, the at least two performance test results are displayed respectively.

7. A page performance testing device, It is characterized in that include: A request receiving module, used for receiving test requests from at least two regions respectively; Each test request includes: a target area identifier of a corresponding area and a link address of a page to be tested, wherein the page to be tested corresponding to different test requests is generated based on the same page application program according to the operation requirements of the corresponding area; the area is a region or a country; A service determination module, configured to determine the corresponding target calling services based on the target area identifiers of the at least two areas and the corresponding relationship between the area identifiers and the calling services; wherein the target calling service is a cloud function service; A result acquisition module is used to call the performance testing tools deployed in the corresponding areas based on the at least two target call services obtained, perform performance testing on the corresponding pages to be tested, and obtain corresponding performance testing results; The result saving module is used to store at least two obtained performance test results in association with the page application.

8. The device according to claim 7, It is characterized in that The result acquisition module is specifically used for: Call the service for at least two obtained targets and perform the following operations respectively: Based on an obtained target calling service, a corresponding performance testing tool is called to perform performance testing on a corresponding to-be-tested page to obtain corresponding original performance data; Extracting key information from the original performance data to obtain corresponding key performance data; The key performance data includes various performance indicators and target area identifiers of corresponding areas; The key performance data is used as the performance test result corresponding to the page to be tested.

9. A page performance testing device, It is characterized in that include: A request sending module, configured to send corresponding test requests to a backend server in response to performance test operations of pages to be tested from at least two regions for the same page application; wherein the pages to be tested corresponding to different test requests are generated based on the same page application according to the operation requirements of the corresponding region; the region is a region or a country; A result receiving module is used to receive at least two performance test results returned by the backend server after the backend server respectively performs performance tests on the pages to be tested corresponding to the corresponding areas based on the at least two test requests obtained; wherein the performance test results are obtained by the backend server respectively determining the corresponding target calling services based on the target area identifiers of the at least two areas, combined with the correspondence between the area identifiers and the calling services, and then respectively calling the performance testing tools deployed in the corresponding areas based on the obtained at least two target calling services to perform performance tests on the corresponding pages to be tested; wherein the target calling service is a cloud function service; The result display module is used to display the at least two performance test results respectively in response to the operation of displaying data.

10. An electronic device, It is characterized in that It comprises a processor and a memory, wherein the memory stores program codes, and when the program codes are executed by the processor, the processor executes the steps of any method described in claims 1 to 5 or claim 6.

11. A computer-readable storage medium, It is characterized in that It includes program codes. When the program codes are run on an electronic device, the program codes are used to enable the electronic device to execute the steps of any method described in claims 1 to 5 or claim 6.

12. A computer program product comprising a computer program / instructions, It is characterized in that When the computer program / instructions are executed by a processor, the steps of the method described in claims 1 to 5 or claim 6 are implemented.

Citation Information

Patent Citations

  • Data visualization method for benchmarking page performance of multiple companies

    CN110740081A

  • Application program version comparison monitoring method and device, medium and electronic equipment

    CN113468074A