A method for evaluating business system performance after machine learning based on browser data
By inputting the response time of the test page into the pre-trained machine learning model, combined with the sample data and the response time of similar pages, the accuracy problem of response speed evaluation under the B/S architecture is solved, and the accurate response time of the business system page is achieved. Evaluate and optimize.
Patent Information
- Application Number
- CN202311313915.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-11
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2043-10-11
AI Technical Summary
Under the B/S architecture, developers cannot accurately determine the real response speed of the business system page in the test environment, making it difficult to evaluate and optimize the page response speed.
By inputting the edited test page into the pre-trained machine learning model, the collected sample data is used to determine the actual response time, and compared with the response time in the test environment. If the difference is within the predetermined range, it is determined as the real response time. , otherwise look for comparative response times from similar pages for comparison to determine whether the page's test passes or fails.
Effectively evaluate the real response time of business system pages, ensure the accuracy and reliability of test results, and help developers optimize page performance.
Smart Images

Figure CN117763255B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of business system performance evaluation, and more specifically, to a method for evaluating business system performance after machine learning based on browser data. Background Art
[0002] The business system is used to process business logic. For example, in the power system, the business system can be used to view the status data of each power device and provide services such as user payment of electricity bills. The business system is a software system. The architecture of the software system includes B / S system and C / S system. The following describes these two architectures.
[0003] The Client / Server structure (C / S structure, referred to as CS structure) is a client and server structure. It is a software system architecture that can fully utilize the advantages of the hardware environment at both ends and reasonably allocate tasks to the Client and Server ends to reduce the communication overhead of the system. Under this architecture, the client needs to be installed in the user's operating system. On the one hand, the user's operating system is varied, and different clients need to be developed for different operating systems; on the other hand, based on security considerations, the client cannot be installed on some users' operating systems. Both aspects limit the development of the CS structure.
[0004] B / S architecture (BS architecture for short) is a browser and server architecture model. It is a variation or improvement of C / S architecture with the rise of Internet technology. In this architecture, the user interface is implemented through a WWW browser, a small part of the transaction logic is implemented on the front end (Browser), but the main transaction logic is implemented on the server side (Server). B / S architecture is a network architecture model after the rise of WEB, and the WEB browser is the most important application software on the client side.
[0005] From the characteristics of the BS architecture, it can be seen that as long as the user's operating system has a browser, the system can be used. For the operating system, the browser is configured by default. Therefore, the business system of the BS system can be more widely used.
[0006] Compared with the CS architecture, the weakness of the BS architecture is that the response speed of the page in the browser is relatively slow, so improving the response speed of the page is an issue that developers need to focus on when developing the BS system. After completing a page, developers usually test it in the browser, which also includes the response speed of the page. However, when developers test in a test environment, the response speed will be faster, which is different from the actual business system. Therefore, developers cannot determine the actual response speed of the business system page in actual application in the test environment. Summary of the invention
[0007] In order to solve at least one of the problems described in the above background technology, the present invention provides a method for evaluating business system performance after machine learning based on browser data.
[0008] According to one aspect of the present invention, a method for evaluating business system performance after machine learning based on browser data is provided, comprising:
[0009] Inputting the edited test page into a pre-trained machine learning model to determine the actual response time of the test page, wherein the machine learning model is trained based on a pre-collected sample set, the sample set includes multiple groups of data, each group of data consists of each sample page and the actual response time corresponding to the sample page;
[0010] Comparing the actual response time of the test page with the test response time obtained by the programmer using the test environment, and determining whether a first difference between the actual response time and the test response time is within a first predetermined range;
[0011] When the first difference is within a first predetermined range, the test response time is determined as the actual response time of the test page; when the first difference is outside the predetermined range, a page most similar to the test page is determined from multiple candidate pages as a comparison page, the comparison response time of the comparison page is obtained, and the actual response time is compared with the comparison response time. If the second difference between the actual response time and the comparison response time is within a second predetermined range, it is determined that the test page test has passed, otherwise it is determined that the test page has passed.
[0012] Optionally, the method collects the sample set by following steps:
[0013] Use scripting language to set timers in each sample page;
[0014] The timer is started at the beginning of each sample page, and stopped at the end of each sample page, to obtain the actual display time of each sample page as the actual response time corresponding to each sample page;
[0015] After obtaining the actual response time corresponding to each sample page, each sample page and the actual response time corresponding to each sample page are sent to a server used for machine learning for storage.
[0016] Optionally, determining a page most similar to the test page from a plurality of candidate pages as a comparison page, and obtaining a comparison response time of the comparison page includes:
[0017] Get various functions used in the test page;
[0018] Searching for a page that is most similar to various functions used in the test page from among the sample pages collected in the server as a comparison page;
[0019] The tag of the comparison page is obtained, and the comparison response time of the comparison page is obtained by adding a default unit to the tag.
[0020] Optionally, the method further comprises: in the case where it is determined that the test page fails the test, sending the comparison page and the comparison response time to a programmer.
[0021] According to another aspect of the present invention, there is provided a device for evaluating business system performance after machine learning based on browser data, comprising:
[0022] A determination module is used to input the edited test page into a pre-trained machine learning model to determine the actual response time of the test page, wherein the machine learning model is trained based on a pre-collected sample set, and the sample set includes multiple groups of data, each group of data consists of each sample page and the actual response time corresponding to the sample page;
[0023] A first judgment module, used to compare the actual response time of the test page with the test response time obtained by the programmer using the test environment, and judge whether a first difference between the actual response time and the test response time is within a first predetermined range;
[0024] The second judgment module is used to determine the test response time as the actual response time of the test page when the first difference is within a first predetermined range; when the first difference is outside the predetermined range, determine the page most similar to the test page from multiple candidate pages as a comparison page, obtain the comparison response time of the comparison page, compare the actual response time with the comparison response time, and if the second difference between the actual response time and the comparison response time is within a second predetermined range, determine that the test page test has passed, otherwise fail.
[0025] Optionally, the device further comprises a collecting module, configured to collect the sample set by following the steps:
[0026] Use scripting language to set timers in each sample page;
[0027] The timer is started at the beginning of each sample page, and stopped at the end of each sample page, to obtain the actual display time of each sample page as the actual response time corresponding to each sample page;
[0028] After obtaining the actual response time corresponding to each sample page, each sample page and the actual response time corresponding to each sample page are sent to a server used for machine learning for storage.
[0029] Optionally, the second judgment module is specifically used to:
[0030] Get various functions used in the test page;
[0031] Searching for a page that is most similar to various functions used in the test page from among the sample pages collected in the server as a comparison page;
[0032] The tag of the comparison page is obtained, and the comparison response time of the comparison page is obtained by adding a default unit to the tag.
[0033] Optionally, the device further comprises a sending module, which is used to send the comparison page and the comparison response time to the programmer when it is determined that the test page fails the test.
[0034] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, and the computer program is used to execute the method described in any one of the above aspects of the present invention.
[0035] According to another aspect of the present invention, an electronic device is provided, comprising: a processor; a memory for storing instructions executable by the processor; the processor is configured to read the executable instructions from the memory and execute the instructions to implement the method described in any one of the above aspects of the present invention.
[0036] After the present invention uses a large amount of real data to train and obtain a converged machine learning model, the machine learning model can be used. After the programmer completes the programming of the test page, the programmer can input the page into the machine learning model, and the machine learning model can output the label corresponding to the test page. This label is a numerical value. The numerical value plus the default unit is the actual response time of the test page. Afterwards, the actual response time is compared with the test response time obtained by the programmer using the test environment. If the difference between the actual response time and the test response time is within the first predetermined range, it is considered that the actual response time of the test page can refer to the test response time, that is, the test response time is determined as the actual response time of the test page. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] A more complete understanding of exemplary embodiments of the present invention may be obtained by referring to the following drawings:
[0038] Figure 1It is a flowchart of a method for evaluating business system performance after machine learning based on browser data provided by an exemplary embodiment of the present invention;
[0039] Figure 2 It is a schematic diagram of the structure of an apparatus for evaluating business system performance after performing machine learning on browser data provided by an exemplary embodiment of the present invention;
[0040] Figure 3 This is a structure of an electronic device provided by an exemplary embodiment of the present invention. DETAILED DESCRIPTION
[0041] Below, the exemplary embodiments according to the present invention will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments of the present invention, and it should be understood that the present invention is not limited to the exemplary embodiments described here.
[0042] It should be noted that the relative arrangement of components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
[0043] Figure 1 The flowchart of the method for evaluating the performance of a business system after machine learning based on browser data provided by the present invention is shown. Figure 1 As shown in the figure, the method of evaluating the performance of a business system after performing machine learning on browser data includes:
[0044] Step S10: inputting the edited test page into a pre-trained machine learning model to determine the actual response time of the test page, wherein the machine learning model is trained based on a pre-collected sample set, the sample set includes multiple groups of data, each group of data consists of each sample page and the actual response time corresponding to the sample page;
[0045] Optionally, the method collects the sample set through the following steps: setting a timer in each sample page using a script programming language; starting the timer at the beginning of each sample page and stopping the timer at the end of each sample page to obtain the actual display time of each sample page as the actual response time corresponding to each sample page; after obtaining the actual response time corresponding to each sample page, sending each sample page and the actual response time corresponding to each sample page to a server used for machine learning for storage.
[0046] In the embodiment of the present invention, the business system that has been developed and used in the actual environment can use the script programming language to set a timer in each page. Since the web page reads the code in the page in sequence for display, the timer is started at the beginning of the page and stopped at the end of the page, so that the actual display time of each page can be obtained. After the actual display time of the page is obtained, the page and the actual display time are sent to the server for machine learning for storage.
[0047] Alternatively, this function can be implemented in the browser. When a certain resource is loaded, timing can be performed to obtain the loading time of various resources; or timing can be performed when the page is rendered to obtain the rendering time of the page.
[0048] Machine learning can be divided into supervised machine learning and unsupervised machine learning.
[0049] Supervised learning is: to train an optimal model through existing training samples, and then use this model to map all inputs to corresponding outputs, and make simple judgments on the outputs to achieve the purpose of prediction and classification, which also has the ability to predict and classify unknown data. Just like practicing with standard answers and then taking an exam, the accuracy rate is higher than practicing without answers and then taking an exam. For example, when we were young, we didn’t know whether cows and birds belonged to the same category, but as we grew up, we continued to input various knowledge, and the models in our brains became more and more accurate, and the judgment of animals became more and more accurate.
[0050] Supervised learning can be divided into regression and classification. Regression: given a bunch of independent variables X and dependent variables Y, a function is fitted. These independent variables X are feature vectors, and dependent variables Y are labels. And the values of labels are continuous, such as LR. Classification: Its data set consists of feature vectors X and their labels Y. After you use the data to train a model, you are given a data with only feature vectors but no labels, and you are asked to find out which label it is. The output result is discrete. For example, logistics, SVM, KNN, etc.
[0051] Unsupervised learning is: there is no prior training sample, but the data needs to be modeled directly. For example, when we visit an art exhibition, we know nothing about art, but after appreciating many works, we can also divide them into different factions. The main algorithm of unsupervised learning is clustering. The purpose of clustering is to group similar things together. It is mainly obtained by calculating the distance between samples and groups. The main algorithms include Kmeans, hierarchical clustering, and EM algorithm.
[0052] In the following implementation, a supervised machine learning model is used. A large amount of data is required in a supervised machine learning model. Therefore, a server used for machine learning (hereinafter referred to as the server) collects pages and response times, wherein each group of pages and the response time actually corresponding to the page are taken as a group of data, and the response time actually corresponding to the page can be saved as the label of the page. For example, if the response time of page A collected is 30 milliseconds, 30 milliseconds is used as the label of the page; if the response time of page B collected is 25 milliseconds, 25 milliseconds is used as the label of the page. The label of each page is a number, and the default unit of the number is milliseconds, of course, seconds can also be used as the unit.
[0053] The server can set a threshold, and when the number of groups of data received by the server exceeds the threshold, training can begin. During training, the collected data can be divided into three sets, namely training set, validation set and test set.
[0054] Cross Validation: In data analysis, some algorithms need to use existing data to build models, such as Bayesian classifiers, decision trees, linear regression, etc. These algorithms are collectively called supervised learning algorithms. The data needed to build a model is called training data (Train Data, i.e. training set).
[0055] After the model is built, data is needed to verify the correctness of the model. This part of data is called test data. Test data cannot be used in model construction, but can only be used to verify the accuracy of the model in the end. The following is an explanation of training data, verification data, and test data.
[0056] Generally, when doing predictive analysis, the data is divided into two parts. One part is training data, which is used to build the model, and the other part is test data, which is used to verify the model. However, sometimes the model needs to be verified and assisted in the model building process, so the training data is divided into two parts: 1) training data; 2) validation data (ValidationData). Validation data is used to build the model. A typical example is to use K-Fold Cross Validation to prune the decision tree, find the optimal number of leaf nodes, and prevent overfitting. The following form describes the three types of data mentioned above:
[0057] Training data (Test Data): used for model building.
[0058] Validation Data: used to assist model building and can be reused.
[0059] Test Data: used to test model building. This data is only used during model verification to evaluate the accuracy of the model. It is absolutely not allowed to be used in the model building process, otherwise it will lead to overfitting.
[0060] K-fold Cross Validation: The general idea of K-fold cross validation is to divide the data into K subsamples, take one sample each time as validation data, and take the remaining K-1 samples as training data. After the model is built, it is applied to the validation data to calculate the current error rate. Repeat K times, average the K error rates, and get an overall error rate. The overall error rate can be used to estimate the error rate of the current overall data used for modeling.
[0061] For example, K = 10 (common case), the overall error rate is 8.7%. Then, if all current data are used as training data, the error rate of the obtained model is likely to be around 9.7% with a 90% probability.
[0062] In one example, the training set can account for 70% of all training data, the validation set accounts for 20% of all training data, and the test set accounts for 10% of all training data. This is just an example of division, and it can also be divided according to other proportions. The general principle is that the proportion of the training set is larger than the validation set, and the proportion of the validation set is larger than the test set.
[0063] After the machine learning model is trained with the above data and converged, the model can be used. After the programmer completes the programming of the page, the programmer can input the page into the model, and the model can output the label corresponding to the page. This label is a numerical value. The numerical value plus the default unit is the response time of the page.
[0064] Step S20: comparing the actual response time of the test page with the test response time obtained by the programmer using the test environment, and determining whether a first difference between the actual response time and the test response time is within a first predetermined range;
[0065] In the embodiment of the present invention, after the response time (referred to as the actual response time) is obtained, the actual response time is compared with the response time (referred to as the test response time) obtained by the programmer using the test environment. If the difference between the actual response time and the test response time is within a predetermined range, it is considered that the response time of the page can refer to the test response time. If the difference between the actual response time and the test response time is outside the predetermined range (usually the actual response time is greater than the test response time), it is considered that the response time of the page cannot refer to the actual response time.
[0066] Step S30: When the first difference is within a first predetermined range, the test response time is determined as the actual response time of the test page; when the first difference is outside the predetermined range, a page most similar to the test page is determined from multiple candidate pages as a comparison page, the comparison response time of the comparison page is obtained, and the actual response time is compared with the comparison response time. If the second difference between the actual response time and the comparison response time is within a second predetermined range, it is determined that the test page test has passed, otherwise it is determined that the test page test has passed.
[0067] Optionally, determining a page most similar to the test page from a plurality of candidate pages as a comparison page and obtaining a comparative response time of the comparison page includes: obtaining various functions used in the test page; searching for a page most similar to the various functions used in the test page from sample pages collected in a server as a comparison page; obtaining a label of the comparison page, and adding a default unit to the label to obtain the comparative response time of the comparison page.
[0068] Optionally, the method further comprises: in the case where it is determined that the test page fails the test, sending the comparison page and the comparison response time to a programmer.
[0069] In an embodiment of the present invention, when the difference between the actual response time and the test response time is outside the predetermined range, various functions used in the test page can be obtained, and the page (referred to as the comparison page) that is most similar to the various functions used in the test page can be found in the pages collected in the server, and the label of the comparison page can be obtained, so that the response time of the comparison page (referred to as the comparison response time) can be obtained, and the actual response time and the comparison response time are compared. If the actual response time and the comparison time are within the second predetermined range, it is determined that the test page test has passed, and if the actual response time and the comparison time are not within the second predetermined range, it is determined that the test page test has failed. In the case of a failed test, the comparison page and the comparison response time are sent to the programmer. Through the listing method, the real response time of the business system can be effectively evaluated.
[0070] In summary, after the technical solution of the present invention uses a large amount of real data to train and obtain a converged machine learning model, the machine learning model can be used. After the programmer completes the programming of the test page, the programmer can input the page into the machine learning model, and the machine learning model can output the label corresponding to the test page. This label is a numerical value, and this numerical value plus the default unit is the actual response time of the test page. Afterwards, the actual response time is compared with the test response time obtained by the programmer using the test environment. If the difference between the actual response time and the test response time is within the first predetermined range, it is considered that the actual response time of the test page can refer to the test response time, that is, the test response time is determined as the actual response time of the test page.
[0071] Exemplary Devices
[0072] Figure 2 FIG. 1 is a schematic diagram of a device for evaluating business system performance after performing machine learning on browser data provided by an exemplary embodiment of the present invention. Figure 2 As shown, the device 200 includes:
[0073] A determination module 210 is used to input the edited test page into a pre-trained machine learning model to determine the actual response time of the test page, wherein the machine learning model is trained based on a pre-collected sample set, and the sample set includes multiple groups of data, each group of data consists of each sample page and the actual response time corresponding to the sample page;
[0074] A first judgment module 220, used to compare the actual response time of the test page with the test response time obtained by the programmer using the test environment, and to judge whether a first difference between the actual response time and the test response time is within a first predetermined range;
[0075] The second judgment module 230 is used to determine the test response time as the actual response time of the test page when the first difference is within a first predetermined range; when the first difference is outside the predetermined range, determine the page most similar to the test page from multiple candidate pages as a comparison page, obtain the comparison response time of the comparison page, compare the actual response time with the comparison response time, and if the second difference between the actual response time and the comparison response time is within a second predetermined range, determine that the test page test has passed, otherwise fail.
[0076] Optionally, the apparatus 200 further includes a collecting module, configured to collect the sample set through the following steps:
[0077] Use scripting language to set timers in each sample page;
[0078] The timer is started at the beginning of each sample page, and stopped at the end of each sample page, to obtain the actual display time of each sample page as the actual response time corresponding to each sample page;
[0079] After obtaining the actual response time corresponding to each sample page, each sample page and the actual response time corresponding to each sample page are sent to a server used for machine learning for storage.
[0080] Optionally, the second determining module 230 is specifically configured to:
[0081] Get various functions used in the test page;
[0082] Searching for a page that is most similar to various functions used in the test page from among the sample pages collected in the server as a comparison page;
[0083] The tag of the comparison page is obtained, and the comparison response time of the comparison page is obtained by adding a default unit to the tag.
[0084] Optionally, the apparatus 200 further comprises a sending module, which is used to send the comparison page and the comparison response time to the programmer when it is determined that the test page fails the test.
[0085] The device for evaluating business system performance after performing machine learning on browser data in an embodiment of the present invention corresponds to the method for evaluating business system performance after performing machine learning on browser data in another embodiment of the present invention, which will not be repeated here.
[0086] Exemplary Electronic Devices
[0087] Figure 3 This is a structure of an electronic device provided by an exemplary embodiment of the present invention. Figure 3 As shown, the electronic device 30 includes one or more processors 31 and a memory 32 .
[0088] The processor 31 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions.
[0089] The memory 32 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 31 may run the program instructions to implement the method for information mining of historical change records and / or other desired functions of the software program of each embodiment of the present invention described above. In one example, the electronic device may also include: an input device 33 and an output device 34, and these components are interconnected through a bus system and / or other forms of connection mechanisms (not shown).
[0090] In addition, the input device 33 may also include, for example, a keyboard, a mouse, and the like.
[0091] The output device 34 can output various information to the outside. The output device 34 can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto.
[0092] Of course, to simplify, Figure 3 Only some of the components related to the present invention in the electronic device are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application conditions, the electronic device may also include any other appropriate components.
[0093] Exemplary computer program products and computer-readable storage media
[0094] In addition to the above-mentioned methods and devices, an embodiment of the present invention may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the method according to various embodiments of the present invention described in the above-mentioned "Exemplary Method" section of this specification.
[0095] The computer program product may be written in any combination of one or more programming languages to write program code for performing the operations of the embodiments of the present invention, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0096] In addition, an embodiment of the present invention may also be a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, enables the processor to execute the steps of the method for information mining of historical change records according to various embodiments of the present invention described in the above “Exemplary Method” section of this specification.
[0097] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, system or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media 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.
[0098] The basic principle of the present invention is described above in conjunction with specific embodiments. However, it should be pointed out that the advantages, strengths, effects, etc. mentioned in the present invention are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. must be possessed by each embodiment of the present invention. In addition, the specific details disclosed above are only for the purpose of illustration and facilitation of understanding, rather than limitation, and the above details do not limit the present invention to being implemented by adopting the above specific details.
[0099] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0100] The block diagrams of the devices, systems, equipment, and systems involved in the present invention are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagram. As will be appreciated by those skilled in the art, these devices, systems, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The word "such as" used here refers to the phrase "such as but not limited to", and can be used interchangeably with it.
[0101] The method and system of the present invention may be implemented in many ways. For example, the method and system of the present invention may be implemented by software, hardware, firmware or any combination of software, hardware, firmware. The above order of steps for the method is only for illustration, and the steps of the method of the present invention are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present invention may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present invention. Thus, the present invention also covers a recording medium storing a program for executing the method according to the present invention.
[0102] It should also be noted that in the system, device and method of the present invention, each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. The above description of the disclosed aspects is provided to enable any technician in the field to make or use the present invention. Various modifications to these aspects are very obvious to those skilled in the art, and the general principles defined here can be applied to other aspects without departing from the scope of the present invention. Therefore, the present invention is not intended to be limited to the aspects shown here, but in accordance with the widest range consistent with the principles and novel features disclosed here.
[0103] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present invention to the forms disclosed herein. Although a number of example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims
1. A method for evaluating business system performance after machine learning based on browser data, characterized in that: include: Inputting the edited test page into a pre-trained machine learning model to determine the actual response time of the test page, wherein the machine learning model is trained based on a pre-collected sample set, the sample set includes multiple groups of data, each group of data consists of each sample page and the actual response time corresponding to the sample page; Comparing the actual response time of the test page with the test response time obtained by the programmer using the test environment, and determining whether a first difference between the actual response time and the test response time is within a first predetermined range; When the first difference is within a first predetermined range, determining the test response time as a real response time of the test page; When the first difference is outside the predetermined range, determining a page most similar to the test page from a plurality of candidate pages as a comparison page, obtaining a comparison response time of the comparison page, comparing the actual response time with the comparison response time, and determining that the test page passes the test if the second difference between the actual response time and the comparison response time is within a second predetermined range, otherwise, determining that the test page passes the test; in The step of determining a page most similar to the test page from a plurality of candidate pages as a comparison page and obtaining a comparison response time of the comparison page includes: Get various functions used in the test page; Searching for a page that is most similar to various functions used in the test page from among the sample pages collected in the server as a comparison page; The tag of the comparison page is obtained, and the comparison response time of the comparison page is obtained by adding a default unit to the tag.
2. The method according to claim 1, characterized in that The sample set was collected by following the steps below: Use scripting language to set timers in each sample page; The timer is started at the beginning of each sample page, and stopped at the end of each sample page, to obtain the actual display time of each sample page as the actual response time corresponding to each sample page; After obtaining the actual response time corresponding to each sample page, each sample page and the actual response time corresponding to each sample page are sent to a server used for machine learning for storage.
3. The method according to claim 1, characterized in that Also includes: When it is determined that the test page fails the test, the comparison page and the comparison response time are sent to the programmer.
4. A device for evaluating business system performance after machine learning based on browser data, characterized in that: include: A determination module is used to input the edited test page into a pre-trained machine learning model to determine the actual response time of the test page, wherein the machine learning model is trained based on a pre-collected sample set, and the sample set includes multiple groups of data, each group of data consists of each sample page and the actual response time corresponding to the sample page; A first judgment module, used to compare the actual response time of the test page with the test response time obtained by the programmer using the test environment, and judge whether a first difference between the actual response time and the test response time is within a first predetermined range; A second judgment module, configured to determine the test response time as the actual response time of the test page when the first difference is within a first predetermined range; When the first difference is outside the predetermined range, a page most similar to the test page is determined from multiple candidate pages as a comparison page, a comparison response time of the comparison page is obtained, and the actual response time is compared with the comparison response time. If the second difference between the actual response time and the comparison response time is within a second predetermined range, it is determined that the test page has passed the test, otherwise it is determined that it has not passed the test; wherein The second judgment module is specifically used to: Get various functions used in the test page; Searching for a page that is most similar to various functions used in the test page from among the sample pages collected in the server as a comparison page; The tag of the comparison page is obtained, and the comparison response time of the comparison page is obtained by adding a default unit to the tag.
5. The device according to claim 4, characterized in that The system also includes a collecting module, which is used to collect the sample set by following steps: Use scripting language to set timers in each sample page; The timer is started at the beginning of each sample page, and stopped at the end of each sample page, to obtain the actual display time of each sample page as the actual response time corresponding to each sample page; After obtaining the actual response time corresponding to each sample page, each sample page and the actual response time corresponding to each sample page are sent to a server used for machine learning for storage.
6. The device according to claim 4, characterized in that The system also includes a sending module, which is used to send the comparison page and the comparison response time to the programmer when it is determined that the test page fails the test.
7. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to execute the method according to any one of claims 1 to 3.
8. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the method described in any one of claims 1 to 3.
