CN108733564A - A kind of browser performance test method, device and equipment - Google Patents

A kind of browser performance test method, device and equipment Download PDF

Info

Publication number
CN108733564A
CN108733564A CN201810478972.XA CN201810478972A CN108733564A CN 108733564 A CN108733564 A CN 108733564A CN 201810478972 A CN201810478972 A CN 201810478972A CN 108733564 A CN108733564 A CN 108733564A
Authority
CN
China
Prior art keywords
test
time
test environment
browser
browser component
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
CN201810478972.XA
Other languages
Chinese (zh)
Other versions
CN108733564B (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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201810478972.XA priority Critical patent/CN108733564B/en
Publication of CN108733564A publication Critical patent/CN108733564A/en
Application granted granted Critical
Publication of CN108733564B publication Critical patent/CN108733564B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

This specification embodiment discloses a kind of browser and surveys performance method for testing, device and equipment.The method includes:Based on the first test environment, browser component and browser component required time after optimization before running optimizatin are recorded respectively, calculates the ratio the time required to operation the two;Further, based on the second test environment, browser component before running optimizatin, record run time, according to the relationship of the run time and ratio, the testing time for calculating browser component after the second test environment running optimizatin, so as to the assessment to the runnability in the second test environment of browser component after optimization.

Description

A kind of browser performance test method, device and equipment
Technical field
This specification is related to field of computer technology more particularly to a kind of browser performance test method, device and sets It is standby.
Background technology
With popularizing for the terminals such as mobile phone, computer, different terminals are run on, the browser of different operating system also obtains extensively General application.
In the prior art, more in order to meet the browser performance based on different terminal equipment, different type operating system The demand (for example, chart optimization, display effect optimization etc.) of sample, generally requires reconstruct browser scripted code.Carrying out generation When code reconstruct, it is normally based on the terminal device completion of developer.For different terminal equipment, different operating system, use The effect that identical browser scripted code is realized can be variant.Therefore, it is necessary to be based on a variety of different terminal devices, difference Operating system carries out assessment test to the browser scripted code after optimization.
Based on the prior art, it is desirable to be able to quickly, accurately carry out the scheme of browser performance test.
Invention content
A kind of browser performance test method of this specification embodiment offer, device and equipment, for solving following skill Art problem:It is required to quick, the accurate scheme for carrying out browser performance test.
In order to solve the above technical problems, what this specification embodiment was realized in:
A kind of browser performance test method that this specification embodiment provides, including:
The first fiducial time and the first testing time are obtained based on the first test environment;
Obtain the second fiducial time based on browser component before the second test environment running optimizatin;
According to first fiducial time, first testing time and second fiducial time, test is based on described The performance of browser component after second test environment running optimizatin.
A kind of browser performance test device that this specification embodiment provides, including:
First acquisition module obtains the first fiducial time and the first testing time based on the first test environment;
Second acquisition module obtains the second fiducial time based on browser component before the second test environment running optimizatin;
Test module, according to first fiducial time, first testing time and second fiducial time, test Performance based on browser component after the second test environment running optimizatin.
The a kind of electronic equipment that this specification embodiment provides, including:
At least one processor;And
The memory being connect at least one processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one processor, and described instruction is by described at least one A processor executes, so that at least one processor can:
The first fiducial time and the first testing time are obtained based on the first test environment;
Obtain the second fiducial time based on browser component before the second test environment running optimizatin;
According to first fiducial time, first testing time and second fiducial time, test is based on described The performance of browser component after second test environment running optimizatin.
Above-mentioned at least one technical solution that this specification embodiment uses can reach following advantageous effect:
By being based on different terminals platform, including the first test environment and the second test environment, it is separately operable corresponding excellent Browser component (for example, infrastructure component) before changing, and record corresponding first fiducial time and the second fiducial time;Wherein, One test environment and the second test environment are respectively different platform.It is first after the reconstruct work for completing browser scripted code It is first based on browser component after the first test environment running optimizatin, and recorded for the first testing time, by the first testing time and the The ratio of one fiducial time is as test coefficient, in this manner it is possible to remove different second test environments of assessment based on the test coefficient Running optimizatin after whether comply with standard the time required to browser component.Can effectively lift pins to different second test environments into The accuracy and efficiency of row test.
Description of the drawings
In order to illustrate more clearly of this specification embodiment or technical solution in the prior art, below will to embodiment or Attached drawing needed to be used in the description of the prior art is briefly described, it should be apparent that, the accompanying drawings in the following description is only Some embodiments described in this specification, for those of ordinary skill in the art, in not making the creative labor property Under the premise of, other drawings may also be obtained based on these drawings.
Fig. 1 is the schematic diagram that the browser performance that the scheme of this specification is related under practical application scene tests system;
Fig. 2 is a kind of flow diagram for browser performance test method that this specification embodiment provides;
Fig. 3 is a kind of flow diagram for cross-beta mode that this specification embodiment provides;
Fig. 4 is a kind of flow chart for browser performance testing example that this specification embodiment provides;
Fig. 5 is a kind of schematic diagram for browser performance test device that this specification embodiment provides.
Specific implementation mode
In order to make those skilled in the art more fully understand the technical solution in this specification, below in conjunction with this explanation Attached drawing in book embodiment is clearly and completely described the technical solution in this specification embodiment, it is clear that described Embodiment be merely a part but not all of the embodiments of the present application.Based on this specification embodiment, this field The every other embodiment that those of ordinary skill is obtained without creative efforts, should all belong to the application The range of protection.
In the prior art, it during testing browser performance, is often directed to different test platforms and distinguishes people To specify evaluation criteria (time span that typically user can endure is as standard), but the standard that everyone specifies may It will have differences, cannot achieve the unitized of each test platform evaluation criteria.For this reason, it may be necessary to formulate a unified assessment Standard, so as to efficiently, accurately be assessed to realize.
Specifically, the browser performance test system that Fig. 1 is related to for the scheme of this specification under a kind of practical application scene The schematic diagram of system.Based on the first test environment, browser component before running optimizatin obtained for the first fiducial time;Further, base The browser component after the first test environment, running optimizatin obtained for the first testing time;By the first testing time and the first benchmark The ratio of time is as test coefficient.When carrying out test assessment to other second test environments, it is also desirable to first obtain each second Time required when browser component before test environment running optimizatin, as the second fiducial time;Further, be based on other the Browser component after two test environment running optimizatins obtained for the second testing time.It is final to need to assess second testing time and be No qualification.
It should be noted that the first test environment and the second test environment are different test environment.In general, first Test environment can be understood as basic test environment, in other words, test environment used in developer.Second test environment can To there is many, it can be understood as the test environment of browser component after possible application optimization.Test environment mentioned here, packet Terminal device (such as computer, smart mobile phone etc.), operating system are included (for example, Windows operating system, Android are operated System etc.), browser (for example, IE browser, UC browsers etc.) etc..
Based on above-mentioned scene, the scheme of this specification is described in detail below.
Fig. 2 is a kind of flow diagram for browser performance test method that this specification embodiment provides, this method tool Body may comprise steps of:
Step S202:It is obtained based on the first test environment and the first fiducial time and the first survey is obtained based on the first test environment Try the time.
In practical applications, the first test environment can be understood as being made when developer optimizes browser component Environment.Developer usually has test index when optimizing, upgrading to browser, if being based on the first test wrapper After the test passes of border, can further it be tested based on other test environments (that is, second test environment).It should be noted that First fiducial time and the first testing time mentioned here can be understood as being tested other test environments, being assessed Evaluation parameter or evaluation index.Due to being had differences between each test environment, the first test environment will be based on and obtain the One fiducial time and the first testing time are used as opposite reference standard, so as to unified commenting for each different test environments Price card is accurate.It should be noted that the first fiducial time mentioned here is based on before the operation browser optimization of the first test environment The time of assignment component, the first testing time are the time based on assignment component after the operation browser optimization of the first test environment.
Step S204:Obtain the second fiducial time based on browser component before the second test environment running optimizatin.
In practical applications, the browser for being normally based on previous release optimizes, after understanding optimization Browser performance whether meet the requirements, need the browser execution situation for first obtaining previous release.Specifically, it first obtains Taking needed for previous release browser execution fundamental operation (for example, assignment operation), as the second fiducial time, and according to this As reference, whether the browser performance after going assessment to optimize complies with standard.
Second test environment mentioned here includes:Second terminal equipment, the second operating system, second browser etc..It lifts For example, second terminal equipment can be mobile phone terminal platform, computer terminal platform or server terminal platform etc., Neng Gouzhi Hold the terminal platform of browser execution.Second fiducial time was a time span, and speed ratio when being run due to coding is very fast, Multiple circulate operation can be run when test, to obtain second fiducial time with apparent time span.
Step S206:According to first fiducial time, first testing time and second fiducial time, test Performance based on browser component after the second test environment running optimizatin.
In practical application, the performance test to browser component after optimization needs to carry out for different test environments, such as It is described previously it is found that in different test environment, can have different second terminal equipment, different operating system or not Same browser;Therefore, each test has specific aim.To the assessment mode of each test environment can there are many, for example, It can be based on test the second test environment of coefficient pair to assess, testing standard can also be based on (namely based on the second test environment Time after running optimizatin needed for browser component);Specifically, can by time span defined by testing standard with based on the Time span after two test environment running optimizatins needed for browser component is compared.
Based on the above it can be appreciated that by being based on different terminals platform, including the first test environment and second is surveyed Test ring border is separately operable browser component (for example, infrastructure component) before corresponding optimization, and records corresponding first fiducial time With the second fiducial time;Wherein, the first test environment and the second test environment are respectively different platforms.Complete browser foot After the reconstruct work of this code, when being primarily based on browser component after the first test environment running optimizatin, and recording the first test Between, using the ratio of the first testing time and the first fiducial time as test coefficient, in this manner it is possible to be gone based on the test coefficient Whether complied with standard the time required to browser component after the running optimizatin of different second test environments of assessment.It being capable of effective lift pins The accuracy and efficiency that the second test environment of difference is tested.
In this specification one or more embodiment, the first fiducial time and first is obtained based on the first test environment Testing time can specifically include:Obtain the first benchmark that browser component before the optimization is run based on the first test environment Time;Obtain the first testing time that browser component after the optimization is run based on first test environment;According to described The ratio of first testing time and first fiducial time determine the test coefficient;Wherein, the first test environment packet It includes:First terminal equipment, the first operating system, the first browser.
When carrying out scripted code reconstruct to browser, it is normally based on the terminal device completion of developer.Right When browser component optimizes, developer is typically required setting optimized evaluation standard, for example, operation basic browsers group Required time (that is, first fiducial time) is 1 second when part, based on browser after identical basic test environment running optimizatin The component required time (that is, first testing time) is 10 seconds, since browser component carries out display effect after optimization Abundant rendering, it is contemplated that the acceptable render time of user is 15 seconds, then 10 seconds current the first testing times can accord with Run the optimized evaluation index of originator jointly.It is readily appreciated that, be based on identical test environment, browser component is taken after running optimizatin Between, it is 10 times (that is, test coefficient is 10) before running optimizatin the time required to basic browsers component, it therefore, can be by first The ratio of testing time and the first fiducial time, the index as other test environments of aided assessment.
It should be noted that the calculation of test coefficient, can be fiducial time the first testing time/first, certainly, It can also be the testing time the first fiducial time/first.It is corresponding if ratio relation changes, to the second test environment into Incidence relation also changes used by row assessment, in other words, test coefficient and the second fiducial time, the second testing time it Between incidence relation also change.
First terminal equipment mentioned here includes at least:Terminal, server terminal, mobile terminal etc.;First Operating system includes at least:Windows systems, android system, iOS system etc., the first browser include at least:IE is browsed Device, UC browsers, Google's browser, safari browsers etc..
In this specification one or more embodiment, according to the test coefficient and second fiducial time, survey The performance based on browser component after the second test environment running optimizatin is tried, can specifically include:It is surveyed based on described second Test ring border, browser component after running optimizatin obtained for the second testing time;When according to the test coefficient and second benchmark Between, the incidence relation between second testing time, determine browser component after the second test environment running optimizatin The performance test results.
It should be noted that test coefficient here, the second fiducial time, the second testing time are mutually to convert , incidence relation such as can be:Test coefficient the second fiducial times of *=testing standard or the second testing time the/second benchmark Time=coefficient to be assessed, coefficient to be assessed and the relationship for testing coefficient.When specific comparative evaluation, it is according to incidence relation formula Coefficient the second fiducial times of *=testing standard is tested, then is compared testing standard and the second testing time, if the second test Time is less than or equal to testing standard, then it represents that browser component performance meets test request after optimization;According to incidence relation formula For fiducial time the second testing time/second=coefficient to be assessed, then coefficient to be assessed and test coefficient are compared, if waiting for Metewand is less than or equal to test coefficient, then it represents that browser component performance meets test request after optimization.It needs exist for , it is emphasized that above-mentioned incidence relation is based on fiducial time the first testing time/first=test coefficient, this formula determines 's.
In this specification one or more embodiment, it is based on the second test environment, obtains browser before running optimizatin The second testing time of browser component, can specifically include after second fiducial time of component and running optimizatin:Based on described Second test environment, browser component before running optimizatin, obtain operation complete before the optimization needed for browser component second Fiducial time;Based on second test environment, browser component after running optimizatin is obtained after the optimization is completed in operation and is browsed The second testing time needed for device assembly;Wherein, second test environment include second terminal equipment, the second operating system, Second browser.
As can be seen from the foregoing, it is assessed to the performance to browser component after optimization, needs specified reference standard, Due to the degree of optimization of various components is different from complexity, optimization when the test environment that uses and test environment is different when application, The assessment of effect can not be optimized by single time standard;Need based on optimization before browser component operational effect into Row comparison, that is, need to obtain the second fiducial time needed for browser component before running optimizatin.
It should be noted that the second operating system mentioned here such as may include:Windows operating system, Android Operating system etc.;Second browser such as may include:IE browser, UC browsers, safari browsers, Google's browser Deng.
In practical applications, the change of any one test environment factor can all influence run time, therefore, in order to comment Estimate browser component performance after optimizing, the mode of cross-beta may be used, for example, being illustrated in figure 3 this specification embodiment A kind of cross-beta mode provided, it is assumed that second terminal equipment includes:Terminal, server terminal;Second operation system System includes:Windows systems, android system, iOS system etc.;Second browser includes:IE browser, UC browsers, Safari browsers, Google's browser etc..When designing cross-beta, need all to be tested for each combination.
It is emphasized that running optimizatin after browser component test environment, need and browser group before running optimizatin The test environment of part is identical, that is, second terminal equipment, the second operating system and the second browser having the same;It excludes The influence of test environment itself factor, to obtain browser component required second after the running optimizatin with reference value Testing time.
In this specification one or more embodiment, according to test coefficient and second fiducial time, described the Incidence relation between two testing times is assessed the performance test results of browser component after the optimization, be can specifically include: Based on the product of the test coefficient and second fiducial time, testing standard is obtained;According to the testing standard with it is described Second testing time assessed the performance test results of browser component after the optimization.
As can be seen from the foregoing, test coefficient is determined according to the ratio of the first testing time and the first fiducial time.? In the present embodiment, the test coefficient that will be obtained by basic test environment carries out product with the second fiducial time, obtains test mark It is accurate;Further, the second testing time obtained during the testing standard and actual test is compared, it is excellent to assess The performance test results of browser component after change.
For example, as it was noted above, when basic browsers component before running optimizatin required time (that is, the first benchmark Time) it is 1 second, based on the browser component required time after identical basic test environment running optimizatin (that is, the first test Time) it is 10 seconds.It is basis before running optimizatin after running optimizatin the time required to browser component based on identical test environment 10 times (that is, test coefficient is 10) the time required to browser component.It is assumed that the browser before the second test environment running optimizatin The component required time is 2 seconds, then, according to test coefficient 10, can be calculated for current second test environment Testing standard=10*2, testing standard are 20 seconds.It is assumed that if the second testing time was 15 seconds, it is less than testing standard 20 seconds, then needle Performance requirement is met to browser component after the optimization of current second test environment;If the second testing time was 25 seconds, it is more than and surveys Test-object is 20 seconds accurate, then browser component does not meet performance requirement after being directed to the optimization of current second test environment, needs again excellent Change browser script.
In this specification one or more embodiment, according to test coefficient and second fiducial time, described the Incidence relation between two testing times is assessed the performance test results of browser component after the optimization, is specifically included:It is based on The ratio of second testing time and second fiducial time, determine coefficient to be assessed;According to the test coefficient and institute Coefficient to be assessed is stated, the performance test results of browser component after the optimization are assessed.
In the present embodiment, it is coefficient to be assessed to the index of the second test environment Performance Evaluation, and in previous embodiment Testing standard it is different.Fiducial time testing time of coefficient to be assessed mentioned here=second/second, and pass through the first test The test coefficient that environment obtains is compared, if coefficient to be assessed is more than test coefficient, then it represents that the second test environment performance is commented Estimate unqualified.It should be noted that obtain the calculation of coefficient to be assessed, the benchmark of the second testing time/second may be used Time can also use the testing time the second fiducial time/second, certainly, corresponding using which kind of calculation, with survey Relativity between examination coefficient is also required to be adjusted correspondingly.
For example, as it was noted above, when basic browsers component before running optimizatin required time (that is, the first benchmark Time) it is 1 second, based on the browser component required time after identical first test environment running optimizatin (that is, the first test Time) it is 10 seconds.It is clear for basis before running optimizatin the time required to browser component after running optimizatin based on identical test environment 10 times (that is, test coefficient is 10) look at the time required to device assembly.It is assumed that the browser group before the second test environment running optimizatin The part required time is 2 seconds, is 16 seconds based on the browser component required time after the second test environment running optimizatin, Coefficient=16/2 to be assessed is calculated, coefficient to be assessed is 8, is less than test coefficient 10, therefore, the assessment result of the second test environment It meets the requirements.
In this specification one or more embodiment, second test environment and first test environment are not Same environment.
In practical applications, in general, identical test environment is run needed for identical browser component It realizes identical.In different test environments, running the identical browser component required time can be different, here Described different test environments, including but not limited to:Different browser, different operating system and different terminals are set It is standby etc..This specification embodiment formulates standard and the side of unified test result assessment primarily directed to different test environments Method;Therefore, the second test environment of standard pair that the embodiment of the present application is assessed based on the first test environment as test result carries out The method of assessment can simplify, accurately and rapidly assess the second test environment.
For example, the fixed standard time for assessment is not provided in the embodiment of the present application, below with to browser The step of operation line chart display, optimizes to illustrate, and specific steps are as shown in Figure 4.
First, the time of 10000 basic operations (for example, assignment operation) is run in browser end, it is assumed that be 50 millis Second.The current time is obtained, operation assignment operation 10000 times obtains end time when running to 10000 times, end time It is A=50 milliseconds to subtract current time and obtain operation operation required time before optimizing.
Further, after operation optimizes current chart, corresponding run time length is obtained, it is assumed that be B=1 Second.The proportionate relationship of run time and run time before optimization after calculation optimization, B/A=200 times.
Further, it is based on the second test environment, equally runs 10000 basic operations (for example, assignment operation) Time, it is assumed that be 500 milliseconds.It is possible to calculate based on second test environment operation current chart is optimized after The time of required standard should be 500*200, assess the standard of browser component after current second test environment running optimizatin Time is 10 seconds.
Based on same thinking, this specification embodiment provides a kind of browser performance test device, if Fig. 5 is this theory A kind of browser performance test device that bright book embodiment provides, the device mainly includes:
First acquisition module 501 obtains the first fiducial time and the first testing time based on the first test environment;
Second acquisition module 502 is obtained based on before the second test environment running optimizatin when the second benchmark of browser component Between;
Test module 503, according to first fiducial time, first testing time and second fiducial time, Test the performance based on browser component after the second test environment running optimizatin.
Further, first acquisition module 501 is obtained based on browser before the first test environment operation optimization First fiducial time of component;Wherein, first test environment includes:It is first terminal equipment, the first operating system, first clear Look at device;
Obtain the first testing time that browser component after the optimization is run based on first test environment;
According to the ratio of first testing time and first fiducial time, the test coefficient is determined
Further, second acquisition module 502 is based on second test environment, browser group after running optimizatin Part obtained for the second testing time;
According to the test coefficient and the incidence relation between second fiducial time, second testing time, really The performance test results of browser component after the fixed second test environment running optimizatin.
Further, the test module 503 is obtained based on the product of the test coefficient and second fiducial time Obtain testing standard;
According to the testing standard and second testing time, the performance test of browser component after the optimization is assessed As a result.
Further, the test module 503, the ratio based on second testing time and second fiducial time Value, determines coefficient to be assessed;
According to the test coefficient and the coefficient to be assessed, the performance test knot of browser component after the optimization is assessed Fruit.
Further, second test environment includes second terminal equipment, the second operating system, the second browser.
Further, second test environment and first test environment are different test environments.
Based on same thinking, this specification embodiment also provides a kind of electronic equipment, including:
At least one processor;And
The memory being connect at least one processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one processor, and described instruction is by described at least one A processor executes, so that at least one processor can:
The first fiducial time and the first testing time are obtained based on the first test environment;
Obtain the second fiducial time based on browser component before the second test environment running optimizatin;
According to first fiducial time, first testing time and second fiducial time, test is based on described The performance of browser component after second test environment running optimizatin.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims It is interior.In some cases, the action recorded in detail in the claims or step can be come according to different from the sequence in embodiment It executes and desired result still may be implemented.In addition, the process described in the accompanying drawings not necessarily require show it is specific suitable Sequence or consecutive order could realize desired result.In some embodiments, multitasking and parallel processing be also can With or it may be advantageous.
Each embodiment in this specification is described in a progressive manner, identical similar portion between each embodiment Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for device, For electronic equipment, nonvolatile computer storage media embodiment, since it is substantially similar to the method embodiment, so description It is fairly simple, the relevent part can refer to the partial explaination of embodiments of method.
Device that this specification embodiment provides, electronic equipment, nonvolatile computer storage media with method are corresponding , therefore, device, electronic equipment, nonvolatile computer storage media also there is the Advantageous similar with corresponding method to imitate Fruit, since the advantageous effects of method being described in detail above, which is not described herein again corresponding intrument, The advantageous effects of electronic equipment, nonvolatile computer storage media.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example, Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit. Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device (Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker Dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " patrols Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development, And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language (Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL (Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL (Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language) etc., VHDL (Very-High-Speed are most generally used at present Integrated Circuit Hardware Description Language) and Verilog.Those skilled in the art also answer This understands, it is only necessary to method flow slightly programming in logic and is programmed into integrated circuit with above-mentioned several hardware description languages, The hardware circuit for realizing the logical method flow can be readily available.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing The computer for the computer readable program code (such as software or firmware) that device and storage can be executed by (micro-) processor can Read medium, logic gate, switch, application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), the form of programmable logic controller (PLC) and embedded microcontroller, the example of controller includes but not limited to following microcontroller Device:ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, are deposited Memory controller is also implemented as a part for the control logic of memory.It is also known in the art that in addition to Pure computer readable program code mode is realized other than controller, can be made completely by the way that method and step is carried out programming in logic Controller is obtained in the form of logic gate, switch, application-specific integrated circuit, programmable logic controller (PLC) and embedded microcontroller etc. to come in fact Existing identical function.Therefore this controller is considered a kind of hardware component, and to including for realizing various in it The device of function can also be considered as the structure in hardware component.Or even, it can will be regarded for realizing the device of various functions For either the software module of implementation method can be the structure in hardware component again.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment The combination of equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this The function of each unit is realized can in the same or multiple software and or hardware when specification one or more embodiment.
It should be understood by those skilled in the art that, this specification embodiment can be provided as method, system or computer program Product.Therefore, this specification embodiment can be used complete hardware embodiment, complete software embodiment or combine software and hardware The form of the embodiment of aspect.Moreover, it wherein includes that computer is available that this specification embodiment, which can be used in one or more, It is real in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form for the computer program product applied.
This specification is with reference to the method, equipment (system) and computer program product according to this specification embodiment Flowchart and/or the block diagram describes.It should be understood that can be realized by computer program instructions every in flowchart and/or the block diagram The combination of flow and/or box in one flow and/or box and flowchart and/or the block diagram.These computers can be provided Processor of the program instruction to all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices To generate a machine so that the instruction executed by computer or the processor of other programmable data processing devices generates use In the dress for realizing the function of being specified in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes It sets.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology realizes information storage.Information can be computer-readable instruction, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storages, magnetic tape cassette, tape magnetic disk storage or other magnetic storage apparatus Or any other non-transmission medium, it can be used for storage and can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability Including so that process, method, commodity or equipment including a series of elements include not only those elements, but also wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that wanted including described There is also other identical elements in the process of element, method, commodity or equipment.
This specification can describe in the general context of computer-executable instructions executed by a computer, such as journey Sequence module.Usually, program module include routines performing specific tasks or implementing specific abstract data types, program, object, Component, data structure etc..Specification can also be put into practice in a distributed computing environment, in these distributed computing environments, By executing task by the connected remote processing devices of communication network.In a distributed computing environment, program module can With in the local and remote computer storage media including storage device.
Each embodiment in this specification is described in a progressive manner, identical similar portion between each embodiment Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so description is fairly simple, related place is referring to embodiment of the method Part explanation.
The foregoing is merely this specification embodiments, are not intended to limit this application.For those skilled in the art For, the application can have various modifications and variations.It is all within spirit herein and principle made by any modification, equivalent Replace, improve etc., it should be included within the scope of claims hereof.

Claims (15)

1. a kind of browser performance test method, including:
The first fiducial time and the first testing time are obtained based on the first test environment;
Obtain the second fiducial time based on browser component before the second test environment running optimizatin;
According to first fiducial time, first testing time and second fiducial time, test is based on described second The performance of browser component after test environment running optimizatin.
2. the method as described in claim 1 obtains the first fiducial time and the first testing time, packet based on the first test environment It includes:
Obtain the first fiducial time that browser component before the optimization is run based on the first test environment;
Obtain the first testing time that browser component after the optimization is run based on first test environment;
According to the ratio of first testing time and first fiducial time, the test coefficient is determined;
Wherein, first test environment includes:At least one in first terminal equipment, the first operating system, the first browser Kind.
3. method as claimed in claim 2, according to first fiducial time, first testing time and second base Between punctual, the performance based on browser component after the second test environment running optimizatin is tested, is specifically included:
Based on second test environment, browser component after running optimizatin obtained for the second testing time;
According to the test coefficient and the incidence relation between second fiducial time, second testing time, institute is determined State the performance test results of browser component after the second test environment running optimizatin.
4. method as claimed in claim 3, when according to the test coefficient and second fiducial time, second test Between between incidence relation, assess the performance test results of browser component after the optimization, specifically include:
Based on the product of the test coefficient and second fiducial time, testing standard is obtained;
According to the testing standard and second testing time, the performance test knot of browser component after the optimization is assessed Fruit.
5. method as claimed in claim 3, according to test coefficient and second fiducial time, second testing time it Between incidence relation, assess the performance test results of browser component after the optimization, specifically include:
Ratio based on second testing time Yu second fiducial time, determines coefficient to be assessed;
According to the test coefficient and the coefficient to be assessed, the performance test results of browser component after the optimization are assessed.
6. the method as described in claim 1, second test environment includes second terminal equipment, the second operating system, Two browsers.
7. the method as described in claim 1, second test environment and first test environment are different test wrappers Border.
8. a kind of browser performance test device, including:
First acquisition module obtains the first fiducial time and the first testing time based on the first test environment;
Second acquisition module obtains the second fiducial time based on browser component before the second test environment running optimizatin;
Test module is based on according to first fiducial time, first testing time and second fiducial time, test The performance of browser component after the second test environment running optimizatin.
9. device as claimed in claim 8, first acquisition module obtain and run the optimization based on the first test environment First fiducial time of preceding browser component;
Obtain the first testing time that browser component after the optimization is run based on first test environment;
According to the ratio of first testing time and first fiducial time, the test coefficient is determined;
Wherein, first test environment includes:First terminal equipment, the first operating system, the first browser.
10. device as claimed in claim 9, second acquisition module is based on second test environment, after running optimizatin Browser component obtained for the second testing time;
According to the test coefficient and the incidence relation between second fiducial time, second testing time, institute is determined State the performance test results of browser component after the second test environment running optimizatin.
11. device as claimed in claim 10, the test module, based on the test coefficient and second fiducial time Product, obtain testing standard;
According to the testing standard and second testing time, the performance test knot of browser component after the optimization is assessed Fruit.
12. device as claimed in claim 10, the test module, based on second testing time and second benchmark The ratio of time determines coefficient to be assessed;
According to the test coefficient and the coefficient to be assessed, the performance test results of browser component after the optimization are assessed.
13. device as claimed in claim 8, second test environment includes second terminal equipment, the second operating system, Two browsers.
14. device as claimed in claim 8, second test environment and first test environment are different test wrappers Border.
15. a kind of electronic equipment, including:
At least one processor;And
The memory being connect at least one processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one processor, and described instruction is by least one place It manages device to execute, so that at least one processor can:
The first fiducial time and the first testing time are obtained based on the first test environment;
Obtain the second fiducial time based on browser component before the second test environment running optimizatin;
According to first fiducial time, first testing time and second fiducial time, test is based on described second The performance of browser component after test environment running optimizatin.
CN201810478972.XA 2018-05-18 2018-05-18 Browser performance testing method, device and equipment Active CN108733564B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810478972.XA CN108733564B (en) 2018-05-18 2018-05-18 Browser performance testing method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810478972.XA CN108733564B (en) 2018-05-18 2018-05-18 Browser performance testing method, device and equipment

Publications (2)

Publication Number Publication Date
CN108733564A true CN108733564A (en) 2018-11-02
CN108733564B CN108733564B (en) 2021-10-29

Family

ID=63938549

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810478972.XA Active CN108733564B (en) 2018-05-18 2018-05-18 Browser performance testing method, device and equipment

Country Status (1)

Country Link
CN (1) CN108733564B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110569155A (en) * 2019-08-27 2019-12-13 中国工商银行股份有限公司 data processing method and system, electronic device and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101609416A (en) * 2009-07-13 2009-12-23 清华大学 Improve the method for performance tuning speed of distributed system
CN103514082A (en) * 2012-06-29 2014-01-15 上海宽带技术及应用工程研究中心 Test method for reflecting WEB energy efficiency of computer equipment
US20140059391A1 (en) * 2012-08-27 2014-02-27 International Business Machines Corporation System and method for capturing logging information
CN104216820A (en) * 2014-08-22 2014-12-17 北京金山安全软件有限公司 Browser performance testing method and device and server
CN106470125A (en) * 2015-08-14 2017-03-01 威海兴达信息科技有限公司 A kind of website platform test system
CN107957939A (en) * 2016-10-14 2018-04-24 北京京东尚科信息技术有限公司 Webpage interactive interface test method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101609416A (en) * 2009-07-13 2009-12-23 清华大学 Improve the method for performance tuning speed of distributed system
CN103514082A (en) * 2012-06-29 2014-01-15 上海宽带技术及应用工程研究中心 Test method for reflecting WEB energy efficiency of computer equipment
US20140059391A1 (en) * 2012-08-27 2014-02-27 International Business Machines Corporation System and method for capturing logging information
CN104216820A (en) * 2014-08-22 2014-12-17 北京金山安全软件有限公司 Browser performance testing method and device and server
CN106470125A (en) * 2015-08-14 2017-03-01 威海兴达信息科技有限公司 A kind of website platform test system
CN107957939A (en) * 2016-10-14 2018-04-24 北京京东尚科信息技术有限公司 Webpage interactive interface test method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
NEELAKSH SHEEL 等: "Distribution methods of web pages and testing", 《2015 INTERNATIONAL CONFERENCE ON COMPUTING, COMMUNICATION AND SECURITY (ICCCS)》 *
简炜 等: "浏览器性能对比测试方法与评价模型研究", 《数字通信世界》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110569155A (en) * 2019-08-27 2019-12-13 中国工商银行股份有限公司 data processing method and system, electronic device and medium

Also Published As

Publication number Publication date
CN108733564B (en) 2021-10-29

Similar Documents

Publication Publication Date Title
CN109213685B (en) Service logic test method and device
CN105808227B (en) A kind of fine arts resource file detection method and device
CN108345535A (en) Mock test methods, device and equipment
TW201911173A (en) Index abnormality detecting method, device and electronic device
CN107679700A (en) Business flow processing method, apparatus and server
CN106528067B (en) A kind of method and device generating report
CN110262937A (en) A kind of recognition methods of Indexes Abnormality reason and device
CN110134668A (en) Data migration method, device and equipment applied to block chain
CN110503435B (en) Transaction early warning method, device and equipment based on blockchain
CN111026494B (en) Business process processing method, device and equipment
CN109241026A (en) The method, apparatus and system of data management
CN115828162B (en) Classification model training method and device, storage medium and electronic equipment
CN109597678A (en) Task processing method and device
CN109166021A (en) Bookkeeping methods, device and business finance integral system
CN110245978A (en) Policy evaluation, policy selection method and device in tactful group
CN110119381A (en) A kind of index updating method, device, equipment and medium
CN109656946A (en) A kind of multilist relation query method, device and equipment
CN110046052A (en) A kind of service calling method and device
CN109492401A (en) A kind of content vector risk checking method, device, equipment and medium
CN108733564A (en) A kind of browser performance test method, device and equipment
CN107908552A (en) A kind of test method based on link, device and equipment
CN116048977B (en) Test method and device based on data reduction
CN109959860A (en) A kind of method, apparatus of IC card detection
CN109815116A (en) A kind of method for testing software and equipment platform and computer readable storage medium
CN109582300A (en) Code analysis on altered project method, device and equipment based on path

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
TA01 Transfer of patent application right

Effective date of registration: 20201028

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20201028

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant