CN101635655B - Method, device and system for page performance test - Google Patents
Method, device and system for page performance test Download PDFInfo
- Publication number
- CN101635655B CN101635655B CN2008101347517A CN200810134751A CN101635655B CN 101635655 B CN101635655 B CN 101635655B CN 2008101347517 A CN2008101347517 A CN 2008101347517A CN 200810134751 A CN200810134751 A CN 200810134751A CN 101635655 B CN101635655 B CN 101635655B
- Authority
- CN
- China
- Prior art keywords
- page
- overall
- performance
- performance data
- information table
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a method, a device and a system for a page performance test. The method comprises the following steps: acquiring overall page performance data and page element performance data of a page monitoring point, and storing the data into an overall page information table and a page element information table respectively; counting the page element performance data with the same attribute, generating a corresponding page element performance data set, and adding the data set to the overall page information table; and according to the overall page performance data and/or the corresponding page element performance data set in the overall page information table, calculating performance parameters of the page monitoring point, and storing the page performance parameters into a page performance parameter table. The method, the device and the system test the page performance of a web client and analyze the problems of the page performance so as to find out the bottleneck of the page performance for the convenience of tuning, and can match with the conventional server end performance test to form a complete performance test system so as to comprehensively monitor the performances of a server and a client and improve the user experience.
Description
Technical field
The present invention relates to the performance test field, particularly relate to a kind of method, Apparatus and system that is directed against the page performance test of web client in the b/s framework.
Background technology
When LAN-ignorant program was popularized, performance was not paid attention to by most of people, universal day by day along with the Internet still, and the appearance of c/s framework and b/s framework, performance is paid attention to by People more and more.Especially for the b/s framework, because without download client, all data all can be obtained from server, so performance is the most important as far as server.All the time, there is a kind of common recognition in those skilled in the art, and promptly server performance has improved, and then corresponding client performance has also just improved naturally, thereby in the prior art, normally carries out performance test to server end.Particularly, performance test be the testing tool simulation production environment operation through automation the traffic pressure amount with use the scene combination, multiple normal, peak value of system and abnormal load condition are tested, like load testing, pressure test etc.The main purpose of performance test is, whether verification system can reach the performance index that the user proposes, and finds the performance bottleneck that exists in the software systems simultaneously, and Optimization Software plays the purpose of optimization system at last.
And in fact, what directly influence user experience is the web client, and; The factor that has influence on the web client performance is a lot; Like network delay, packet loss, configuration of client or the like; Thereby in the b/s framework, the performance test of web client also should become the important component part in the performance test system.
Thereby; One of technical problem that present those skilled in the art press for solution is; How to overcome the technological prejudice that prior art is only carried out performance test to server end, propose the page performance test method of web client in a kind of b/s framework, through monitoring the performance of web client simply, efficiently; Find page performance bottleneck, optimize the web client performance.
Summary of the invention
Technical problem to be solved by this invention provides a kind of method of page performance test, in order to through monitoring the performance of web client simply, efficiently, finds page performance bottleneck, optimizes the web client performance.
Another object of the present invention has provided a kind of device and system of page performance test, in order to guarantee realization and the application of said method in reality.
For solving the problems of the technologies described above, the embodiment of the invention provides a kind of method of page performance test to comprise:
Gather the overall page performance data and the page elements performance data of page control point, and be stored to respectively in overall page information table and the page elements information table;
Statistics has the page elements performance data of same alike result, generates corresponding page elements performance data set, and is added in the said overall page information table;
According to overall page performance data in the said overall page information table and/or the set of corresponding page element performance data, calculate the performance parameter of said page control point, and said page performance parameter is stored in the page performance parameter table.
Preferably, said overall page information table, page elements information table and page performance parameter table are kept at server end, and described method also comprises:
Receive the page performance data querying condition that client is submitted to;
From said overall page information table, page elements information table and/or page performance parameter table, extract corresponding overall page performance data, page elements performance data and/or page performance parameter according to said querying condition, the generated query result also is back to client.
Preferably, described method also comprises:
Represent said Query Result in client.
Preferably, said overall page performance data comprises interaction times, the server host name of the page and the number of times that the page is asked to the server transmission of byte number, the page and the server of acquisition time, the page overall download time, page fault sum, the page receptions/transmissions; Said page elements performance data comprises URL, page elements type, the download time of page elements, the download state of page elements and the time that page elements begins to download of acquisition time, page elements.
Preferably, the overall page performance data of said page control point and page elements performance data form corresponding relation based on same acquisition time, and said overall page information table and page elements information table are associated according to same acquisition time.
Preferably, source that said page elements performance data with same alike result is said page elements and/or the identical page elements performance data of page elements type, acquisition is extracted in the source of said page elements from the URL of said page elements.
Preferably, the step of the performance parameter of said calculating page control point further comprises:
From said overall page information table, extract in the certain hour scope the overall download time of all pages of said page control point;
To the overall download time calculating of said page initial average output value, said initial average output value is stored in the page performance parameter table.
Preferably, the step of the performance parameter of said calculating page control point further comprises:
Generate the abnormal data decision threshold according to said initial average output value, confirm overall download time of the unusual page and quantity according to said abnormal data decision threshold;
Remove the said unusual page overall download time, remaining each page overall download time is recomputated new mean value;
Quantity and/or the new mean value of said abnormal data decision threshold, the unusual page overall download time are recorded in the page performance parameter table.
Preferably, the step of the performance parameter of said calculating page control point further comprises:
From said overall page information table, extract in the certain hour scope page elements performance data set with same alike result of said page control point;
Calculate the mean value of the download time of each page elements in the said page elements performance data set, and said element mean value is recorded in the page performance parameter table.
The embodiment of the invention also discloses a kind of device of page performance test, comprising:
Data acquisition module is used to gather the overall page performance data and the page elements performance data of page control point, and is stored to respectively in overall page information table and the page elements information table;
The statistic of classification module is used to add up the page elements performance data with same alike result, generates corresponding page elements performance data set, and is added in the said overall page information table;
The performance parameter computing module; Be used for overall page performance data and/or the set of corresponding page element performance data according to said overall page information table; Calculate the performance parameter of said page control point, and said page performance parameter is stored in the page performance parameter table.
Preferably, described device also comprises:
The client-side interface module is used to receive the page performance data querying condition that client is submitted to; And, Query Result is back to client;
The data query analysis module; Be used for extracting corresponding overall page performance data, page elements performance data and/or page performance parameter, generated query result from said overall page information table, page elements information table and/or page performance parameter table according to said querying condition.
Preferably, said performance parameter computing module further comprises:
Page Global Information is obtained submodule, is used for extracting in the certain hour scope the overall download time of all pages of said page control point from said overall page information table;
The initial average output value calculating sub module is used for the overall download time calculating of said page initial average output value;
First record sub module is used for said initial average output value is stored to page performance parameter table.
Preferably, said performance parameter computing module further comprises:
The abnormality juding submodule is used for generating the abnormal data decision threshold according to said initial average output value, confirms overall download time of the unusual page and quantity according to said abnormal data decision threshold;
New mean value calculation submodule is used to remove the said unusual page overall download time, and remaining each page overall download time is recomputated new mean value;
Second record sub module is used for quantity and/or the new mean value of said abnormal data decision threshold, the unusual page overall download time are recorded to page performance parameter table.
Preferably, said performance parameter computing module further comprises:
Page elements information is obtained submodule, is used for extracting in the certain hour scope from said overall page information table the page elements performance data set with same alike result of said page control point;
Element mean value calculation submodule is used for calculating the mean value that said page elements performance data is gathered the download time of each page elements;
The 3rd record sub module is used for said element mean value is recorded to page performance parameter table.
The embodiment of the invention also discloses a kind of system of page performance test, comprising:
Be positioned at server end:
Data acquisition module is used to gather the overall page performance data and the page elements performance data of page control point, and is stored to respectively in overall page information table and the page elements information table;
The statistic of classification module is used to add up the page elements performance data with same alike result, generates corresponding page elements performance data set, and is added in the said overall page information table;
The performance parameter computing module; Be used for overall page performance data and/or the set of corresponding page element performance data according to said overall page information table; Calculate the performance parameter of said page control point, and said page performance parameter is stored in the page performance parameter table.
The client-side interface module is used to receive the page performance data querying condition that client is submitted to; And, Query Result is back to client;
The data query analysis module; Be used for extracting corresponding overall page performance data, page elements performance data and/or page performance parameter, generated query result from said overall page information table, page elements information table and/or page performance parameter table according to said querying condition;
Be positioned at client:
The server communication module is used for submitting page performance data querying condition to server; And, the Query Result that reception server returns;
Represent module, be used to represent said Query Result.
Compared with prior art, the present invention has the following advantages:
The present invention has remedied the traditional server end performance test and the blank of monitoring, tests through the page performance to the web client, and the performance of web full page and each page elements is tested; Carrying out 7 * 24 hours monitoring, and Unified Treatment storage data, adopt the web mode to carry out data query and data analysis; So that analyze page performance issue, find page performance bottleneck, convenient accent is excellent; And can cooperate with traditional server end performance test; Form a complete performance test system,, improve user experience with overall monitor server and client side performance.
Description of drawings
Fig. 1 is the flow chart of the method embodiment 1 of a kind of page performance test of the present invention;
Fig. 2 is the flow chart of the method embodiment 2 of a kind of page performance test of the present invention;
Fig. 3 uses the embodiment of the invention in the b/s framework, to carry out the client of page performance test and a kind of interaction diagrams of server;
Fig. 4 is the day page performance curve sketch map that generates in the object lesson of the present invention;
Fig. 5 is all page performance curve sketch mapes that generate in the object lesson of the present invention;
Fig. 6 is the moon page performance curve sketch map that generates in the object lesson of the present invention;
Fig. 7 is the demonstration sketch map of query page element performance data in the object lesson of the present invention;
Fig. 8 is a multiple query composition interface sketch map in the object lesson of the present invention;
Fig. 9 is the structured flowchart of the device embodiment of a kind of page performance test of the present invention;
Figure 10 uses the method flow diagram that device embodiment shown in Figure 9 carries out page performance test;
Figure 11 is the structured flowchart of a kind of page performance test system embodiment of the present invention.
Embodiment
For make above-mentioned purpose of the present invention, feature and advantage can be more obviously understandable, below in conjunction with accompanying drawing and embodiment the present invention done further detailed explanation.
The performance test of embodiment of the invention indication is the page performance test to the web client, and the starting point of embodiment of the invention core idea is that systematic function is generally through reflecting the response time of user's operation.In brief; When the user does an operation on certain page, as click a button, send an instruction or on the Web page, click a link, begin to display the result of this operation with the mode that the user can discover to system from user's trigger action; The time that this process consumed is exactly the visual impression of user to systematic function; Be the response time that the user realizes, that is to say that this response time is directly to influence user experience.In reality; Although this response time receives the influence of many factors easily; To the demands of different of performance etc., how long return response be but the user can not remove to manage server like network speed, client performance or user, need be how long and only be concerned about that content of pages shows.And the data such as response time of traditional performance test test all are server ends, and the performance of client has been left in the basket fully, to this problem; The embodiment of the invention proposes one of its core idea and is, remedies the traditional server end performance test and the blank of monitoring, and the page performance of web client is tested; Performance to web full page and each page elements is tested, carrying out 7 * 24 hours monitoring, and Unified Treatment storage data; Adopt the web mode to carry out data query and data analysis,, find page performance bottleneck so that analyze page performance issue; Convenient accent is excellent, and promotes user experience.
With reference to figure 1, show the flow chart of the method embodiment 1 of a kind of page performance test of the present invention, can may further comprise the steps:
The overall page performance data and the page elements performance data of step 101, collection page control point, and be stored to respectively in overall page information table and the page elements information table;
Overall page performance data and/or corresponding page element performance data in step 103, the said overall page information table of foundation are gathered, and calculate the performance parameter of said page control point, and said page performance parameter is stored in the page performance parameter table.
In embodiments of the present invention, the control point can be confirmed according to the concrete content of pages that the needs that party in request (like user or developer) proposes are monitored.The operation of increase or deletion control point can be carried out in the web controlling platform, also can in code, be realized by the development and maintenance personnel.In reality, can gather the data of page control point through accession page, specifically can adopt following two kinds of methods:
A kind of for adopting the method for collecting data to remove the access monitoring point, for example, use an openpage function to call the certain methods of image data; Another kind of for adopting the method for not collecting data to go to the non-control point on the access critical path; For example; Realize with a gotourl function; This function can not go to call the method for image data, but can accomplish that whole flow process is all the time on same browser, to guarantee the trouble-free operation of monitoring bottom program.
Certainly, said method is only as example, and it all is feasible that those skilled in the art adopt any performance data method of gathering page control point, and the present invention need not to make qualification to this.
The overall page performance data of preferably, being gathered can comprise interaction times, the server host name of the page and the number of times that the page is asked to the server transmission etc. of byte number, the page and the server of acquisition time, the page overall download time, page fault sum, the page receptions/transmissions.
Because each page has a plurality of page elements; Each page elements all has the embodiment of respective performances data; Promptly a page elements has one group of corresponding performance data; The page elements performance data of being gathered particularly, can comprise URL (or title), page elements type (like image, javascript, css, text/html), the download time of page elements, the download state (like the http_code value) of page elements and the time that page elements begins to download etc. of acquisition time, page elements.Use these performance datas promptly to can be used to analyze the performance condition of page elements.
In this case; The overall page performance data of said page control point and page elements performance data can form corresponding relation based on same acquisition time; Correspondingly, said overall page information table and page elements information table are associated according to same acquisition time.
For example; Open any browser, input url sends request to server, notes all data interactions between browser and the server then; And to beginning download time of each page elements with finish download time and carry out record, subtract each other the download time that draws each page elements; Send request to server, counter adds 1 at every turn, obtains the request number that sends to server; To note from the page elements title that server is downloaded; Data to each page elements are judged, give classification; With the http_code record of each page elements that returns, errors, the byte number of transmission, the byte number of reception etc. is preserved.
For example, open http://www.taobao.com, noting this webpage whole download time is 3.667 seconds; The url that downloads is http://www.taobao.com, and the errors that page elements is downloaded is 3, has sent 534428 bytes altogether; Received 67578 bytes altogether, the interaction times of client and server is 83 times, 90 of the request numerical digits of sending to server; The main frame of this page is called home127.cn7, and data acquisition time is 2008-06-0417:22:04, and the specifying information of 90 concrete page elements; Like page elements http://cn.yimg.com/a/yushiliu/ksf_060208-180-250.swf by name, acquisition time is 2008-06-0417:22:04, and type is flash; The time of downloading this element is 1.623 seconds; This element error flag position is 0 (not makeing mistakes), and it is 1.74 seconds (sending request time of beginning to calculate to server from the page) that element begins download time, and http_code is 200 (normal downloading).
The overall page performance data that is obtained is stored to the overall page information table, like the page_performance database table, and, the page elements performance data that is obtained is stored to the page elements information table, like the page_element database table.
Said step 102 acts on further carries out the statistic of classification processing to said page elements performance data.Preferably; The page elements performance data that has same alike result in this step can be the source and/or the identical page elements performance data of page elements type of said page elements; Wherein, acquisition is extracted in the source of said page elements from the URL of said page elements.
For example; Statistic of classification is carried out in classification and source according to page elements; Generate a plurality of statisticses respectively; Like the outside page elements set in page elements set, the website of inside, website, the page elements set that is regardless of the source and all page elements set, add these statisticses respectively in the page_performance table of record page overall page performance data with the mode of Update (renewal).
Like being illustrated as of a kind of page elements information table page_element:
Title | Type |
Acquisition time (collect_time, related) with page_performance | Date?&?time |
Page elements title (element_name) | varchar2(4000) |
Page elements type (element_type) | varchar2(500) |
Page elements download time (element_load_time) | number |
Page elements is downloaded whether make mistakes (iferror) | number(1) |
Page elements begins download time (element_start_time) | number |
Page elements download state (Http_code) | number(5) |
Like being illustrated as of a kind of overall page information table page_performance:
Title | Type |
Page control point title (name) | varchar2(4000) |
The page overall download time (total_time) | number |
Acquisition time (collect_time, related) with page_element | Date?&?time |
Page fault sum (errors) | number(10) |
The page receives byte number (received) | number |
The page sends byte number (sent) | number |
The page and server interaction number of times (round_trips) | number(10) |
The server host name (hosts) of the page | varchar2(500) |
The page sends the number of times (number_of_requires) of request to server | number(10) |
*Below be the statistic of classification result | ? |
The time (css_load_time) that CSS class page elements is all originated and downloaded | number |
The time (js_load_time) that the javascript class page all comes source element to download | number |
The time (image_load_time) that the picture category page elements is all originated and downloaded | number |
The time (text_load_time) that text class page elements is all originated and downloaded | number |
The time (csso_load_time) that CSS class page elements external source is downloaded | number |
The time (jso_load_time) that javascript class page elements external source is downloaded | number |
The time (imageo_load_time) that picture category page elements external source is downloaded | number |
The time (texto_load_time) that text class page elements external source is downloaded | number |
The whole page elements of external source download time (taobaoo_load_time) | number |
Inner source whole page elements download time (taobao_load_time) | number |
The time (cssa_load_time) that CSS class page elements inside portion downloads in the source | number |
The time (jsa_load_time) that download in the inner source of javascript class page elements | number |
The time (imagea_load_time) that download in the inner source of picture category page elements | number |
The time (texta_load_time) that download in the inner source of text class page elements | number |
Based on said overall page information table and page elements information table, can inquire about and analyze corresponding overall page performance data and/or page elements performance data through the web platform at subsequent process, or generate chart automatically.
The effect of said step 103 is according to the related data in the said overall page information table; Generate the performance parameter of said page control point, one of them of said performance parameter act as, and finds the abnormal data of page control point; Thereby the discovery performance bottleneck, convenient accent is excellent.
Preferably, said step 103 may further include following substep:
Substep A1, from said overall page information table, extract in the certain hour scope the overall download time of all pages of said page control point;
Substep A2, the said page overall download time is calculated initial average output value, said initial average output value is stored in the page performance parameter table.
For example, 23: 59 every day, page control point is calculated in this intraday page value of averaging of overall download time, and deposit page performance parameter table in, in the page_day database table.
More preferred, said step 103 can also comprise following substep:
Substep A3, the said initial average output value of foundation generate the abnormal data decision threshold, confirm overall download time of the unusual page and quantity according to said abnormal data decision threshold;
Substep A4, remove the said unusual page overall download time, remaining each page overall download time is recomputated new mean value;
Substep A5, quantity and/or the new mean value of said abnormal data decision threshold, the unusual page overall download time is recorded in the page performance parameter table.
For example; Carrying out 5sigma based on said initial average output value handles; The data of all pages overall download time in one day are deducted said initial average output value respectively, get this value and be absolute value, 5 times with this absolute value and this initial average output value compare then; Data greater than 5 times are removed as abnormal data, and give a flag bit 1 to abnormal data; Give flag bit 0 to normal data; Then all flag bits be 0 data once more the value of averaging calculate, obtain new mean value.
Be appreciated that according to the demand in the reality, can also be to statistic of classification compute performance parameters as a result, in this case, said step 103 can also comprise following substep:
Substep B1, from said overall page information table, extract in the certain hour scope page elements performance data set with same alike result of said page control point;
Substep B2, calculate the mean value of the download time of each page elements in the said page elements performance data set, and said element mean value is recorded in the page performance parameter table.
Like being illustrated as of a kind of page performance parameter table page_day:
Title | Type |
Gather the date (D_date) | date |
The title of collection point (page_name) | varchar2(4000) |
Original daily mean (avg1) | number |
Mean value (pavg) after the removal exceptional value | number |
Value (avg2) after original daily mean multiply by 5 times | number |
The page address (url) of gathering | varchar2(4000) |
? | ? |
One day mean value of picture category page elements (image_avg) | number |
One day mean value of CSS class page elements (css_avg) | number |
One day mean value of text class page elements (text_avg) | number |
One day mean value of javascript class page elements (js_avg) | number |
One day mean value of external source picture category page elements (imageo_avg) | number |
One day mean value of external source CSS class page elements (csso_avg) | number |
One day mean value of external source text class page elements (texto_avg) | number |
One day mean value of external source javascript class page elements (jso_avg) | number |
Inner source one day mean value of all types page elements (taobao_avg) | number |
One day mean value of external source all types page elements (taobaoo_avg) | number |
Inner source one day mean value of picture category page elements (imagea_avg) | number |
Inner source CSS one day mean value of class page elements (cssa_avg) | number |
One day mean value of source text class page elements (texta_avg) is come in inside | number |
Inner source javascript one day mean value of class page elements (jsa_avg) | number |
Can find out; Use in the overall page information table that the embodiment of the invention generates and record the overall page performance data, like interaction times, the server host name of the page and the information such as number of times that the page is asked to the server transmission of byte number, the page and the server of acquisition time, the page overall download time, page fault sum, the page receptions/transmissions; And, corresponding page elements performance data set through statistic of classification; Record the page elements performance data in the page elements information table; URL, page elements type, the download time of page elements, the download state of page elements and the information such as time that page elements begins to download like acquisition time, page elements; Overall page performance data and page elements performance data based on same acquisition time form corresponding relation, and corresponding overall page information table and page elements information table also are associated according to same acquisition time; Record initial average output value, 5sigma value, abnormal data quantity in the page performance parameter table that generates, the information such as new mean value after removing unusually.Based on above-mentioned tables of data, promptly can the web mode carry out data query and data analysis directly, easily, and can carry out the web displaying interface, thereby help finding page performance bottleneck, the convenient client performance of optimizing.
With reference to figure 2, show the flow chart of the method embodiment 2 of a kind of page performance test of the present invention, can may further comprise the steps:
The overall page performance data and the page elements performance data of step 201, collection page control point, and be stored to respectively in overall page information table and the page elements information table;
Overall page performance data and/or corresponding page element performance data in step 203, the said overall page information table of foundation are gathered, and calculate the performance parameter of said page control point, and said page performance parameter is stored in the page performance parameter table;
Preferably, said overall page information table, page elements information table and page performance parameter table are kept at server end, and described method can also may further comprise the steps:
The page performance data querying condition that step 204, reception client are submitted to;
As querying condition can for:
A) the overall page performance data of page control point in the inquiry certain hour;
B) the statistic of classification result of page control point in the inquiry certain hour is like the outside page elements set in page elements set, the website of inside, website, be regardless of the page elements set in source and from the inside and outside whole page elements set in website;
C) accurately inquire about the performance data of whole page elements of a certain a certain page of the moment.
For example, the form with day, week, month curve chart represents said Query Result.
In reality, the application embodiment of the invention in the b/s framework, carries out the client of page performance test and a kind of reciprocal process of server can specifically can may further comprise the steps with reference to figure 3 for example:
The concurrent execution following steps of client and server:
Wherein, server is carried out:
Client executing:
This step promptly triggers client and data in server is mutual, and interactive step comprises:
For example, inquire about on May 20th, 2008, the download time of whole page elements in the http://www.taobao.com page, as shown in Figure 4 through the data generation day page performance chart that inquiry is obtained; Perhaps, inquire about-19 days on the 13rd May in 2008, whole download time of page elements in the http://www.taobao.com page, it is as shown in Figure 5 that the data that obtained through inquiry generate all page performance charts; Perhaps, inquire about in May, 2008, the download time of whole page elements in the http://www.taobao.com page, as shown in Figure 6 through the data generation month page performance chart that inquiry is obtained; Perhaps, inquire about the page elements performance data of 03:21:36 on June 27th, 2008, as shown in Figure 7.
In reality; Can also carry out the inquiry of reference datas such as website traffic, server configures based on said page performance data, said querying condition can be provided with arbitrarily according to demand, for example; Multiple query composition interface sketch map as shown in Figure 8 is set, and the present invention need not to make restriction to this.
For above-mentioned method embodiment, the description of each embodiment is all emphasized particularly on different fields, there is not the part that details among certain embodiment, can be referring to the associated description of other embodiment.The present invention is for simple description; Aforesaid each method embodiment is expressed as a series of combination of actions, but those skilled in the art should know that the present invention does not receive the restriction of described sequence of movement; Because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in the specification all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
With reference to figure 9, show the structured flowchart of the device embodiment of a kind of page performance test of the present invention, can comprise with lower module:
Statistic of classification module 902 is used to add up the page elements performance data with same alike result, generates corresponding page elements performance data set, and is added in the said overall page information table;
Performance parameter computing module 903; Be used for overall page performance data and/or the set of corresponding page element performance data according to said overall page information table; Calculate the performance parameter of said page control point, and said page performance parameter is stored in the page performance parameter table.
Preferably, in embodiments of the present invention, can also comprise with lower module:
The client-side interface module is used to receive the page performance data querying condition that client is submitted to; And, Query Result is back to client;
The data query analysis module; Be used for extracting corresponding overall page performance data, page elements performance data and/or page performance parameter, generated query result from said overall page information table, page elements information table and/or page performance parameter table according to said querying condition.
Preferably, said performance parameter computing module may further include following submodule:
Page Global Information is obtained submodule, is used for extracting in the certain hour scope the overall download time of all pages of said page control point from said overall page information table;
The initial average output value calculating sub module is used for the overall download time calculating of said page initial average output value;
First record sub module is used for said initial average output value is stored to page performance parameter table.
As another embodiment, said performance parameter computing module can further include following submodule:
The abnormality juding submodule is used for generating the abnormal data decision threshold according to said initial average output value, confirms overall download time of the unusual page and quantity according to said abnormal data decision threshold;
New mean value calculation submodule is used to remove the said unusual page overall download time, and remaining each page overall download time is recomputated new mean value;
Second record sub module is used for quantity and/or the new mean value of said abnormal data decision threshold, the unusual page overall download time are recorded to page performance parameter table.
Preferably, said performance parameter computing module can further include following submodule:
Page elements information is obtained submodule, is used for extracting in the certain hour scope from said overall page information table the page elements performance data set with same alike result of said page control point;
Element mean value calculation submodule is used for calculating the mean value that said page elements performance data is gathered the download time of each page elements;
The 3rd record sub module is used for said element mean value is recorded to page performance parameter table.
With reference to Figure 10, show and use the method flow diagram that device embodiment shown in Figure 9 carries out page performance test, specifically can may further comprise the steps:
The overall page performance data of step 1001, data collecting module collected page control point and page elements performance data, and be stored to respectively in overall page information table and the page elements information table;
For device embodiment of the present invention, because it is basically corresponding to method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
A kind of practical application of the embodiment of the invention can comprise with lower module with reference to the structured flowchart of a kind of page performance test system embodiment shown in Figure 11:
Be positioned at server end 1101:
Statistic of classification module 112 is used to add up the page elements performance data with same alike result, generates corresponding page elements performance data set, and is added in the said overall page information table;
Performance parameter computing module 113; Be used for overall page performance data and/or the set of corresponding page element performance data according to said overall page information table; Calculate the performance parameter of said page control point, and said page performance parameter is stored in the page performance parameter table.
Client-side interface module 114 is used to receive the page performance data querying condition that client is submitted to; And, Query Result is back to client;
Data query analysis module 115; Be used for extracting corresponding overall page performance data, page elements performance data and/or page performance parameter, generated query result from said overall page information table, page elements information table and/or page performance parameter table according to said querying condition;
Be positioned at client 1102:
Represent module 122, be used to represent said Query Result.
For system embodiment of the present invention, because it is basically corresponding to method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
The embodiment of the invention can be used in numerous general or special purpose calculation element environment or the configuration.For example: personal computer, server computer, handheld device or portable set, plate equipment, multiprocessor device, comprise DCE of above any device or equipment or the like.
The embodiment of the invention can be described in the general context of the computer executable instructions of being carried out by computer, for example program module.Usually, program module comprises the routine carrying out particular task or realize particular abstract, program, object, assembly, data structure or the like.Also can in DCE, put into practice the present invention, in these DCEs, by through communication network connected teleprocessing equipment execute the task.In DCE, program module can be arranged in this locality and the remote computer storage medium that comprises memory device.
More than method, the Apparatus and system of a kind of page performance test provided by the present invention carried out detailed introduction; Used concrete example among this paper principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that on embodiment and range of application, all can change, in sum, this description should not be construed as limitation of the present invention.
Claims (15)
1. the method for a page performance test is characterized in that, comprising:
Gather the overall page performance data and the page elements performance data of page control point, and be stored to respectively in overall page information table and the page elements information table;
Statistics has the page elements performance data of same alike result, generates corresponding page elements performance data set, and is added in the said overall page information table;
According to overall page performance data in the said overall page information table and/or the set of corresponding page element performance data, calculate the performance parameter of said page control point, and the page performance parameter that calculates is stored in the page performance parameter table.
2. the method for claim 1 is characterized in that, said overall page information table, page elements information table and page performance parameter table are kept at server end, and described method also comprises:
Receive the page performance data querying condition that client is submitted to;
From said overall page information table, page elements information table and/or page performance parameter table, extract corresponding overall page performance data, page elements performance data and/or page performance parameter according to said querying condition, the generated query result also is back to client.
3. method as claimed in claim 2 is characterized in that, also comprises:
Represent said Query Result in client.
4. like claim 1,2 or 3 described methods; It is characterized in that said overall page performance data comprises interaction times, the server host name of the page and the number of times that the page is asked to the server transmission of byte number, the page and the server of acquisition time, the page overall download time, page fault sum, the page receptions/transmissions; Said page elements performance data comprises URL, page elements type, the download time of page elements, the download state of page elements and the time that page elements begins to download of acquisition time, page elements.
5. method as claimed in claim 4; It is characterized in that; The overall page performance data of said page control point and page elements performance data form corresponding relation based on same acquisition time, and said overall page information table and page elements information table are associated according to same acquisition time.
6. method as claimed in claim 4; It is characterized in that; Source that said page elements performance data with same alike result is said page elements and/or the identical page elements performance data of page elements type, acquisition is extracted in the source of said page elements from the URL of said page elements.
7. like claim 5 or 6 described methods, it is characterized in that the step of the performance parameter of said calculating page control point further comprises:
From said overall page information table, extract in the certain hour scope the overall download time of all pages of said page control point;
To the overall download time calculating of said page initial average output value, said initial average output value is stored in the page performance parameter table.
8. method as claimed in claim 7 is characterized in that, the step of the performance parameter of said calculating page control point further comprises:
Generate the abnormal data decision threshold according to said initial average output value, confirm overall download time of the unusual page and quantity according to said abnormal data decision threshold;
Remove the said unusual page overall download time, remaining each page overall download time is recomputated new mean value;
Quantity and/or the new mean value of said abnormal data decision threshold, the unusual page overall download time are recorded in the page performance parameter table.
9. method as claimed in claim 8 is characterized in that, the step of the performance parameter of said calculating page control point further comprises:
From said overall page information table, extract in the certain hour scope page elements performance data set with same alike result of said page control point;
Calculate the mean value of the download time of each page elements in the said page elements performance data set, and said element mean value is recorded in the page performance parameter table.
10. the device of a page performance test is characterized in that, comprising:
Data acquisition module is used to gather the overall page performance data and the page elements performance data of page control point, and is stored to respectively in overall page information table and the page elements information table;
The statistic of classification module is used to add up the page elements performance data with same alike result, generates corresponding page elements performance data set, and is added in the said overall page information table;
The performance parameter computing module; Be used for overall page performance data and/or the set of corresponding page element performance data according to said overall page information table; Calculate the performance parameter of said page control point, and the page performance parameter that calculates is stored in the page performance parameter table.
11. device as claimed in claim 10 is characterized in that, also comprises:
The client-side interface module is used to receive the page performance data querying condition that client is submitted to; And, Query Result is back to client;
The data query analysis module; Be used for extracting corresponding overall page performance data, page elements performance data and/or page performance parameter, generated query result from said overall page information table, page elements information table and/or page performance parameter table according to said querying condition.
12., it is characterized in that said performance parameter computing module further comprises like claim 10 or 11 described devices:
Page Global Information is obtained submodule, is used for extracting in the certain hour scope the overall download time of all pages of said page control point from said overall page information table;
The initial average output value calculating sub module is used for the overall download time calculating of said page initial average output value;
First record sub module is used for said initial average output value is stored to page performance parameter table.
13. device as claimed in claim 12 is characterized in that, said performance parameter computing module further comprises:
The abnormality juding submodule is used for generating the abnormal data decision threshold according to said initial average output value, confirms overall download time of the unusual page and quantity according to said abnormal data decision threshold;
New mean value calculation submodule is used to remove the said unusual page overall download time, and remaining each page overall download time is recomputated new mean value;
Second record sub module is used for quantity and/or the new mean value of said abnormal data decision threshold, the unusual page overall download time are recorded to page performance parameter table.
14. device as claimed in claim 13 is characterized in that, said performance parameter computing module further comprises:
Page elements information is obtained submodule, is used for extracting in the certain hour scope from said overall page information table the page elements performance data set with same alike result of said page control point;
Element mean value calculation submodule is used for calculating the mean value that said page elements performance data is gathered the download time of each page elements;
The 3rd record sub module is used for said element mean value is recorded to page performance parameter table.
15. the system of a page performance test is characterized in that, comprising:
Be positioned at server end:
Data acquisition module is used to gather the overall page performance data and the page elements performance data of page control point, and is stored to respectively in overall page information table and the page elements information table;
The statistic of classification module is used to add up the page elements performance data with same alike result, generates corresponding page elements performance data set, and is added in the said overall page information table;
The performance parameter computing module; Be used for overall page performance data and/or the set of corresponding page element performance data according to said overall page information table; Calculate the performance parameter of said page control point, and said page performance parameter is stored in the page performance parameter table;
The client-side interface module is used to receive the page performance data querying condition that client is submitted to; And, Query Result is back to client;
The data query analysis module; Be used for extracting corresponding overall page performance data, page elements performance data and/or page performance parameter, generated query result from said overall page information table, page elements information table and/or page performance parameter table according to said querying condition;
Be positioned at client:
The server communication module is used for submitting page performance data querying condition to server; And, the Query Result that reception server returns;
Represent module, be used to represent said Query Result.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008101347517A CN101635655B (en) | 2008-07-25 | 2008-07-25 | Method, device and system for page performance test |
HK10105758.9A HK1138965A1 (en) | 2008-07-25 | 2010-06-10 | Method, apparatus and system for testing page performance |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008101347517A CN101635655B (en) | 2008-07-25 | 2008-07-25 | Method, device and system for page performance test |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101635655A CN101635655A (en) | 2010-01-27 |
CN101635655B true CN101635655B (en) | 2012-01-04 |
Family
ID=41594722
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008101347517A Expired - Fee Related CN101635655B (en) | 2008-07-25 | 2008-07-25 | Method, device and system for page performance test |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN101635655B (en) |
HK (1) | HK1138965A1 (en) |
Families Citing this family (30)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102004693A (en) * | 2010-11-24 | 2011-04-06 | 北京世纪高通科技有限公司 | System performance test method and device |
CN102761467B (en) * | 2011-04-25 | 2016-03-30 | 腾讯科技(深圳)有限公司 | Calculate the methods, devices and systems of browsing device net page download time |
CN102185741B (en) * | 2011-06-10 | 2013-06-26 | 浙江大学 | Method for estimating needs of transaction in processor in multi-tier architecture |
CN103067214B (en) * | 2011-10-19 | 2016-08-03 | 阿里巴巴集团控股有限公司 | For testing the method for web site performance, client, server and system |
CN102708029B (en) * | 2012-04-25 | 2015-08-05 | 华为技术有限公司 | Performance bottleneck diagnostic method and equipment |
CN102739444A (en) * | 2012-06-12 | 2012-10-17 | 中兴通讯股份有限公司 | Performance data transmission method, system and network manager |
CN103678372B (en) * | 2012-09-14 | 2019-05-07 | 北京百度网讯科技有限公司 | A kind of method and apparatus for obtaining the application performance of the page |
CN102929776B (en) * | 2012-10-25 | 2015-11-25 | 北京奇虎科技有限公司 | The method of testing that network application is tested and testing apparatus |
CN102929777B (en) * | 2012-10-25 | 2015-11-25 | 北京奇虎科技有限公司 | Network application method of testing and test macro |
CN103793316B (en) * | 2012-10-29 | 2017-06-23 | 腾讯科技(深圳)有限公司 | Determine the method and system of software performance |
CN103559222B (en) * | 2013-10-18 | 2017-04-12 | 北京奇虎科技有限公司 | Method and device for displaying page loading time in browsers |
CN103631719A (en) * | 2013-12-12 | 2014-03-12 | 用友软件股份有限公司 | Web automated testing method and device |
CN104750471B (en) * | 2013-12-30 | 2020-05-05 | 格尔软件股份有限公司 | WEB page performance detection, acquisition and analysis plug-in and method based on browser |
CN103873323A (en) * | 2014-03-14 | 2014-06-18 | 浪潮集团山东通用软件有限公司 | Method for diagnosing performance problems of application system in database mode of client server |
CN106294902A (en) * | 2015-05-28 | 2017-01-04 | 阿里巴巴集团控股有限公司 | Method, device and the electronic equipment of prediction mobile applications page performance |
CN108173702B (en) * | 2016-12-07 | 2021-03-16 | 腾讯科技(深圳)有限公司 | Mobile equipment performance evaluation method, device, client and system |
CN108874808A (en) * | 2017-05-09 | 2018-11-23 | 广东神马搜索科技有限公司 | A kind of page elements interlock method, device and server |
CN108255672B (en) * | 2017-12-29 | 2021-08-06 | 东软集团股份有限公司 | Data verification method and device, storage medium and electronic equipment |
CN110119334B (en) * | 2018-02-06 | 2023-10-20 | 杭州淘天电子商务科技有限公司 | Page script monitoring method and device |
CN110198324B (en) * | 2018-02-26 | 2021-12-14 | 腾讯科技(深圳)有限公司 | Data monitoring method and device, browser and terminal |
CN108399129B (en) * | 2018-02-28 | 2021-03-23 | 车智互联(北京)科技有限公司 | H5 page performance detection method |
CN108989084A (en) * | 2018-06-11 | 2018-12-11 | 新疆玖富万卡信息技术有限公司 | Abnormal data monitoring method, apparatus and system |
CN109739725A (en) * | 2018-12-29 | 2019-05-10 | 云智慧(北京)科技有限公司 | Monitoring method, device and system based on browser and storage medium |
CN109547276B (en) * | 2019-01-31 | 2022-04-12 | 网宿科技股份有限公司 | Problem positioning method, terminal and storage medium |
CN110569062A (en) * | 2019-08-27 | 2019-12-13 | 上海易点时空网络有限公司 | Processing method and device for front-end page performance parameter collection |
CN111209166B (en) * | 2020-01-06 | 2023-06-13 | 深圳市同洲电子股份有限公司 | Automatic inspection system for B/S architecture service system |
CN111562983B (en) * | 2020-04-30 | 2023-01-06 | Oppo(重庆)智能科技有限公司 | Memory optimization method and device, electronic equipment and storage medium |
CN111694735B (en) * | 2020-05-28 | 2023-07-21 | 北京城市网邻信息技术有限公司 | Page performance testing method and device, electronic equipment and storage medium |
CN112559255B (en) * | 2020-12-25 | 2021-08-31 | 广州鼎甲计算机科技有限公司 | Method, system, device and storage medium for testing file mount recovery |
CN113904964B (en) * | 2021-12-09 | 2022-04-08 | 中航金网(北京)电子商务有限公司 | Website front-end performance monitoring method and device, electronic equipment and medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101056212A (en) * | 2006-04-10 | 2007-10-17 | 上海欣泰通信技术有限公司 | Method for Web page ADSL test via push technology |
CN101217425A (en) * | 2008-01-04 | 2008-07-09 | 中兴通讯股份有限公司 | Web testing method and device |
CN101135989B (en) * | 2006-08-31 | 2010-11-24 | 中国银联股份有限公司 | Automatization test method and device for Web applied system |
-
2008
- 2008-07-25 CN CN2008101347517A patent/CN101635655B/en not_active Expired - Fee Related
-
2010
- 2010-06-10 HK HK10105758.9A patent/HK1138965A1/en not_active IP Right Cessation
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101056212A (en) * | 2006-04-10 | 2007-10-17 | 上海欣泰通信技术有限公司 | Method for Web page ADSL test via push technology |
CN101135989B (en) * | 2006-08-31 | 2010-11-24 | 中国银联股份有限公司 | Automatization test method and device for Web applied system |
CN101217425A (en) * | 2008-01-04 | 2008-07-09 | 中兴通讯股份有限公司 | Web testing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN101635655A (en) | 2010-01-27 |
HK1138965A1 (en) | 2010-09-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101635655B (en) | Method, device and system for page performance test | |
CN107463641B (en) | System and method for improving access to search results | |
CN102663062B (en) | Method and device for processing invalid links in search result | |
CN108304498A (en) | Webpage data acquiring method, device, computer equipment and storage medium | |
US8332381B1 (en) | Tab search utility | |
CN109561117B (en) | Data acquisition method and device | |
CN102624920A (en) | Method and device for performing access through proxy server | |
KR20080042304A (en) | Apparatus and method for prefetching web page | |
CN107688568A (en) | Acquisition method and device based on web page access behavior record | |
KR102024998B1 (en) | Extracting similar group elements | |
JP2015528611A (en) | Dynamic data acquisition method and system | |
JP2011227721A (en) | Interest extraction device, interest extraction method, and interest extraction program | |
CN108780446A (en) | The prompt that time dependent machine generates | |
CN113688022A (en) | Browser performance monitoring method, device, equipment and medium | |
US10417318B2 (en) | Treatment controller | |
EP2998885A1 (en) | Method and device for information search | |
JP6347532B1 (en) | Evaluation apparatus, evaluation method, and evaluation program | |
JP4649525B1 (en) | RECOMMENDATION DEVICE, RECOMMENDATION METHOD, AND RECOMMENDATION PROGRAM | |
CN105338091A (en) | High-transmission-efficiency personalized information interface display method and apparatus | |
CN103139298A (en) | Method for transmitting network data and device | |
KR20210000041A (en) | Method and apparatus for analyzing log data in real time | |
CN111443906B (en) | Application access method and device | |
US10769388B2 (en) | Changing a language for a user session replay | |
CN113626392A (en) | Method and device for updating document data, electronic equipment and storage medium | |
WO2021117268A1 (en) | Web content automatic display control method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 1138965 Country of ref document: HK |
|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: GR Ref document number: 1138965 Country of ref document: HK |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20120104 Termination date: 20200725 |