The content of the invention
It is a primary object of the present invention to provide a kind of submission method and device of network entity, to solve to network entity
The problem of execution efficiency is low when being submitted.
To achieve these goals, according to an aspect of the invention, there is provided a kind of submission method of network entity.
The submission method of the network according to the invention entity includes:Network entity to be committed is determined, wherein, network to be committed
Entity is the network entity that quantity changes over time renewal, and network entity to be committed includes polytype network entity, a variety of
The network entity of type is the different network entity of quantity;The duration for submitting polytype network entity is obtained respectively;According to
The duration of polytype network entity and the quantity of polytype network entity is submitted to calculate polytype network respectively
The unit of entity submits duration, wherein, unit a length of duration for submitting single network entity when submitting;Obtain polytype net
The unit of network entity submits the minimum value in duration;Determine that unit submits the quantity of network entity corresponding to the minimum value in duration
Quantity is submitted for target entity;Quantity is submitted to submit network entity to be committed according to target entity.
Further, polytype network entity that network entity to be committed includes is determined in accordance with the following methods:It is determined that
Default network entity, wherein, default network entity is the network entity that quantity is predetermined number threshold value;Predetermined number threshold value is entered
Row dichotomy computing, obtains multiple operation results;The network entity that quantity is multiple operation results is obtained respectively;It is determined that default net
Network entity and quantity are that the network entity of multiple operation results is polytype network entity that network entity to be committed includes.
Further, after submitting quantity to submit network entity to be committed according to target entity, this method also includes:Prison
Survey the variable parameter of the network environment residing for network entity to be committed;Judge whether the variable parameter of network environment exceedes default become
Change threshold value;If the variable parameter of network environment exceedes default change threshold, target is reacquired under current network conditions
Entity submits quantity;Quantity is submitted to continue to submit network entity to be committed according to the target entity of reacquisition.
Further, target entity is reacquired under current network conditions submits quantity to include:Obtain multiple history mesh
Mark entity and submit quantity;Calculate the average value that multiple history target entities submit quantity;Submitted according to multiple history target entities
The average value of quantity determines that multiple reference target entities submit quantity;Quantification is that multiple history target entities submit number respectively
The average value and quantity of amount are the multiple network entity that multiple reference target entities submit quantity;Determine that multiple network entity is corresponding
Target entity to submit quantity be that the target entity that reacquires submits quantity under current network conditions.
Further, after target entity submission quantity is reacquired under current network conditions, this method also includes:Obtain
Multiple history target entities are taken to submit quantity;Calculating multiple history target entities submits quantity and the target entity reacquired to carry
The average value of intersection number amount, quantity is submitted to continue to submit network entity to be committed to include according to the target entity of reacquisition:With more
Individual history target entity submits quantity and the target entity reacquired to submit the average value of quantity to submit quantity for target entity
Continue to submit network entity to be committed.
To achieve these goals, according to another aspect of the present invention, there is provided a kind of issuing means of network entity.
The issuing means of the network according to the invention entity includes:First determining unit, for determining that network to be committed is real
Body, wherein, network entity to be committed is the network entity that quantity changes over time renewal, and network entity to be committed includes multiple types
The network entity of type, polytype network entity are the different network entity of quantity;First acquisition unit, for obtaining respectively
Submit the duration of polytype network entity;First computing unit, for according to submit polytype network entity when
The unit that long and polytype network entity quantity calculates polytype network entity respectively submits duration, wherein, it is single
Position a length of duration for submitting single network entity when submitting;Second acquisition unit, for obtaining polytype network entity
Unit submits the minimum value in duration;Second determining unit, for determining that unit submits network corresponding to the minimum value in duration
The quantity of entity is that target entity submits quantity;First submits unit, to be committed for submitting quantity to submit according to target entity
Network entity.
Further, polytype network entity that network entity to be committed includes is determined according to lower module:First
Determining module, for determining default network entity, wherein, default network entity is that the network that quantity is predetermined number threshold value is real
Body;Computing module, for carrying out dichotomy computing to predetermined number threshold value, obtain multiple operation results;First acquisition module, use
In respectively obtain quantity be multiple operation results network entity;Second determining module, for determining default network entity sum
The network entity measured as multiple operation results is polytype network entity that network entity to be committed includes.
Further, the device also includes:Monitoring unit, for monitoring the network environment residing for network entity to be committed
Variable parameter;Judging unit, for judging whether the variable parameter of network environment exceedes default change threshold;3rd obtains list
Member, for when the variable parameter of network environment exceedes default change threshold, it is real that target to be reacquired under current network conditions
Body submits quantity;Second submits unit, for submitting quantity to continue to submit network to be committed according to the target entity of reacquisition
Entity.
Further, the 3rd acquiring unit includes:Second acquisition module, number is submitted for obtaining multiple history target entities
Amount;Computing module, the average value of quantity is submitted for calculating multiple history target entities;3rd determining module, for according to more
Individual history target entity submits the average value of quantity to determine that multiple reference target entities submit quantity;4th determining module, is used for
Quantification is the average value of multiple history target entities submission quantity respectively and quantity is that multiple reference target entities submit number
The multiple network entity of amount;5th determining module, for determining that target entity corresponding to multiple network entity submits quantity to work as
The target entity reacquired under preceding network environment submits quantity.
Further, the device also includes:4th acquiring unit, quantity is submitted for obtaining multiple history target entities;
Second computing unit, quantity and the target entity reacquired is submitted to submit the flat of quantity for calculating multiple history target entities
Average, second submits unit, is additionally operable to submit quantity and the target entity reacquired to submit number with multiple history target entities
The average value of amount is that target entity submits quantity to continue to submit network entity to be committed.
By the present invention, using the method comprised the following steps:Network entity to be committed is determined, wherein, network to be committed
Entity is the network entity that quantity changes over time renewal, and network entity to be committed includes polytype network entity, a variety of
The network entity of type is the different network entity of quantity;The duration for submitting polytype network entity is obtained respectively;According to
The duration of polytype network entity and the quantity of polytype network entity is submitted to calculate polytype network respectively
The unit of entity submits duration, wherein, unit a length of duration for submitting single network entity when submitting;Obtain polytype net
The unit of network entity submits the minimum value in duration;Determine that unit submits the quantity of network entity corresponding to the minimum value in duration
Quantity is submitted for target entity;Submit quantity to submit network entity to be committed according to target entity, solve and network entity is entered
The problem of execution efficiency is low when row is submitted, and then by determining that unit submits the number of network entity corresponding to the minimum value in duration
Measure and submit quantity for target entity, and submit quantity to submit network entity to be committed according to target entity, reached raising network
Entity submits the effect of efficiency.
Embodiment
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase
Mutually combination.Describe the present invention in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
In order that those skilled in the art more fully understand application scheme, below in conjunction with the embodiment of the present application
Accompanying drawing, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described embodiment is only
The embodiment of the application part, rather than whole embodiments.Based on the embodiment in the application, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model of the application protection
Enclose.
It should be noted that term " first " in the description and claims of this application and above-mentioned accompanying drawing, "
Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use
Data can exchange in the appropriate case, so as to embodiments herein described herein.In addition, term " comprising " and " tool
Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing series of steps or unit
Process, method, system, product or equipment are not necessarily limited to those steps clearly listed or unit, but may include without clear
It is listing to Chu or for the intrinsic other steps of these processes, method, product or equipment or unit.
According to an embodiment of the invention, there is provided a kind of submission method of network entity.
Fig. 1 is the flow chart of the embodiment of the submission method of the network according to the invention entity.As shown in figure 1, this method
Including step S102 to step S112:
Step S102, network entity to be committed is determined, wherein, network entity to be committed is that quantity changes over time renewal
Network entity, network entity to be committed include polytype network entity, and polytype network entity is that quantity is different
Network entity.
Network entity to be committed is the network entity for changing over time renewal, for example, being submitted to making for search engine side
The entity of modification.Due to the continuous renewal of network entity to be committed so that network entity to be committed can be according to different
Submission is conducted batch-wise in quantity.For example, by made modification entity be submitted to search engine side, can with every time submit 5000,
The mode of the entity of 2500 or 1000 grade varying numbers is carried out.Found by API and search engine interactive testing, defined
(the physical quantities upper limit refers to submits physical quantities to must not exceed a value, example every time as defined in API providers in the physical quantities upper limit
As 5000), submit the entity of varying number every time, the execution time for submitting unit entity be not with the physical quantities submitted into
It is positively related, but can have an efficiency peak.This is due to the influence of the factors such as network environment (such as network speed) change,
The entity submission efficiency for causing varying number is often different.So, it is necessary to it is determined that under particular circumstances every time with more
Big quantity submits the network entity to be committed to submit efficiency highest.
It is alternatively possible under the conditions of specific network, site visitor's amount etc., polytype network entity is carried
Test is handed over, the entity when it is much to submit quantity every time is detected and submits efficiency highest.To be submitted to making for search engine side
Illustrated exemplified by the entity of modification.Assuming that submitting the quantity of modification entity to must not exceed 5000 as defined in API suppliers, then may be used
To carry out submission test respectively using quantity as 5000,4500,4000 ... 1000,500 respectively, obtain and submit efficiency highest net
Quantitative value corresponding to network entity.Or the modes such as dichotomy computing can also be used to be set to the physical quantities value tested.Need
It is noted that the optional test mode of different network entities is different, can be according to the actual demand sets itself of user.It is right
The network entity of varying number is answered to may be considered different types of network entity.
Preferably, polytype network entity that network entity to be committed includes can be determined in accordance with the following methods:Really
Surely network entity is preset, wherein, default network entity is the network entity that quantity is predetermined number threshold value;To predetermined number threshold value
Dichotomy computing is carried out, obtains multiple operation results;The network entity that quantity is multiple operation results is obtained respectively;It is it is determined that default
Network entity and quantity are that the network entity of multiple operation results is that polytype network that network entity to be committed includes is real
Body.
To be illustrated exemplified by the entity for having made modification for being submitted to search engine side.Assuming that as defined in API suppliers
Submit the quantity of modification entity to must not exceed 5000, then can be respectively 5000,1250,625 ... to quantity according to dichotomy
Network entity carry out submission test.Testing efficiency can be improved using this method.
Step S104, the duration for submitting polytype network entity is obtained respectively.
To be illustrated exemplified by the entity for having made modification for being submitted to search engine side.For example it is 5000 to submit quantity
Network entity when a length of 10 minutes, submit quantity be 2500 network entity when a length of 2 minutes.It should be noted that
Under different network environments, the submission duration of the network entity of identical quantity is often what is had differences.
Step S106, according to the quantity point for the duration and polytype network entity for submitting polytype network entity
The unit for not calculating polytype network entity submits duration, wherein, unit a length of submission single network entity when submitting
Duration.
It is to submit the ratio between the duration of network entity and the quantity of network entity that the unit of network entity, which submits duration,.
Unit submits duration shorter, shows that the submission efficiency of the network entity of this type is higher;Unit submits duration longer, shows this
The submission efficiency of the network entity of type is lower.
Fig. 2 is the schematic diagram that duration and the corresponding relation of entity submission quantity are submitted according to the unit of the present invention.Such as Fig. 2 institutes
Show, abscissa is the physical quantities submitted every time, and ordinate is execution time (i.e. unit submits duration).It can be seen that varying number
Network entity corresponding to unit submit duration be different.The physical quantities submitted every time be 6000 to 7000 between when, net
The submission efficiency of network entity is minimum;When the physical quantities submitted every time are 1000 or 12000, the submission efficiency of network entity compared with
It is high.
Step S108, obtain the minimum value in the unit submission duration of polytype network entity.
Step S110, determine that unit submits the quantity of network entity corresponding to the minimum value in duration to be submitted for target entity
Quantity.
Step S112, quantity is submitted to submit network entity to be committed according to target entity.
For example, the submission duration of the network entity of varying number is tested by way of dichotomy computing:
(1) first time amount detection is the submission duration of 5000 network entity, and it is 15 minutes (900 seconds) to perform the time,
Average each entity 0.18 second;
The submission duration for the network entity that (2) second of amount detection are 2500, it is 10 minutes (600 seconds) to perform the time,
Average each entity 0.24 second;
(3) third time amount detection is the submission duration of 1250 network entity, and it is 2 minutes (120 seconds) to perform the time, is put down
Each entity 0.096 second;
The submission duration for the network entity that (4) the 4th amount detections are 625, it is 2 minutes (120 seconds) to perform the time, is put down
Each entity 0.229 second;
……
Repeatedly attempted more than, judge that the scheme of a length of 0.096 second when averagely each entity is submitted (submits the quantity to be
1250) to submit efficiency highest scheme, therefore to submit quantity every time as 1250 submissions for carrying out network entity.This method can
So that the quantity for the network entity that every batch of submission is dynamically determined in the range of transformation is being submitted in the operation of user as defined in API,
So that efficiency is submitted to reach highest substantially.
After submitting quantity to submit network entity to be committed according to target entity, due to residing for network entity to be committed
Network environment can change, and the variation of network environment can cause the change for submitting efficiency, therefore can also carry out as follows
Step:Monitor the variable parameter of the network environment residing for network entity to be committed;Judge whether the variable parameter of network environment surpasses
Cross default change threshold;If the variable parameter of network environment exceedes default change threshold, under current network conditions again
Obtain target entity and submit quantity;Quantity is submitted to continue to submit network entity to be committed according to the target entity of reacquisition.
Default change threshold is describes a parameter of change of network environment, for example, network speed.When the change of network environment parameter
Change and exceed default change threshold, such as, network speed is less than 60Mbps more than 120Mbps or network speed, then needs to reacquire target
Entity submits quantity, to ensure to carry out network entity submission in a manner of efficiency highest.Here, the setting for presetting change threshold can
With but be not limited to be set according to the test experience of network test personnel.
Target entity is reacquired under current network conditions submits quantity to carry out in accordance with the following steps:Obtain multiple
History target entity submits quantity;Calculate the average value that multiple history target entities submit quantity;It is real according to multiple history targets
Body submits the average value of quantity to determine that multiple reference target entities submit quantity;Quantification is multiple history target entities respectively
Average value and the quantity of quantity is submitted to submit the multiple network entity of quantity for multiple reference target entities;Determine multiple network reality
It is that the target entity reacquired under current network conditions submits quantity that target entity corresponding to body, which submits quantity,.
After target entity submission quantity is reacquired under current network conditions, following steps can also be carried out:Obtain
Multiple history target entities submit quantity;Calculating multiple history target entities submits quantity and the target entity reacquired to submit
The average value of quantity, quantity is submitted to continue to submit network entity to be committed to include according to the target entity of reacquisition:With multiple
History target entity submit quantity and reacquire target entity submit quantity average value for target entity submit quantity after
It is continuous to submit network entity to be committed.
Specifically, after system has carried out above-mentioned test every time, system can record preferred plan, during by one section
Between record, system can average the target entity submitted as the every batch of entity according to account of the history and current test case
Submit quantity.Can so used time estimation, error very little be carried out to the operation that user submits.
In addition, this method will not be tested as previously described every time, system can be with the flat of the optimum value of historical record
Average is that starting point is tested.Such as:First the average optimum value of the previous moon is that target entity submission quantity is 1250, then is
System selection 2500,1250 and 625 3 kind of situation can re-start test for current network conditions automatically.If finally obtain
Target entity submits quantity similar with record before, then it is 1250 progress entities that can directly choose target entity and submit quantity
Submit, to save the time of test consumption every time.
The embodiment is due to using the method comprised the following steps:Network entity to be committed is determined, wherein, network to be committed
Entity is the network entity that quantity changes over time renewal, and network entity to be committed includes polytype network entity, a variety of
The network entity of type is the different network entity of quantity;The duration for submitting polytype network entity is obtained respectively;According to
The duration of polytype network entity and the quantity of polytype network entity is submitted to calculate polytype network respectively
The unit of entity submits duration, wherein, unit a length of duration for submitting single network entity when submitting;Obtain polytype net
The unit of network entity submits the minimum value in duration;Determine that unit submits the quantity of network entity corresponding to the minimum value in duration
Quantity is submitted for target entity;Submit quantity to submit network entity to be committed according to target entity, solve and network entity is entered
The problem of execution efficiency is low when row is submitted, and then by determining that unit submits the number of network entity corresponding to the minimum value in duration
Measure and submit quantity for target entity, and submit quantity to submit network entity to be committed according to target entity, reached raising network
Entity submits the effect of efficiency.
According to an embodiment of the invention, there is provided a kind of issuing means of network entity.It should be noted that the present invention is real
The issuing means for applying the network entity of example can be used for the submission method for performing the network entity that the embodiment of the present invention is provided, this
The submission method of the network entity of inventive embodiments can also be filled by the submission for the network entity that the embodiment of the present invention is provided
Put to perform.
Fig. 3 is the schematic diagram of the embodiment of the issuing means of the network according to the invention entity.As shown in figure 3, the device
Including:First determining unit 10, first acquisition unit 20, computing unit 30, second acquisition unit 40, the and of the second determining unit 50
First submits unit 60.
First determining unit 10, for determining network entity to be committed, wherein, network entity to be committed is quantity with the time
Change the network entity of renewal, network entity to be committed includes polytype network entity, and polytype network entity is
The different network entity of quantity.
Polytype network entity that network entity to be committed includes can be determined according to lower module:First determines mould
Block, for determining default network entity, wherein, default network entity is the network entity that quantity is predetermined number threshold value;Computing
Module, for carrying out dichotomy computing to predetermined number threshold value, obtain multiple operation results;Acquisition module, for obtaining respectively
Quantity is the network entity of multiple operation results;Second determining module, for determining that default network entity and quantity are multiple fortune
The network entity for calculating result is polytype network entity that network entity to be committed includes.
First acquisition unit 20, the duration of polytype network entity is submitted for obtaining respectively.
Computing unit 30, for according to the duration and polytype network entity for submitting polytype network entity
The unit that quantity calculates polytype network entity respectively submits duration, wherein, a length of submission single network when unit is submitted
The duration of entity.
Second acquisition unit 40, the unit for obtaining polytype network entity submit the minimum value in duration.
Second determining unit 50, it is mesh for determining that unit submits the quantity of network entity corresponding to the minimum value in duration
Mark entity and submit quantity.
First submits unit 60, for submitting quantity to submit network entity to be committed according to target entity.
The device can also include:Monitoring unit, for monitoring the change of the network environment residing for network entity to be committed
Parameter;Judging unit, for judging whether the variable parameter of network environment exceedes default change threshold;3rd acquiring unit, use
In when the variable parameter of network environment exceedes default change threshold, target entity submission is reacquired under current network conditions
Quantity;Second submits unit, for submitting quantity to continue to submit network entity to be committed according to the target entity of reacquisition.
Wherein, the 3rd acquiring unit can also include:Second acquisition module, submitted for obtaining multiple history target entities
Quantity;Computing module, the average value of quantity is submitted for calculating multiple history target entities;3rd determining module, for basis
Multiple history target entities submit the average value of quantity to determine that multiple reference target entities submit quantity;4th determining module, use
It is that to submit the average value of quantity and quantity be that multiple reference target entities are submitted for multiple history target entities in quantification respectively
The multiple network entity of quantity;5th determining module, for determining that target entity submission quantity is corresponding to multiple network entity
The target entity reacquired under current network conditions submits quantity.
Alternatively, the device can also include:4th acquiring unit, number is submitted for obtaining multiple history target entities
Amount;Second computing unit, quantity and the target entity reacquired is submitted to submit quantity for calculating multiple history target entities
Average value, second submit unit, be additionally operable to multiple history target entities submit quantity and reacquire target entity carry
The average value of intersection number amount is that target entity submits quantity to continue to submit network entity to be committed.
The issuing means for the network entity that the embodiment provides includes:First determining unit 10, first acquisition unit 20, meter
Calculate unit 30, second acquisition unit 40, the second determining unit 50 and first and submit unit 60.The device passes through the second determining unit
50 determine that unit submits the quantity of network entity corresponding to the minimum value in duration to submit quantity for target entity, and utilize first
Submit unit 60 to submit quantity to submit network entity to be committed according to target entity, solve and held when being submitted to network entity
The problem of line efficiency is low, and then improve the effect that network entity submits efficiency.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general
Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed
Network on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to they are stored
Performed in the storage device by computing device, either they are fabricated to respectively each integrated circuit modules or by they
In multiple modules or step be fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific
Hardware and software combines.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.