CN107231268A - The method and apparatus for testing web site performance - Google Patents

The method and apparatus for testing web site performance Download PDF

Info

Publication number
CN107231268A
CN107231268A CN201610179287.8A CN201610179287A CN107231268A CN 107231268 A CN107231268 A CN 107231268A CN 201610179287 A CN201610179287 A CN 201610179287A CN 107231268 A CN107231268 A CN 107231268A
Authority
CN
China
Prior art keywords
performance parameter
mrow
variation
coefficient
performance
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.)
Granted
Application number
CN201610179287.8A
Other languages
Chinese (zh)
Other versions
CN107231268B (en
Inventor
周鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201610179287.8A priority Critical patent/CN107231268B/en
Publication of CN107231268A publication Critical patent/CN107231268A/en
Application granted granted Critical
Publication of CN107231268B publication Critical patent/CN107231268B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning

Landscapes

  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Debugging And Monitoring (AREA)

Abstract

This application discloses the method and apparatus of test web site performance.One embodiment of methods described includes:According to default testing procedure, current site performance parameter is obtained;Obtain the current performance parameters coefficient of variation of the current site performance parameter relative to the average value of history website performance parameter;In response to current site performance parameter in the range of default performance parameter and the current performance parameters coefficient of variation be less than historical performance parameter variation coefficient, prompting message of the web site performance by test is presented, wherein, historical performance parameter variation coefficient is obtained according to history website performance parameter.Whether the embodiment objectively can judge web site performance by test according to web site performance parameter, it is to avoid by artificial experience deficiency is judged that brought erroneous judgement influences.

Description

The method and apparatus for testing web site performance
Technical field
The application is related to field of computer technology, and in particular to Internet technical field, especially relates to And the method and apparatus of test web site performance.
Background technology
As internet development is more and more wider using scope, present more and more systems provide net The service of standing;The performance of website is also increasingly taken seriously;In common web site performance test system Under, the result of each performance test all may be different, and whether the test result of performance test reaches It is expected that and deviation whether can receive, often rule of thumb judged by project leader.
However, rule of thumb judged by project leader the performance test results whether reach it is expected with And whether deviation can receive, if project leader and performance test personnel's lacks experience, Certain the performance test results may be produced with larger difference, or the judgement to final result Produce mistake.
The content of the invention
The purpose of the application is a kind of method and apparatus of improved test web site performance of proposition, To solve the technical problem that background section above is mentioned.
In a first aspect, this application provides a kind of method for testing web site performance, methods described bag Include:According to default testing procedure, current site performance parameter is obtained;Obtain the current net Current performance parameters variation lines of the performance parameter of standing relative to the average value of history website performance parameter Number;It is in the range of default performance parameter and described in response to the current site performance parameter The current performance parameters coefficient of variation is less than historical performance parameter variation coefficient, and web site performance is presented and leads to The prompting message of test is crossed, wherein, the historical performance parameter variation coefficient is according to history website Performance parameter is obtained.
In certain embodiments, methods described also includes:In response to current site performance ginseng Performance parameter is presented not by testing prompting message not in the range of default performance parameter in number; And/or it is more than historical performance parameter variation coefficient in response to the current performance parameters coefficient of variation, The coefficient of variation is presented not by testing prompting message.
In certain embodiments, the current performance parameters coefficient of variation is obtained by below equation:
Wherein, Result represents the web site performance parameter, and MN represents that history website performance is joined Several average value.
In certain embodiments, the historical performance parameter variation coefficient is obtained by below equation:
Wherein, C.V represents historical performance parameter variation coefficient;SD represents that history website performance is joined Several standard deviations, MN represents the average value of history website performance parameter.
In certain embodiments, the standard deviation of the history website performance parameter passes through following public affairs Formula is obtained:
Wherein, SD represents the standard deviation of history website performance parameter, XiRepresent history website The sample value of energy parameter, represents the average value of the sample value of history website performance parameter, and n is represented The sample size of history website performance parameter.
In certain embodiments, the average value of the history website performance parameter passes through below equation Obtain:
MN=TRIMMEAN (X1:Xn, 0.1);
Wherein, MN represents the average value of history website performance parameter, namely sample array X1Extremely XnInside average value, X1Represent the 1st sample value, X of history website performance parameternTable Show n-th of sample value of history website performance parameter, 0.1 represents to remove sample array in analysis X1To XnHead and the tail amount to 10% data, function TRIMMEAN represents to remove number first Group X1To XnHead and the tail amount to 10% data, the data left are averaged afterwards.
In certain embodiments, the web site performance parameter includes following one or more:It is per second Business processing amount, service response time, CPU usage and memory usage.
Second aspect, this application provides a kind of device for testing web site performance, described device bag Include:Performance parameter acquisition module, for according to default testing procedure, obtaining current site Can parameter;Coefficient of variation acquisition module, for obtain the current site performance parameter relative to The current performance parameters coefficient of variation of the average value of history website performance parameter;Presented by testing Module, in response to the current site performance parameter in the range of default performance parameter with And the current performance parameters coefficient of variation is less than historical performance parameter variation coefficient, website is presented Performance by the prompting message of test, wherein, the historical performance parameter variation coefficient is according to going through History web site performance parameter is obtained.
In certain embodiments, described device also includes:Performance parameter not by the way that module is presented, For not in the range of default performance parameter, being presented in response to the current site performance parameter Performance parameter is not by testing prompting message;And/or the coefficient of variation is used for not by the way that module is presented It is more than historical performance parameter variation coefficient in response to the current performance parameters coefficient of variation, presents The coefficient of variation is not by testing prompting message.
In certain embodiments, the coefficient of variation acquisition module is further used for by following public affairs Formula obtains the current performance parameters coefficient of variation:
Wherein, Result represents the web site performance parameter, and MN represents that history website performance is joined Several average value.
In certain embodiments, the coefficient of variation acquisition module is further used for by following public affairs Formula obtains the historical performance parameter variation coefficient:
Wherein, C.V represents historical performance parameter variation coefficient;SD represents that history website performance is joined Several standard deviations, MN represents the average value of history website performance parameter.
In certain embodiments, the coefficient of variation acquisition module is further used for by following public affairs Formula obtains the standard deviation of the history website performance parameter:
Wherein, SD represents the standard deviation of history website performance parameter, XiRepresent history website The sample value of energy parameter, represents the average value of the sample value of history website performance parameter, and n is represented The sample size of history website performance parameter.
In certain embodiments, the coefficient of variation acquisition module is further used for by following public affairs Formula obtains the average value of the history website performance parameter:
MN=TRIMMEAN (X1:Xn, 0.1);
Wherein, MN represents the average value of history website performance parameter, namely sample array X1Extremely XnInside average value, X1Represent the 1st sample value, X of history website performance parameternTable Show n-th of sample value of history website performance parameter, 0.1 represents to remove sample array in analysis X1To XnHead and the tail amount to 10% data, function TRIMMEAN represents to remove number first Group X1To XnHead and the tail amount to 10% data, the data left are averaged afterwards.
The method and apparatus for the test web site performance that the application is provided, pass through default testing procedure Web site performance is tested, current site performance parameter is obtained, then obtains the current net Current performance parameters variation lines of the performance parameter of standing relative to the average value of history website performance parameter Number, finally in response to the current site performance parameter in the range of default performance parameter and The current performance parameters coefficient of variation is less than historical performance parameter variation coefficient, and website property is presented Can by the prompting message of test, wherein, default performance parameter scope is the industry according to website Business and the operation of system need the performance parameter scope set, historical performance parameter variation coefficient root Obtained according to history website performance parameter, so as to objectively judge net according to web site performance parameter Whether performance of standing passes through test, it is to avoid by artificial experience deficiency is judged brought mistake Sentence influence.
Brief description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, Other features, objects and advantages will become more apparent upon:
Fig. 1 is that the application can apply to exemplary system architecture figure therein;
Fig. 2 is the flow chart of one embodiment of the method for the test web site performance according to the application;
Fig. 3 is the signal of an application scenarios of the method for the test web site performance according to the application Figure;
Fig. 4 is that the structure of one embodiment of the device of the test web site performance according to the application is shown It is intended to;
Fig. 5 is adapted for for realizing the terminal device of the embodiment of the present application or the computer of server The structural representation of system.
Embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is appreciated that , specific embodiment described herein is used only for explaining related invention, rather than to the hair Bright restriction.It also should be noted that, illustrate only for the ease of description, in accompanying drawing with About the related part of invention.
It should be noted that in the case where not conflicting, embodiment and embodiment in the application In feature can be mutually combined.Describe this in detail below with reference to the accompanying drawings and in conjunction with the embodiments Application.
Fig. 1, which is shown, can apply the method or test website property of the test web site performance of the application The exemplary system architecture 100 of the embodiment of the device of energy.
As shown in figure 1, system architecture 100 can include terminal device 101,102,103, Network 104 and server 105,106.Network 104 is used in terminal device 101,102,103 The medium of communication link is provided between server 105,106.Network 104 can include various Connection type, such as wired, wireless communication link or fiber optic cables etc..
User 110 can pass through network 104 and service with using terminal equipment 101,102,103 Device 105,106 is interacted, to receive or send message etc..Terminal device 101,102,103 On various client applications can be installed, such as web browser applications, the application of shopping class, Searching class application, JICQ, mailbox client, social platform software etc..
Terminal device 101,102,103 can be with display screen and support to test website Various electronic equipments, including but not limited to smart mobile phone, tablet personal computer, E-book reader, (Moving Picture Experts Group Audio Layer III, dynamic image is special for MP3 player Family's compression standard audio aspect 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio aspect 4) player, portable meter on knee Calculation machine and desktop computer etc..
Server 105,106 can be to provide the server of various services, such as to terminal device 101st, 102,103 requests sent provide the background server supported.Background server can be with The data such as the request that receives are carried out the processing such as analyze, and result are fed back into terminal with setting It is standby.
It should be noted that the method for the test web site performance that the embodiment of the present application is provided, when When terminal 101,102,103 possesses enough data-handling capacities, can by terminal 101, 102nd, 103 or server 105,106 perform, when terminal 101,102,103 does not possess foot During enough data-handling capacities, it can be performed by server 105,106;Correspondingly, terminal is worked as 101st, 102,103 when possessing enough data-handling capacities, and the device of test web site performance can To be arranged in terminal 101,102,103 or server 105,106, when terminal 101,102, 103 when not possessing enough data-handling capacities, and the device of test web site performance can be arranged at In server 105,106.
It should be understood that the number of the terminal device, network and server in Fig. 1 is only signal Property.According to needs are realized, can have any number of terminal device, network and server.
With continued reference to Fig. 2, one of the method for testing web site performance according to the application is shown The flow 200 of embodiment.The method of described test web site performance, comprises the following steps:
Step 201, according to default testing procedure, current site performance parameter is obtained.
In the present embodiment, the electronic equipment (example of the method operation of test web site performance thereon Such as the terminal device or server that possess enough data-handling capacities in Fig. 1) generally connect in advance The test assignment that Acceptance Tests person generates according to test target, the test assignment includes default survey Try is rapid.
, can basis when the method for testing results web site performance after test assignment is received Default testing procedure obtains the performance parameter of website.Herein, the web site performance parameter of acquisition It can be the performance parameter related to business, such as business processing amount per second and service response time Deng, can also be the performance parameter related to the server where website, such as central processing unit CPU usage and memory usage etc..
In some optional implementations of the present embodiment, web site performance parameter can be according to test Demand is determined, for example, can include following one or more:Business processing amount per second, business are rung Between seasonable, CPU usage and memory usage.In some special business, it is also possible to wrap Include the link of agreement (IP) the load compression protocol (PCP) interconnected between load factor, network Number etc..It should be appreciated that can preset testing procedure to obtain current net according to testing requirement here Stand performance parameter, so as to obtain the test result of web site performance parameter to be measured.
Step 202, current site performance parameter is obtained flat relative to history website performance parameter The current performance parameters coefficient of variation of average.
In the present embodiment, based on the web site performance parameter obtained in step 201, it can obtain Current performance parameters of the current site performance parameter relative to the average value of history website performance parameter The coefficient of variation.
In some optional implementations of the present embodiment, the current performance parameters coefficient of variation passes through Below equation is obtained:
Wherein, Result represents web site performance parameter, and MN represents history website performance parameter Average value.
Herein, the coefficient of variation is also known as " standard rate ", is each observation variation in measurement data One statistic of degree.By using coefficient of variation discriminating test result, unit can be eliminated And/or the influence that average difference compares web site performance parameter variation degree.
Step 203, in response to current site performance parameter in the range of default performance parameter with And the current performance parameters coefficient of variation is less than historical performance parameter variation coefficient, web site performance is presented By the prompting message of test, wherein, historical performance parameter variation coefficient is according to history website Energy parameter is obtained.
In the present embodiment, based on the web site performance parameter obtained in step 201 and step 203 The current performance parameters coefficient of variation of middle acquisition, it can be determined that whether web site performance parameter is default Performance parameter in the range of and the current performance parameters coefficient of variation whether be less than historical performance parameter become Different coefficient, if both judged results are to be, is presented prompting of the web site performance by test Information.
Judge web site performance parameter whether in the range of default performance parameter and current performance join , can be to web site performance parameter when whether number variation coefficient is less than historical performance parameter variation coefficient Whether in the range of default performance parameter and the current performance parameters coefficient of variation whether be less than history The performance parameter coefficient of variation is judged respectively, so as to obtain comprehensive judged result;Can also First whether web site performance parameter is judged in the range of default performance parameter, if meeting, Whether the current performance parameters coefficient of variation is carried out respectively less than historical performance parameter variation coefficient again Judge, so as to improve judging efficiency.
Herein, default performance parameter scope, refer to tester previously according to portfolio and The scope of web site performance parameter when website set by server system parameter is normally run.
In some optional implementations of the present embodiment, historical performance parameter variation coefficient can be with Obtained by below equation:
Wherein, C.V represents historical performance parameter variation coefficient;SD represents that history website performance is joined Several standard deviations, MN represents the average value of history website performance parameter.
In some optional implementations of the present embodiment, the mark of above-mentioned history website performance parameter Quasi- deviation SD is obtained by below equation:
Wherein, SD represents the standard deviation of history website performance parameter, XiRepresent history website The sample value of energy parameter, represents the average value of the sample value of history website performance parameter, and n is represented The sample size of history website performance parameter.
In some optional implementations of the present embodiment, the average value of history website performance parameter Obtained by below equation:
MN=TRIMMEAN (X1:Xn, 0.1);
Wherein, MN represents the average value of history website performance parameter, namely sample array X1Extremely XnInside average value, X1Represent the 1st sample value, X of history website performance parameternTable Show n-th of sample value of history website performance parameter, 0.1 represents to remove sample array in analysis X1To XnHead and the tail amount to 10% data, function TRIMMEAN represents to remove number first Group X1To XnHead and the tail amount to 10% data, the data left are averaged afterwards.
In some optional implementations of the present embodiment, the method for above-mentioned test web site performance is also Including:
Step 204, in response to current site performance parameter not in the range of default performance parameter, Performance parameter is presented not by testing prompting message.
And/or
Step 205, it is more than historical performance parameter variation in response to the current performance parameters coefficient of variation Coefficient, is presented the coefficient of variation not by testing prompting message.
With continued reference to Fig. 3, Fig. 3 is the tool of the method for the test web site performance according to the present embodiment One indicative flowchart of body application scenarios.In Fig. 3 application scenarios, Test Network is performed One indicative flowchart of the concrete application scene of the method for performance of standing includes:
In step 301, receive input instruction, start test;
In step 302, performance test is carried out to website according to default testing procedure;
In step 303, the website property such as the business and system index of the website that test is obtained are obtained Can parameter;
In step 304, business processing amount per second is analyzed, whether business processing amount per second is judged In the range of default business processing amount per second, if, and export judged result to step 309;
In step 305, central processor CPU utilization rate is analyzed, CPU usage is judged Whether in the range of default CPU usage, if, and export judged result to step 309;
Within step 306, memory usage is analyzed, judges memory usage whether default In the range of memory usage, if, and export judged result to step 309;
In step 307, the service response time is analyzed, judges whether the service response time meets Default service response time threshold, if, and export judged result to step 309;
In step 308, business per second therein is inputted using coefficient of variation analysis of regression model Each performance parameters such as treating capacity, CPU usage, memory usage and service response time The coefficient of variation, and the obtained coefficient of variation is contrasted with historical performance parameter variation coefficient, And export comparing result to step 309;
In a step 309, according to above-mentioned performance test by or performance test do not pass through, export Test report;
In the step 310, this test is terminated.
In the method for above-mentioned test web site performance, coefficient of variation regression model is according to input Performance parameter (such as business processing amount per second, CPU usage, memory usage and business Response time etc.) coefficient of variation of each performance parameter is obtained, obtained performance ginseng is compared afterwards Several coefficient of variation and historical performance parameter variation coefficient (namely deviation ratio of each performance parameter) And export the model of comparison result.
The method that above-described embodiment of the application is provided, can be objectively according to web site performance parameter Judge web site performance whether by test, it is to avoid by artificial experience deficiency is judged institute's band The erroneous judgement influence come.
With further reference to Fig. 4, as the realization to method shown in above-mentioned each figure, the application is provided A kind of one embodiment for the device for testing web site performance, the device embodiment with shown in Fig. 2 Embodiment of the method it is corresponding, the device specifically can apply in various electronic equipments.
As shown in figure 4, the device 400 of the test web site performance described in the present embodiment includes:Property Can parameter acquisition module 410, coefficient of variation acquisition module 420 and pass through test present module 430. Wherein, performance parameter acquisition module 410, for according to default testing procedure, obtaining current Web site performance parameter;Coefficient of variation acquisition module 420, for obtaining current site performance parameter Relative to the current performance parameters coefficient of variation of the average value of history website performance parameter;By surveying Examination present module 430, in response to web site performance parameter meet default performance parameter threshold value and The current performance parameters coefficient of variation is less than historical performance parameter variation coefficient, and web site performance is presented and leads to The prompting message of test is crossed, wherein, historical performance parameter variation coefficient is according to history website performance Parameter is obtained.
In some optional implementations of the present embodiment, the device of above-mentioned test web site performance is also Including:Performance parameter is not by being presented module 440, in response to current site performance parameter Not in the range of default performance parameter, performance parameter is presented not by testing prompting message;With/ Or the coefficient of variation is not by being presented module 450, in response to the current performance parameters coefficient of variation More than historical performance parameter variation coefficient, the coefficient of variation is presented not by testing prompting message.
In some optional implementations of the present embodiment, coefficient of variation acquisition module is further used In pass through below equation obtain the current performance parameters coefficient of variation:
Wherein, Result represents web site performance parameter, and MN represents history website performance parameter Average value.
In some optional implementations of the present embodiment, coefficient of variation acquisition module is further used In obtaining historical performance parameter variation coefficient by below equation:
Wherein, C.V represents historical performance parameter variation coefficient;SD represents that history website performance is joined Several standard deviations, MN represents the average value of history website performance parameter.
In some optional implementations of the present embodiment, coefficient of variation acquisition module is further used In the standard deviation that history website performance parameter is obtained by below equation:
Wherein, SD represents the standard deviation of history website performance parameter, XiRepresent history website The sample value of energy parameter, represents the average value of the sample value of history website performance parameter, and n is represented The sample size of history website performance parameter.
In some optional implementations of the present embodiment, coefficient of variation acquisition module is further used In the average value that history website performance parameter is obtained by below equation:
MN=TRIMMEAN (X1:Xn, 0.1);
Wherein, MN represents the average value of history website performance parameter, namely sample array X1Extremely XnInside average value, X1Represent the 1st sample value, X of history website performance parameternTable Show n-th of sample value of history website performance parameter, 0.1 represents to remove sample array in analysis X1To XnHead and the tail amount to 10% data, function TRIMMEAN represents to remove number first Group X1To XnHead and the tail amount to 10% data, the data left are averaged afterwards.
It will be understood by those skilled in the art that the device 400 of above-mentioned test web site performance also includes Some other known features, such as processor, memory, in order to unnecessarily obscure this public affairs The embodiment opened, these known structures are not shown in Fig. 4.
It should be appreciated that in the method that all units described in device 400 are described with reference Fig. 2 Each step is corresponding.Thus, above with respect to test web site performance method description operation and Feature is equally applicable to device 400 and the unit wherein included, will not be repeated here.Device 400 With 400 in corresponding units can with the unit in terminal device and/or server cooperate with Realize the scheme of the embodiment of the present application.
Below with reference to Fig. 5, it illustrates suitable for for realizing the terminal device of the embodiment of the present application Or the structural representation of the computer system 500 of server.
As shown in figure 5, computer system 500 includes CPU (CPU) 501, its Can according to the program being stored in read-only storage (ROM) 502 or from storage part 508 The program that is loaded into random access storage device (RAM) 503 and perform various appropriate actions And processing.In RAM 503, the system that is also stored with 500 operates required various program sums According to.CPU 501, ROM 502 and RAM 503 are connected with each other by bus 504.Input / output (I/O) interface 505 is also connected to bus 504.
I/O interfaces 505 are connected to lower component:Importation 506 including keyboard, mouse etc.; Including cathode-ray tube (CRT), liquid crystal display (LCD) etc. and loudspeaker etc. Output par, c 507;Storage part 508 including hard disk etc.;And including such as LAN card, The communications portion 509 of the NIC of modem etc..Communications portion 509 is via such as The network of internet performs communication process.Driver 510 is also according to needing to be connected to I/O interfaces 505.Detachable media 511, such as disk, CD, magneto-optic disk, semiconductor memory etc., Be arranged on as needed on driver 510, in order to the computer program that reads from it according to Need to be mounted into storage part 508.
Especially, in accordance with an embodiment of the present disclosure, the process described above with reference to flow chart can be with It is implemented as computer software programs.For example, embodiment of the disclosure includes a kind of computer journey Sequence product, it includes being tangibly embodied in the computer program on machine readable media, the meter Calculation machine program bag, which contains, is used for the program code of the method shown in execution flow chart.Implement such In example, the computer program can be downloaded and installed by communications portion 509 from network, And/or be mounted from detachable media 511.
Flow chart and block diagram in accompanying drawing, it is illustrated that according to the system of the various embodiments of the application, Architectural framework in the cards, function and the operation of method and computer program product.This point On, each square frame in flow chart or block diagram can represent a module, program segment or code A part, the part of the module, program segment or code is used for comprising one or more The executable instruction of logic function as defined in realizing.It should also be noted that being used as replacement at some In realization, the function of being marked in square frame can also be with different from the order marked in accompanying drawing hair It is raw.For example, two square frames succeedingly represented can essentially be performed substantially in parallel, they Sometimes it can also perform in the opposite order, this is depending on involved function.It is also noted that It is, each square frame in block diagram and/or flow chart and the square frame in block diagram and/or flow chart Combination, can be realized with the special hardware based system of defined function or operation is performed, Or can be realized with the combination of specialized hardware and computer instruction.
Being described in module involved in the embodiment of the present application can be realized by way of software, It can also be realized by way of hardware.Described module can also be set within a processor, For example, can be described as:A kind of processor includes performance parameter acquisition module, and the coefficient of variation is obtained Modulus block and pass through test present module.Wherein, the title of these modules is under certain conditions simultaneously The restriction in itself to the module is not constituted, for example, performance parameter acquisition module can also be described For " according to default testing procedure, obtaining the module of current site performance parameter ".
As on the other hand, present invention also provides a kind of nonvolatile computer storage media, The nonvolatile computer storage media can be described in above-described embodiment included in device Nonvolatile computer storage media;Can also be individualism, without non-in supplying terminal Volatile computer storage medium.Above-mentioned nonvolatile computer storage media be stored with one or The multiple programs of person, when one or more of programs are performed by an equipment so that described Equipment:According to default testing procedure, current site performance parameter is obtained;Obtain current site The current performance parameters coefficient of variation of the performance parameter relative to the average value of history website performance parameter; In response to current site performance parameter in the range of default performance parameter and current performance parameters The coefficient of variation is less than historical performance parameter variation coefficient, and prompting of the web site performance by test is presented Information, wherein, historical performance parameter variation coefficient is obtained according to history website performance parameter.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle. It will be appreciated by those skilled in the art that invention scope involved in the application, however it is not limited on State the technical scheme of the particular combination of technical characteristic, at the same should also cover do not depart from it is described In the case of inventive concept, it is combined and shape by above-mentioned technical characteristic or its equivalent feature Into other technical schemes.Such as features described above has with (but not limited to) disclosed herein The technical characteristic of similar functions carries out technical scheme formed by replacement mutually.

Claims (13)

1. a kind of method for testing web site performance, it is characterised in that methods described includes:
According to default testing procedure, current site performance parameter is obtained;
The current site performance parameter is obtained relative to the average value of history website performance parameter The current performance parameters coefficient of variation;
It is in the range of default performance parameter and described in response to the current site performance parameter The current performance parameters coefficient of variation is less than historical performance parameter variation coefficient, and web site performance is presented and leads to The prompting message of test is crossed, wherein, the historical performance parameter variation coefficient is according to history website Performance parameter is obtained.
2. according to the method described in claim 1, it is characterised in that methods described also includes:
In response to the current site performance parameter not in the range of default performance parameter, present Performance parameter is not by testing prompting message;And/or
It is more than historical performance parameter variation coefficient in response to the current performance parameters coefficient of variation, The coefficient of variation is presented not by testing prompting message.
3. according to the method described in claim 1, it is characterised in that the current performance parameters The coefficient of variation is obtained by below equation:
Wherein, Result represents the web site performance parameter, and MN represents that history website performance is joined Several average value.
4. method according to claim 3, it is characterised in that the historical performance parameter The coefficient of variation is obtained by below equation:
<mrow> <mi>C</mi> <mo>.</mo> <mi>V</mi> <mo>=</mo> <mrow> <mo>(</mo> <mfrac> <mrow> <mi>S</mi> <mi>D</mi> </mrow> <mrow> <mi>M</mi> <mi>N</mi> </mrow> </mfrac> <mo>)</mo> </mrow> <mo>&amp;times;</mo> <mn>100</mn> <mi>%</mi> <mo>;</mo> </mrow>
Wherein, C.V represents historical performance parameter variation coefficient;SD represents that history website performance is joined Several standard deviations, MN represents the average value of history website performance parameter.
5. method according to claim 4, it is characterised in that the history website performance The standard deviation of parameter is obtained by below equation:
<mrow> <mi>S</mi> <mi>D</mi> <mo>=</mo> <msqrt> <mfrac> <mrow> <msubsup> <mi>&amp;Sigma;</mi> <mrow> <mi>i</mi> <mo>=</mo> <mn>1</mn> </mrow> <mi>n</mi> </msubsup> <msup> <mrow> <mo>(</mo> <msub> <mi>X</mi> <mi>i</mi> </msub> <mo>-</mo> <mover> <mi>X</mi> <mo>&amp;OverBar;</mo> </mover> <mo>)</mo> </mrow> <mn>2</mn> </msup> </mrow> <mrow> <mi>n</mi> <mo>-</mo> <mn>1</mn> </mrow> </mfrac> </msqrt> <mo>;</mo> </mrow>
Wherein, SD represents the standard deviation of history website performance parameter, XiRepresent history website The sample value of energy parameter, represents the average value of the sample value of history website performance parameter, and n is represented The sample size of history website performance parameter.
6. the method according to one of claim 3 or 4, it is characterised in that the history The average value of web site performance parameter is obtained by below equation:
MN=TRIMMEAN (X1:Xn, 0.1);
Wherein, MN represents the average value of history website performance parameter, namely sample array X1Extremely XnInside average value, X1Represent the 1st sample value, X of history website performance parameternTable Show n-th of sample value of history website performance parameter, 0.1 represents to remove sample array in analysis X1To XnHead and the tail amount to 10% data, function TRIMMEAN represents to remove number first Group X1To XnHead and the tail amount to 10% data, the data left are averaged afterwards.
7. according to the method described in claim 1, it is characterised in that the web site performance parameter Including following one or more:Business processing amount per second, service response time, CPU usage And memory usage.
8. a kind of device for testing web site performance, it is characterised in that described device includes:
Performance parameter acquisition module, for according to default testing procedure, obtaining current site Can parameter;
Coefficient of variation acquisition module, for obtaining the current site performance parameter relative to history The current performance parameters coefficient of variation of the average value of web site performance parameter;
By test present module, in response to the current site performance parameter default In the range of performance parameter and the current performance parameters coefficient of variation less than historical performance parameter become Different coefficient, is presented prompting message of the web site performance by test, wherein, the historical performance ginseng Number variation coefficient is obtained according to history website performance parameter.
9. device according to claim 8, it is characterised in that described device also includes:
Performance parameter not by the way that module is presented, in response to the current site performance parameter not In the range of default performance parameter, performance parameter is presented not by testing prompting message;With/ Or
The coefficient of variation is not by being presented module, in response to the current performance parameters variation lines Number is more than historical performance parameter variation coefficient, and the coefficient of variation is presented not by testing prompting message.
10. device according to claim 8, it is characterised in that the coefficient of variation is obtained Modulus block is further used for obtaining the current performance parameters coefficient of variation by below equation:
Wherein, Result represents the web site performance parameter, and MN represents that history website performance is joined Several average value.
11. device according to claim 10, it is characterised in that the coefficient of variation is obtained Modulus block is further used for obtaining the historical performance parameter variation coefficient by below equation:
<mrow> <mi>C</mi> <mo>.</mo> <mi>V</mi> <mo>=</mo> <mrow> <mo>(</mo> <mfrac> <mrow> <mi>S</mi> <mi>D</mi> </mrow> <mrow> <mi>M</mi> <mi>N</mi> </mrow> </mfrac> <mo>)</mo> </mrow> <mo>&amp;times;</mo> <mn>100</mn> <mi>%</mi> <mo>;</mo> </mrow>
Wherein, C.V represents historical performance parameter variation coefficient;SD represents that history website performance is joined Several standard deviations, MN represents the average value of history website performance parameter.
12. device according to claim 11, it is characterised in that the coefficient of variation is obtained Modulus block is further used for obtaining the standard deviation of the history website performance parameter by below equation Difference:
<mrow> <mi>S</mi> <mi>D</mi> <mo>=</mo> <msqrt> <mfrac> <mrow> <msubsup> <mi>&amp;Sigma;</mi> <mrow> <mi>i</mi> <mo>=</mo> <mn>1</mn> </mrow> <mi>n</mi> </msubsup> <msup> <mrow> <mo>(</mo> <msub> <mi>X</mi> <mi>i</mi> </msub> <mo>-</mo> <mover> <mi>X</mi> <mo>&amp;OverBar;</mo> </mover> <mo>)</mo> </mrow> <mn>2</mn> </msup> </mrow> <mrow> <mi>n</mi> <mo>-</mo> <mn>1</mn> </mrow> </mfrac> </msqrt> <mo>;</mo> </mrow>
Wherein, SD represents the standard deviation of history website performance parameter, XiRepresent history website The sample value of energy parameter, represents the average value of the sample value of history website performance parameter, and n is represented The sample size of history website performance parameter.
13. the device according to one of claim 8-12, it is characterised in that the variation Coefficient acquisition module is further used for obtaining the history website performance parameter by below equation Average value:
MN=TRIMMEAN (X1:Xn, 0.1);
Wherein, MN represents the average value of history website performance parameter, namely sample array X1Extremely XnInside average value, X1Represent the 1st sample value, X of history website performance parameternTable Show n-th of sample value of history website performance parameter, 0.1 represents to remove sample array in analysis X1To XnHead and the tail amount to 10% data, function TRIMMEAN represents to remove number first Group X1To XnHead and the tail amount to 10% data, the data left are averaged afterwards.
CN201610179287.8A 2016-03-25 2016-03-25 Method and device for testing website performance Active CN107231268B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610179287.8A CN107231268B (en) 2016-03-25 2016-03-25 Method and device for testing website performance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610179287.8A CN107231268B (en) 2016-03-25 2016-03-25 Method and device for testing website performance

Publications (2)

Publication Number Publication Date
CN107231268A true CN107231268A (en) 2017-10-03
CN107231268B CN107231268B (en) 2020-05-01

Family

ID=59931950

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610179287.8A Active CN107231268B (en) 2016-03-25 2016-03-25 Method and device for testing website performance

Country Status (1)

Country Link
CN (1) CN107231268B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108183837A (en) * 2017-12-19 2018-06-19 广州供电局有限公司 Web site performance monitoring method and system
CN110990242A (en) * 2019-11-29 2020-04-10 上海观安信息技术股份有限公司 Method and device for determining fluctuation abnormity of user operation times

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101106487A (en) * 2007-08-31 2008-01-16 华为技术有限公司 A method and device for detecting exception of network traffic
CN101741595A (en) * 2008-11-26 2010-06-16 华为技术有限公司 Method, device and system for appraisal of network reliability
CN101964997A (en) * 2009-07-21 2011-02-02 中国移动通信集团黑龙江有限公司 Method and device for carrying out early warning on network performance
CN103139007A (en) * 2011-12-05 2013-06-05 阿里巴巴集团控股有限公司 Method and system for detecting application server performance
CN103403533A (en) * 2011-02-24 2013-11-20 简.探针公司 Systems and methods for distinguishing optical signals of different modulation frequencies in an optical signal detector
WO2014023245A1 (en) * 2012-08-09 2014-02-13 中兴通讯股份有限公司 Flow prediction method and system and flow monitoring method and system
CN104753733A (en) * 2013-12-31 2015-07-01 中兴通讯股份有限公司 Method and device for detecting abnormal network traffic data
CN104954192A (en) * 2014-03-27 2015-09-30 东华软件股份公司 Network flow monitoring method and device
CN104967540A (en) * 2014-06-10 2015-10-07 腾讯科技(深圳)有限公司 Server status detection method and apparatus thereof
CN105047902A (en) * 2014-04-25 2015-11-11 Tdk株式会社 Negative electrode active material for lithium ion secondary battery, negative electrode for lithium ion secondary battery, and lithium ion secondary battery

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101106487A (en) * 2007-08-31 2008-01-16 华为技术有限公司 A method and device for detecting exception of network traffic
CN101741595A (en) * 2008-11-26 2010-06-16 华为技术有限公司 Method, device and system for appraisal of network reliability
CN101964997A (en) * 2009-07-21 2011-02-02 中国移动通信集团黑龙江有限公司 Method and device for carrying out early warning on network performance
CN103403533A (en) * 2011-02-24 2013-11-20 简.探针公司 Systems and methods for distinguishing optical signals of different modulation frequencies in an optical signal detector
CN103139007A (en) * 2011-12-05 2013-06-05 阿里巴巴集团控股有限公司 Method and system for detecting application server performance
WO2014023245A1 (en) * 2012-08-09 2014-02-13 中兴通讯股份有限公司 Flow prediction method and system and flow monitoring method and system
CN104753733A (en) * 2013-12-31 2015-07-01 中兴通讯股份有限公司 Method and device for detecting abnormal network traffic data
CN104954192A (en) * 2014-03-27 2015-09-30 东华软件股份公司 Network flow monitoring method and device
CN105047902A (en) * 2014-04-25 2015-11-11 Tdk株式会社 Negative electrode active material for lithium ion secondary battery, negative electrode for lithium ion secondary battery, and lithium ion secondary battery
CN104967540A (en) * 2014-06-10 2015-10-07 腾讯科技(深圳)有限公司 Server status detection method and apparatus thereof

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张业: ""网络性能数据采集与分析方法的研究"", 《中国优秀硕士学位论文全文数据库信息科技辑》 *
王苏南: ""高速复杂网络环境下异常流量检测技术研究"", 《中国博士学位论文全文数据库》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108183837A (en) * 2017-12-19 2018-06-19 广州供电局有限公司 Web site performance monitoring method and system
CN108183837B (en) * 2017-12-19 2020-08-14 广州供电局有限公司 Website performance monitoring method and system
CN110990242A (en) * 2019-11-29 2020-04-10 上海观安信息技术股份有限公司 Method and device for determining fluctuation abnormity of user operation times
CN110990242B (en) * 2019-11-29 2023-06-20 上海观安信息技术股份有限公司 Method and device for determining fluctuation abnormality of user operation times

Also Published As

Publication number Publication date
CN107231268B (en) 2020-05-01

Similar Documents

Publication Publication Date Title
CN107194743A (en) A kind of network surveying questionnaire generation method and device
CN107145395A (en) Method and apparatus for handling task
CN107590255A (en) Information-pushing method and device
CN105893253A (en) Application software testing method, device and equipment
CN111815169B (en) Service approval parameter configuration method and device
CN112468658B (en) Voice quality detection method and device, computer equipment and storage medium
CN107958009A (en) Company information acquisition methods, device and equipment
CN106649342A (en) Data processing method and apparatus in data acquisition platform
CN107643984A (en) Method and apparatus for output information
CN109634820A (en) A kind of fault early warning method, relevant device and the system of the collaboration of cloud mobile terminal
CN107704388A (en) For the method and apparatus for the startup time for determining application
CN107819745A (en) The defence method and device of abnormal flow
CN112990583A (en) Method and equipment for determining mold entering characteristics of data prediction model
CN107622007A (en) Application testing method and device
CN107231268A (en) The method and apparatus for testing web site performance
CN112098756A (en) Method, device, equipment and storage medium for positioning electromagnetic compatibility problem
CN109508845A (en) Processing method, device and the computer readable storage medium of cost data
CN114971693A (en) Engineering cost consultation management system based on BIM
CN108629355A (en) Method and apparatus for generating workload information
CN107402878A (en) Method of testing and device
CN107368407A (en) Information processing method and device
CN107315672A (en) Method and apparatus for monitoring server
CN108108175A (en) A kind of method and apparatus for gray scale issue
CN110020597A (en) It is a kind of for the auxiliary eye method for processing video frequency examined of dizziness/dizziness and system
CN115002843A (en) Service quality checking method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant