Front-end performance diagnosis method, device and equipment based on artificial intelligence

By using an AI-based front-end performance diagnostic method, test cases are automatically matched and diagnostic indicator data is analyzed, solving the problem of missed tests and diagnoses caused by manual operation and achieving efficient and accurate performance diagnosis.

CN121029599APending Publication Date: 2025-11-28INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511146987.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-15
Publication Date
2025-11-28

AI Technical Summary

Technical Problem

In existing technologies, relying on browser developer tools operated manually by engineers for performance diagnosis is prone to missed tests and diagnoses, which can lead to the risk of online application software crashing.

Method used

An AI-based front-end performance diagnostic method is adopted. By obtaining the analysis target address and diagnostic requirements input by the user, the method automatically matches test cases and analyzes diagnostic indicator data using a preset AI model, and outputs diagnostic optimization documents.

Benefits of technology

It enables automated performance diagnosis, avoids missed tests and diagnoses, reduces reliance on engineers, and improves diagnostic efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121029599A_ABST
    Figure CN121029599A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a front-end performance diagnosis method, device and equipment based on artificial intelligence. The method comprises the steps of obtaining an analysis target address, diagnostic analysis basic data and a diagnostic demand input by a user through a performance analysis interaction interface; matching a test case according to the diagnosis analysis basic data, and determining diagnosis index data through the test case according to the analysis target address; and analyzing the diagnosis index data by using a preset artificial intelligence model, and outputting a diagnosis optimization document according to an analysis result obtained by analysis and the diagnosis demand. On the basis, automatic testing and automatic analysis of the front-end performance diagnosis are realized by automatically matching the test cases and utilizing the artificial intelligence model for analysis, and the situation of missed diagnosis possibly existing during manual diagnosis is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to the technical field of artificial intelligence, and in particular to a front-end performance diagnosis method and device based on artificial intelligence. BACKGROUND

[0002] With the continuous development of Internet technology, in the field of software development and online application development, in order to enable the developed online application to achieve the required performance, the performance thereof is usually diagnosed and optimized.

[0003] Usually, a traditional browser developer tool is used as an analysis means, and functions such as page loading, network request capture, and call stack tracking are triggered by manually operating the interface to complete the performance diagnosis of the online application and software.

[0004] However, this manual operation method relies too much on the testing ability and testing experience of engineers, and is prone to problems of missed testing and missed diagnosis, which may cause serious consequences such as application software running crash after being put online. SUMMARY

[0005] Embodiments of the present application provide a front-end performance diagnosis method and device based on artificial intelligence to reduce the manual dependence on engineers, realize automatic performance diagnosis, and avoid the occurrence of missed testing and missed diagnosis.

[0006] In a first aspect, embodiments of the present application provide a front-end performance diagnosis method based on artificial intelligence, the method comprising:

[0007] obtaining an analysis target address, diagnosis analysis basis data, and diagnosis requirements input by a user through a performance analysis interactive interface;

[0008] matching test cases according to the diagnosis analysis basis data, and determining diagnosis index data through the test cases according to the analysis target address;

[0009] analyzing the diagnosis index data using a preset artificial intelligence model, and outputting a diagnosis optimization document according to the analysis results obtained by the analysis and the diagnosis requirements.

[0010] In a second aspect, embodiments of the present application provide a front-end performance diagnosis device based on artificial intelligence, the device comprising:

[0011] an obtaining module configured to obtain an analysis target address, diagnosis analysis basis data, and diagnosis requirements input by a user through a performance analysis interactive interface;

[0012] a determining module configured to match test cases according to the diagnosis analysis basis data, and determine diagnosis index data through the test cases according to the analysis target address;

[0013] An analysis output module is configured to analyze the diagnosis index data by using a preset artificial intelligence model, and output a diagnosis optimization document according to an analysis result obtained by the analysis and the diagnosis requirement.

[0014] In a third aspect, the embodiments of the present application further provide an electronic device, which comprises:

[0015] one or more processors;

[0016] a storage device configured to store one or more programs,

[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the artificial intelligence-based front-end performance diagnosis method provided in any of the embodiments of the present application.

[0018] In a fourth aspect, the embodiments of the present application further provide a computer-readable storage medium having a computer program stored thereon, which is executed by a processor to implement the artificial intelligence-based front-end performance diagnosis method provided in any of the embodiments of the present application.

[0019] In a fifth aspect, the embodiments of the present application further provide a computer program product comprising computer programs / instructions, which are executed by a processor to implement the artificial intelligence-based front-end performance diagnosis method provided in any of the embodiments of the present application.

[0020] The technical scheme of the embodiments of the present application obtains an analysis target address, diagnosis analysis basic data and diagnosis requirement input by a user through a performance analysis interactive interface, matches a test case according to the diagnosis analysis basic data, and determines diagnosis index data through the test case according to the analysis target address; the diagnosis index data is analyzed by using a preset artificial intelligence model, and a diagnosis optimization document is output according to an analysis result obtained by the analysis and the diagnosis requirement. Based on this, by automatically matching the test case and analyzing by using the artificial intelligence model, automatic testing and automatic analysis of front-end performance diagnosis are realized, and the occurrence of missed diagnosis that may exist in manual diagnosis is avoided. BRIEF DESCRIPTION OF DRAWINGS

[0021] Figure 1 A flowchart of the artificial intelligence-based front-end performance diagnosis method provided in Embodiment One of the present application;

[0022] Figure 2 An interface diagram of the analysis interactive interface provided in Embodiment One of the present application;

[0023] Figure 3 An interface diagram of another analysis interactive interface provided in Embodiment One of the present application;

[0024] Figure 4A structural schematic diagram of an artificial intelligence-based front-end performance diagnosis device provided in Embodiment Two of the present application;

[0025] Figure 5 A structural schematic diagram of an electronic device provided in Embodiment Three of the present application. DETAILED DESCRIPTION

[0026] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application. In addition, it should be noted that, for the convenience of description, only the parts related to the present application are shown in the drawings, but not all the structures.

[0027] Embodiment One

[0028] Figure 1 A flowchart of an artificial intelligence-based front-end performance diagnosis method provided in Embodiment One of the present application, as shown in Figure 1 The artificial intelligence-based front-end performance diagnosis method provided in the present embodiment can be applied to an artificial intelligence-based front-end performance diagnosis platform carried on a device with data processing capability such as a computer, and can realize better experience in cooperation with some application software. Specifically, it can include the following steps:

[0029] Step 101, obtaining the analysis target address, diagnosis analysis basic data and diagnosis requirements input by the user through the performance analysis interactive interface.

[0030] It should be noted that the front-end in the present embodiment can be but is not limited to online application software such as web pages, and the analysis interactive interface in the present step can be but is not limited to setting two analysis targets of page analysis and code analysis, each of which corresponds to different analysis target addresses and diagnosis analysis basic data.

[0031] Specifically, the analysis interactive interface corresponding to the page analysis can be seen from Figure 2 , Figure 2 A interface schematic diagram of an analysis interactive interface provided in Embodiment One of the present application.

[0032] As shown in Figure 2 , the interface is provided with two options of page analysis and code analysis, and the black one is selected, i.e. the currently selected one is the analysis target of page analysis, the corresponding analysis target address is page URL (i.e. web source address), and the diagnosis analysis basic data is performance index (i.e. page analysis index). The interface is also provided with a start analysis button for triggering the user to start analysis after inputting the analysis target address and diagnosis analysis basic data.

[0033] In addition, the analysis interactive interface corresponding to the code analysis can be seen from Figure 3 , Figure 3This is a schematic diagram of another analysis interaction interface provided in Embodiment 1 of this application.

[0034] like Figure 3 As shown, the interface offers two options: page analysis and code analysis. The option highlighted in bold indicates that code analysis is currently selected, with the corresponding analysis target address being the code repository address. The basic data for diagnostic analysis is the code folder (i.e., the scan path and excluded files). It also allows users to select the code source (Gerrit or local).

[0035] The interface also includes a "Start Analysis" button, which is used to trigger the analysis process after the user inputs the target address and basic diagnostic data.

[0036] Step 102: Match test cases based on the basic data of diagnostic analysis, and determine the diagnostic indicator data through test cases based on the target address of analysis.

[0037] In this step, for page analysis, the target address for analysis includes the webpage source address, and the basic data for diagnostic analysis includes at least one page analysis indicator; the test cases corresponding to each page analysis indicator can be determined according to the preset first indicator test case mapping relationship.

[0038] The first indicator test case mapping relationship sets up multiple different page analysis indicators, each with its own corresponding test cases. Page analysis indicators include page load time, resource loading status, memory usage, etc. Each indicator corresponds to a test case. When the test case is executed, the test data of the corresponding indicator can be obtained.

[0039] Therefore, when obtaining diagnostic indicator data corresponding to page analysis, a headless browser mechanism can be used to simulate the operation of the webpage corresponding to the analysis target address; test cases can be used to test the various page analysis indicators of the webpage during the operation to obtain diagnostic indicator data.

[0040] Among them, the headless browser can simulate a browser to open web pages. Based on the characteristics of the headless browser, the process runs faster and can improve the efficiency of obtaining diagnostic indicator data.

[0041] For code analysis, the target address for analysis includes the code repository address, and the basic data for diagnostic analysis includes the scan path, excluded files, and at least one code analysis metric. It should be noted that since code tests often share commonalities and the test metrics tend to converge, some default metrics can be pre-set, which are the code analysis metrics used in this step.

[0042] Correspondingly, the respective test case corresponding to each code analysis index can be determined according to a preset second index-case mapping relationship. The second index-case relationship stores the mapping relationship between the code analysis index and the corresponding test case.

[0043] After the test case is determined, the target code can be obtained according to the code library address, the scanning path and the exclusion file, and the obtained target code is tested by using the test case to obtain the diagnosis index data.

[0044] The code library address can indicate the location of the code storage, and the scanning path and the exclusion file can assist in more accurately finding the target code to be tested.

[0045] In step 103, the preset artificial intelligence model is used to analyze the diagnosis index data, and a diagnosis optimization document is output according to the analysis result obtained by the analysis and the diagnosis requirement.

[0046] In this step, the preset artificial intelligence model should have performance analysis capability and intelligent thinking capability, so that the diagnosis index data can be analyzed by using the performance analysis capability and the intelligent thinking capability of the preset artificial intelligence model to obtain the analysis result.

[0047] The analysis result can include test data of each index, and current problems and improvement ideas corresponding to the problems. Then, key data is extracted from the analysis result according to the diagnosis requirement, and the key data is visually output according to a preset visualization form to obtain the diagnosis optimization document.

[0048] It should be noted that the document can include performance index data, network loading condition and time length, and existing problems and improvement ideas, and the report can be read by non-professionals, effectively reducing the requirement for performance analysis.

[0049] In a specific example, the document can include the following contents:

[0050] Performance index: core Web index (LCP / FCP / CLS), resource loading timeline, memory usage trend;

[0051] Network analysis: request waterfall chart, top 5 slow requests, resource volume distribution;

[0052] Problem diagnosis: clearly mark the three most serious problems, and attach root cause explanation;

[0053] Improvement scheme: priority (high / medium / low) optimization suggestion, including code example and configuration guide.

[0054] In addition, in order to improve the readability of the document, chart visualization, interpretation popularization, priority marking and the like can be performed, and the output format of the document is increased to realize the function of multi-format export.

[0055] In the embodiment, the analysis target address, the diagnosis analysis basic data and the diagnosis requirement input by the user through the performance analysis interactive interface are acquired, the test case is matched according to the diagnosis analysis basic data, and the diagnosis index data is determined through the test case according to the analysis target address, the diagnosis optimization document is output according to the analysis result obtained by analyzing the diagnosis index data by using the preset artificial intelligence model and the diagnosis requirement. Based on this, by automatically matching the test case and analyzing by using the artificial intelligence model, automatic testing and automatic analysis of the front-end performance diagnosis are realized, and the occurrence of the missed diagnosis that may exist in manual diagnosis is avoided.

[0056] Embodiment Two

[0057] Figure 4 A structure schematic diagram of a front-end performance diagnosis device based on artificial intelligence provided in Embodiment Two of the application. The front-end performance diagnosis device based on artificial intelligence provided in the embodiment has the functions and advantages of the front-end performance diagnosis method based on artificial intelligence provided in any embodiment of the application. The device can be realized in software and / or hardware. Figure 4 As shown in the figure, the front-end performance diagnosis device based on artificial intelligence specifically comprises an acquisition module 401, a determination module 402 and an analysis output module 403.

[0058] The acquisition module is configured to acquire the analysis target address, the diagnosis analysis basic data and the diagnosis requirement input by the user through the performance analysis interactive interface.

[0059] The determination module is configured to match the test case according to the diagnosis analysis basic data, and determine the diagnosis index data through the test case according to the analysis target address.

[0060] The analysis output module is configured to analyze the diagnosis index data by using the preset artificial intelligence model, and output the diagnosis optimization document according to the analysis result obtained by analyzing the diagnosis index data and the diagnosis requirement.

[0061] Further, the analysis target address comprises a web source address, and the diagnosis analysis basic data comprises at least one page analysis index.

[0062] The determination module comprises:

[0063] According to the preset first index case mapping relationship, the test case corresponding to each page analysis index is determined.

[0064] Further, the determination module comprises:

[0065] The headless browser mechanism is used to simulate the operation of the webpage corresponding to the analysis target address;

[0066] Test cases are used to analyze metrics of each page of the webpage during operation to obtain diagnostic metric data.

[0067] Furthermore, the target address for analysis includes the code repository address, and the basic data for diagnostic analysis includes the scan path, excluded files, and at least one code analysis indicator.

[0068] The module to be determined includes:

[0069] Based on the pre-defined second indicator test case mapping relationship, determine the test cases corresponding to each code analysis indicator.

[0070] Furthermore, the defined modules include:

[0071] The target code is obtained by identifying the code repository address, scan path, and excluded files. Test cases are then used to perform test scans on the obtained target code to obtain diagnostic indicator data.

[0072] Furthermore, the analysis output module includes:

[0073] The diagnostic indicator data is analyzed using the performance analysis and intelligent thinking capabilities of a pre-set artificial intelligence model to obtain the analysis results;

[0074] Extract key data from the analysis results according to diagnostic needs, and visualize the key data in a preset visualization format to obtain a diagnostic optimization document.

[0075] Example 3

[0076] Figure 5 This is a schematic diagram of the structure of an electronic device provided in Embodiment 3 of this application, as shown below. Figure 5 As shown, the electronic device includes a processor 510, a memory 520, an input device 530, and an output device 540; the number of processors 510 in the electronic device can be one or more. Figure 5 Taking a processor 510 as an example; the processor 510, memory 520, input device 530, and output device 540 in the electronic device can be connected via a bus or other means. Figure 5 Taking the example of a connection between China and Israel via a bus.

[0077] The memory 520, as a computer readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the front-end performance diagnosis method based on artificial intelligence in the embodiment of the present application. The processor 510 performs various functional applications and data processing of the electronic device by running the software programs, instructions and modules stored in the memory 520, that is, implements the above-mentioned front-end performance diagnosis method based on artificial intelligence:

[0078] Obtaining the analysis target address, the diagnosis analysis basic data and the diagnosis requirement input by the user through the performance analysis interactive interface;

[0079] Matching the test case according to the diagnosis analysis basic data, and determining the diagnosis index data through the test case according to the analysis target address;

[0080] Analyzing the diagnosis index data by using a preset artificial intelligence model, and outputting a diagnosis optimization document according to the analysis result obtained by the analysis and the diagnosis requirement.

[0081] Further, the analysis target address includes a web source address, and the diagnosis analysis basic data includes at least one page analysis index;

[0082] Matching the test case according to the diagnosis analysis basic data, including:

[0083] According to a preset first index case mapping relationship, determining the respective test case corresponding to each page analysis index.

[0084] Further, determining the diagnosis index data through the test case according to the analysis target address, including:

[0085] Simulating the running of the web page corresponding to the analysis target address by using a headless browser mechanism;

[0086] Testing each page analysis index of the web page in the running process by using the test case to obtain the diagnosis index data.

[0087] Further, the analysis target address includes a code library address, and the diagnosis analysis basic data includes a scanning path, an excluded file and at least one code analysis index;

[0088] Matching the test case according to the diagnosis analysis basic data, including:

[0089] According to a preset second index case mapping relationship, determining the respective test case corresponding to each code analysis index.

[0090] Further, determining the diagnosis index data through the test case according to the analysis target address, including:

[0091] According to the code library address, the scanning path, and the excluded file, target code is acquired, and the target code is tested and scanned by using a test case to obtain diagnosis index data.

[0092] Further, the diagnosis index data is analyzed by using a preset artificial intelligence model, and a diagnosis optimization document is output according to an analysis result obtained by the analysis and diagnosis requirements, including:

[0093] The diagnosis index data is analyzed by using a performance analysis capability and an intelligent thinking capability of the preset artificial intelligence model to obtain an analysis result.

[0094] Key data is extracted from the analysis result according to diagnosis requirements, and the key data is visually output in a preset visual form to obtain the diagnosis optimization document.

[0095] The memory 520 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system and at least one application required by a function; and the data storage area can store data created according to the use of the terminal. In addition, the memory 520 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some examples, the memory 520 can further include a memory remotely arranged relative to the processor 510, which can be connected to the electronic device through a network. Examples of the above network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0096] Embodiment Four

[0097] The embodiment four of the application further provides a storage medium containing computer executable instructions, which are used to execute an artificial intelligence-based front-end performance diagnosis method when executed by a computer processor, and the method comprises the following steps:

[0098] An analysis target address, diagnosis analysis basic data, and diagnosis requirements input by a user through a performance analysis interactive interface are acquired;

[0099] Test cases are matched according to the diagnosis analysis basic data, and diagnosis index data is determined by the test cases according to the analysis target address;

[0100] The diagnosis index data is analyzed by using a preset artificial intelligence model, and a diagnosis optimization document is output according to an analysis result obtained by the analysis and diagnosis requirements.

[0101] Further, the analysis target address includes a web source address, and the diagnosis analysis basic data includes at least one page analysis index.

[0102] The test cases are matched according to the diagnosis analysis basic data, including:

[0103] According to the preset first index case mapping relationship, determine the respective test cases corresponding to each page analysis index.

[0104] Further, according to the analysis target address, determine the diagnostic index data through the test cases, including:

[0105] Simulate the running of the web page corresponding to the analysis target address by using the headless browser mechanism;

[0106] Test each page analysis index of the web page in the running process by using the test cases to obtain the diagnostic index data.

[0107] Further, the analysis target address includes a code library address, and the diagnostic analysis basic data includes a scanning path, excluded files, and at least one code analysis index.

[0108] Match the test cases according to the diagnostic analysis basic data, including:

[0109] According to the preset second index case mapping relationship, determine the respective test cases corresponding to each code analysis index.

[0110] Further, according to the analysis target address, determine the diagnostic index data through the test cases, including:

[0111] According to the code library address, the scanning path, and the excluded files, obtain the target code, and test and scan the obtained target code by using the test cases to obtain the diagnostic index data.

[0112] Further, analyze the diagnostic index data by using a preset artificial intelligence model, and output a diagnostic optimization document according to the analysis result obtained by the analysis and the diagnostic requirement, including:

[0113] Analyze the diagnostic index data by using the performance analysis ability and the intelligent thinking ability of the preset artificial intelligence model to obtain an analysis result.

[0114] Extract key data from the analysis result according to the diagnostic requirement, and visually output the key data according to a preset visual form to obtain the diagnostic optimization document.

[0115] Of course, the storage medium provided by the embodiment of the application contains computer executable instructions, which are not limited to the method operations described above, and can also perform related operations in the front-end performance diagnosis method based on artificial intelligence provided by any embodiment of the application.

[0116] Those skilled in the art can clearly understand, through the above description of the embodiments, that the present application can be realized by means of software and necessary general hardware, and of course can also be realized by hardware, but in many cases the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product, which can be stored in a computer readable storage medium, such as a floppy disk, a read-only memory (ROM), a random access memory (RAM), a FLASH memory, a hard disk or an optical disk, etc., including a number of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute the methods of various embodiments of the present application.

[0117] It is worth noting that in the above embodiments of the device, each unit and module included is only divided according to functional logic, but is not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy distinction from each other, and do not limit the protection scope of the present application.

[0118] Embodiment five

[0119] The embodiment provides a computer program product, including computer programs / instructions, which are executed by a processor to realize the artificial intelligence-based front-end performance diagnosis method provided by any of the embodiments of the present application. The method can specifically include:

[0120] Obtaining the analysis target address, the diagnosis analysis basic data and the diagnosis requirement input by the user through the performance analysis interactive interface;

[0121] Matching the test case according to the diagnosis analysis basic data, and determining the diagnosis index data through the test case according to the analysis target address;

[0122] Analyzing the diagnosis index data by using a preset artificial intelligence model, and outputting a diagnosis optimization document according to the analysis result obtained by the analysis and the diagnosis requirement.

[0123] Further, the analysis target address includes a web source address, and the diagnosis analysis basic data includes at least one page analysis index;

[0124] Matching the test case according to the diagnosis analysis basic data includes:

[0125] According to the preset first index case mapping relationship, determining the respective test case corresponding to each page analysis index.

[0126] Further, according to the analysis target address, the diagnostic index data is determined through the test case, including:

[0127] The web page corresponding to the analysis target address is simulated and run by using the headless browser mechanism.

[0128] The test case is used to test each page analysis index of the web page in the running process, and the diagnostic index data is obtained.

[0129] Further, the analysis target address includes a code library address, and the diagnostic analysis basic data includes a scanning path, an excluded file, and at least one code analysis index.

[0130] The test case is matched according to the diagnostic analysis basic data, including:

[0131] According to the preset second index case mapping relationship, the test case corresponding to each code analysis index is determined.

[0132] Further, according to the analysis target address, the diagnostic index data is determined through the test case, including:

[0133] According to the code library address, the scanning path, and the excluded file, the target code is obtained, and the test case is used to test and scan the obtained target code, and the diagnostic index data is obtained.

[0134] Further, the diagnostic index data is analyzed by using a preset artificial intelligence model, and a diagnostic optimization document is output according to the analysis result obtained by the analysis and the diagnostic requirement, including:

[0135] The diagnostic index data is analyzed by using the performance analysis ability and the intelligent thinking ability of the preset artificial intelligence model, and the analysis result is obtained.

[0136] According to the diagnostic requirement, the key data is extracted from the analysis result, and the key data is visually output according to the preset visual form, and the diagnostic optimization document is obtained.

[0137] Note that the above is only a preferred embodiment of the present application and the technical principle applied. Those skilled in the art will understand that the present application is not limited to the specific embodiments herein, and those skilled in the art can make various obvious changes, re-adjustments and substitutions without departing from the scope of the present application. Therefore, although the present application has been described in detail through the above embodiments, the present application is not limited to the above embodiments, and can include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims

1. A front-end performance diagnosis method based on artificial intelligence, characterized in that, The method includes: Obtain the target address for analysis, basic data for diagnostic analysis, and diagnostic requirements input by the user through the performance analysis interactive interface; Test cases are matched based on the diagnostic analysis baseline data, and diagnostic indicator data are determined through the test cases based on the analysis target address. The diagnostic indicator data is analyzed using a preset artificial intelligence model, and a diagnostic optimization document is output based on the analysis results and the diagnostic requirements.

2. The method according to claim 1, characterized in that, The target address for analysis includes the webpage source address, and the basic data for diagnostic analysis includes at least one page analysis indicator. The process of matching test cases based on the diagnostic analysis baseline data includes: Based on the preset first indicator test case mapping relationship, determine the test cases corresponding to each of the page analysis indicators.

3. The method according to claim 2, characterized in that, The step of determining diagnostic indicator data based on the analysis target address and the test cases includes: The headless browser mechanism is used to simulate the operation of the webpage corresponding to the analysis target address; The test cases are used to test the analysis metrics of each page of the webpage during the operation, and diagnostic indicator data is obtained.

4. The method according to claim 1, characterized in that, The target address for analysis includes the code repository address, and the basic data for diagnostic analysis includes the scan path, excluded files, and at least one code analysis indicator. The process of matching test cases based on the diagnostic analysis baseline data includes: Based on the preset second indicator test case mapping relationship, determine the test case corresponding to each of the code analysis indicators.

5. The method according to claim 4, characterized in that, The step of determining diagnostic indicator data based on the analysis target address and the test cases includes: The target code is obtained based on the code repository address, the scan path, and excluded files. Test cases are then used to perform test scans on the obtained target code to obtain diagnostic indicator data.

6. The method according to claim 1, characterized in that, The step of analyzing the diagnostic indicator data using a preset artificial intelligence model and outputting a diagnostic optimization document based on the analysis results and the diagnostic requirements includes: The diagnostic indicator data is analyzed using the performance analysis and intelligent thinking capabilities of the preset artificial intelligence model to obtain analysis results; According to the diagnostic requirements, key data is extracted from the analysis results, and the key data is visualized and output in a preset visualization format to obtain a diagnostic optimization document.

7. A front-end performance diagnostic device based on artificial intelligence, characterized in that, The device includes: The acquisition module is used to acquire the target address for analysis, basic data for diagnostic analysis, and diagnostic requirements input by the user through the performance analysis interactive interface. The determination module is used to match test cases based on the diagnostic analysis basic data, and determine diagnostic indicator data based on the analysis target address through the test cases; The analysis output module is used to analyze the diagnostic indicator data using a preset artificial intelligence model, and output a diagnostic optimization document based on the analysis results and the diagnostic requirements.

8. An electronic device, characterized in that, include: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the AI-based front-end performance diagnostic method as described in any one of claims 1-6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by the processor, the program implements the AI-based front-end performance diagnostic method as described in any one of claims 1-6.

10. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instruction is executed by the processor, it implements the AI-based front-end performance diagnostic method as described in any one of claims 1-6.