CN105868378B - Obtain the method and device of mobile site loading velocity - Google Patents

Obtain the method and device of mobile site loading velocity Download PDF

Info

Publication number
CN105868378B
CN105868378B CN201610201409.9A CN201610201409A CN105868378B CN 105868378 B CN105868378 B CN 105868378B CN 201610201409 A CN201610201409 A CN 201610201409A CN 105868378 B CN105868378 B CN 105868378B
Authority
CN
China
Prior art keywords
computer room
loading velocity
page speed
mobile stations
geographic location
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.)
Active
Application number
CN201610201409.9A
Other languages
Chinese (zh)
Other versions
CN105868378A (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 Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610201409.9A priority Critical patent/CN105868378B/en
Publication of CN105868378A publication Critical patent/CN105868378A/en
Application granted granted Critical
Publication of CN105868378B publication Critical patent/CN105868378B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Navigation (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure is directed to a kind of method and devices for obtaining mobile site loading velocity, wherein the method for obtaining mobile site loading velocity includes: to obtain the computer room information for being located at diverse geographic location;Weight of the computer room of diverse geographic location relative to current search place is obtained according to above-mentioned computer room information;The page speed that the spidering process in the computer room of diverse geographic location crawls present mobile stations point is obtained respectively;The page speed of present mobile stations point is crawled according to the spidering process in the computer room of above-mentioned weight and diverse geographic location, obtains loading velocity of the present mobile stations point relative to current search place.The embodiment of the present disclosure, influence of the physical location change of mobile device to mobile site loading velocity is fully considered, and the page speed of present mobile stations point is crawled repeatedly by more places to obtain the loading velocity of more closing to reality situation, so that the mobile site loading velocity obtained is more accurate, objective.

Description

Obtain the method and device of mobile site loading velocity
Technical field
This disclosure relates to field of communication technology more particularly to a kind of method and device for obtaining mobile site loading velocity.
Background technique
With becoming increasingly popular for mobile terminal, more and more websites need to provide the website for being suitble to mobile device access, Search engine needs to include these websites and provides reasonable ranking weight.
Currently, search engine using web crawlers crawls the page of mobile site to assess the access speed of mobile terminal, Web crawlers loads the page by the characteristic of simulating mobile terminal, when load is accomplished to some point, for example has loaded At page total amount 80% when, record the time of load, and using the load time of record as the load time of website.It can also be with The primary structure file for having loaded website and 50% picture after, record the load time, and by the load time of record make For the load time of website.
But it is unable to get accurate mobile site loading velocity through the above way.
Summary of the invention
To overcome the problems in correlation technique, the disclosure provide it is a kind of obtain mobile site loading velocity method and Device.
According to the first aspect of the embodiments of the present disclosure, a kind of method obtaining mobile site loading velocity is provided, comprising:
Obtain the computer room information for being located at diverse geographic location;
Weight of the computer room of diverse geographic location relative to current search place is obtained according to the computer room information;
The page speed that the spidering process in the computer room of the diverse geographic location crawls present mobile stations point is obtained respectively;
The page of present mobile stations point is crawled according to the spidering process in the computer room of the weight and the diverse geographic location Face velocity obtains loading velocity of the present mobile stations point relative to the current search place.
In one embodiment, the spidering process in the computer room for obtaining the diverse geographic location respectively is crawled when Forward The page speed of dynamic website, comprising:
For the computer room in each geographical location, all spidering process crawl described current in acquisition current geographic position computer room The page speed of mobile site;
Calculate the page speed that all spidering process in the current geographic position computer room crawl the present mobile stations point Average value, the page of present mobile stations point is crawled using the average value as the spidering process in the current geographic position computer room Face velocity.
In one embodiment, the method also includes:
Spidering process in the computer room for obtaining the diverse geographic location crawls the page speed of present mobile stations point During degree, suspension event is triggered every preset time by the spidering process, the suspension event is described for interrupting Network where current search place;
Reconnect the network.
In one embodiment, the preset time is Fixed Time Interval or different time intervals.
In one embodiment, with the smaller computer room in the distance between the current search place relative to the current search The weight in place is bigger.
According to the second aspect of an embodiment of the present disclosure, a kind of device obtaining mobile site loading velocity is provided, comprising:
Computer room information obtains module, is configured as obtaining the computer room information for being located at diverse geographic location;
Weight Acquisition module is configured as obtaining the computer room information that module obtains according to the computer room information to obtain difference Weight of the computer room in geographical location relative to current search place;
Page speed obtains module, is configured to obtain the spidering process in the computer room of the diverse geographic location and climbs Take the page speed of present mobile stations point;
Loading velocity obtains module, is configured as the weight obtained according to the Weight Acquisition module and the page Speed obtains the page speed that module obtains, and obtains the present mobile stations point adding relative to the current search place Carry speed.
In one embodiment, the page speed acquisition module includes:
Acquisition submodule is configured as the computer room for each geographical location, obtains in current geographic position computer room and owns Spidering process crawls the page speed of the present mobile stations point;
Computational submodule is configured as calculating the average value for the page speed that the acquisition submodule obtains, by institute State the page speed that average value crawls present mobile stations point as the spidering process in the current geographic position computer room.
In one embodiment, described device further include:
Suspension module is triggered, is configured as obtaining the computer room that module obtains the diverse geographic location in the page speed In spidering process crawl the page speed of present mobile stations point during, touched by the spidering process every preset time Suspension event is sent out, the suspension event is used to interrupt the network where the current search place;
Module is reconnected, is configured as reconnecting the network.
In one embodiment, the preset time is Fixed Time Interval or different time intervals.
In one embodiment, with the smaller computer room in the distance between the current search place relative to the current search The weight in place is bigger.
According to the third aspect of an embodiment of the present disclosure, a kind of device obtaining mobile site loading velocity is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, processor is configured as:
Obtain the computer room information for being located at diverse geographic location;
Weight of the computer room of diverse geographic location relative to current search place is obtained according to the computer room information;
The page speed that the spidering process in the computer room of the diverse geographic location crawls present mobile stations point is obtained respectively;
The page of present mobile stations point is crawled according to the spidering process in the computer room of the weight and the diverse geographic location Face velocity obtains loading velocity of the present mobile stations point relative to the current search place.
The technical scheme provided by this disclosed embodiment can include the following benefits: by according to diverse geographic location Spidering process in the weight of computer room and the computer room of diverse geographic location crawls the page speed of present mobile stations point, obtains current Loading velocity of the mobile site relative to current search place has fully considered the physical bit of mobile device during realization Set and change influence to mobile site loading velocity, and by more places repeatedly crawl the page speed of present mobile stations point come The loading velocity of more closing to reality situation is obtained, so that the mobile site loading velocity obtained is more accurate, objective.
The flat of the page speed of present mobile stations point is crawled by all spidering process in calculating current geographic position computer room Mean value crawls the page speed of present mobile stations point using the average value as the spidering process in current geographic position computer room, makes The page speed that the spidering process in current geographic position computer room that must be obtained crawls present mobile stations point is more accurate, to be It obtains more accurate mobile site loading velocity and provides condition.
Suspension event is triggered every preset time by spidering process and reconnects the network, has fully considered mobile shape Influence of the unstability that device network connects in state to mobile site loading velocity, so that the current geographic position computer room obtained In spidering process crawl present mobile stations point page speed it is more accurate, to add to obtain more accurate mobile site It carries speed and provides condition.
By setting preset time as Fixed Time Interval or different time intervals, can more flexible simulation it is all kinds of Situation provides condition more objectively to assess the loading velocity of mobile site.
It can be more accurately to obtain mobile site by the way that weight is arranged according to the distance between computer room and search in Loading velocity provide condition.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is a kind of flow chart of method for obtaining mobile site loading velocity shown according to an exemplary embodiment.
Fig. 2 is that the spidering process in a kind of computer room for obtaining diverse geographic location shown according to an exemplary embodiment is climbed Take the flow chart of the page speed of present mobile stations point.
Fig. 3 is a kind of block diagram of device for obtaining mobile site loading velocity shown according to an exemplary embodiment.
Fig. 4 is the block diagram of another device for obtaining mobile site loading velocity shown according to an exemplary embodiment.
Fig. 5 is the block diagram of another device for obtaining mobile site loading velocity shown according to an exemplary embodiment.
Fig. 6 is a kind of frame suitable for obtaining the device of mobile site loading velocity shown according to an exemplary embodiment Figure.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended The example of device and method being described in detail in claims, some aspects of the invention are consistent.
Fig. 1 is a kind of flow chart of method for obtaining mobile site loading velocity shown according to an exemplary embodiment, As shown in Figure 1, the method for the acquisition mobile site loading velocity can be applied on search engine, include the following steps S101- S104:
In step s101, the computer room information for being located at diverse geographic location is obtained.
In this embodiment, computer room can be located in a different geographical location.
In step s 102, power of the computer room of diverse geographic location relative to current search place is obtained according to computer room information Weight.
In this embodiment, according to the geographical location information of the geographical location information of all computer rooms and current search place, Distance of all computer rooms relative to current search place is obtained, is obtained according to different computer rooms relative to the distance in current search place Take the computer room of diverse geographic location relative to the weight in current search place.The smaller machine in the distance between current search place Room is bigger relative to the weight in current search place.Assuming that the computer room of diverse geographic location includes the first computer room and the second computer room, If the distance between the first computer room and current search place are less than the distance between the second computer room and current search place, first Computer room is greater than weight of second computer room relative to current search place relative to the weight in current search place.
In step s 103, the spidering process obtained respectively in the computer room of diverse geographic location crawls present mobile stations point Page speed.
In this embodiment, each computer room can run one or more spidering process, therefore, for each computer room Speech can crawl the speed of the page according to all spidering process in the computer room to obtain the page of present mobile stations point load speed Degree.
In step S104, current movement is crawled according to the spidering process in the computer room of above-mentioned weight and diverse geographic location The page speed of website obtains loading velocity of the present mobile stations point relative to current search place.
In this embodiment it is possible to crawl current movement according to the spidering process in the computer room of weight and diverse geographic location The page speed of website, to calculate weighted average of all computer rooms relative to the page speed in current search place, as working as Loading velocity of the preceding mobile site relative to current search place.
It is assumed that N number of computer room is correspondingly arranged in N number of different geographical location, then the page of certain mobile site loads speed Degree is the weighted average for the page speed that all crawlers obtain in N number of different location computer room.It is closer from current search place Computer room, weight is higher, and specific value can be adjusted according to the actual situation.
For example, user initiates to search in place A, search engine running background has the computer room of 3 diverse geographic locations, it is assumed that This 3 computer rooms are followed successively by 1,2,3 relative to the weight of place A, and for the mobile site, the crawler of these three computer rooms crawls the shifting The page speed of dynamic website is respectively 1s, 1.5s, 2s, then relative to the place A, the page loading velocity of the mobile site is (1*1+1.5*2+2*3)/(1+2+3)=1.67s.
In another example user initiates to search in place B, it is assumed that this 3 computer rooms are followed successively by 3,2,1 relative to the weight of place B, For the mobile site, the page speed that the crawler of these three computer rooms crawls the mobile site is respectively 1s, 1.5s, 2s, then Relative to place B, the page loading velocity of the mobile site is (1*3+1.5*2+2*1)/(3+2+1)=1.33s.
The embodiment of the method for above-mentioned acquisition mobile site loading velocity, by according to the weight of diverse geographic location computer room and Spidering process in the computer room of diverse geographic location crawls the page speed of present mobile stations point, and it is opposite to obtain present mobile stations point Loading velocity in current search place has fully considered the physical location change of mobile device to movement during realization The influence of website loading velocity, and by more places repeatedly crawl the page speed of present mobile stations point obtain more close to The loading velocity of actual conditions, so that the mobile site loading velocity obtained is more accurate, objective.
Fig. 2 is that the spidering process in a kind of computer room for obtaining diverse geographic location shown according to an exemplary embodiment is climbed The flow chart for taking the page speed of present mobile stations point, as shown in Fig. 2, including the following steps S201-S202:
In step s 201, for the computer room in each geographical location, obtain in current geographic position computer room all crawlers into Journey crawls the page speed of present mobile stations point.
In this embodiment, each computer room can run one or more spidering process, therefore, for each computer room Speech can crawl the speed of the page according to all spidering process in the computer room to obtain the page of present mobile stations point load speed Degree.
And the spidering process in current computer room can also pass through during crawl the page speed of present mobile stations point Spidering process triggers suspension event and reconnect network every preset time simulates the visit in moving condition to mobile site It asks, wherein suspension event is used to interrupt the network where current search place.
In specific environment, preset time can be Fixed Time Interval, or different time intervals, i.e., in advance If the time can be adjusted according to actual needs, to adapt to specific business demand.
For example, for single spidering process, it, can be every 0.5 second when crawling the page speed of present mobile stations point It triggers a suspension event and reconnects, to simulate access of the terminal device in moving condition to mobile site.
In step S202, the page that all spidering process in current geographic position computer room crawl present mobile stations point is calculated The average value of speed crawls the page of present mobile stations point using the average value as the spidering process in current geographic position computer room Speed.
In this embodiment, for the computer room of same geographic location, all spidering process in the computer room is calculated and are crawled currently The average value of the page speed of mobile site, and present mobile stations point is crawled using the average value as the spidering process in the computer room Page speed.
For example, M spidering process has been run, then the spidering process of A computer room crawls currently in the computer room of place A The page speed of mobile site is the arithmetic mean of instantaneous value for the page speed that this M spidering process crawls present mobile stations point.It is assumed that 3 spidering process in A computer room are respectively 1s, 1.5s, 2s to the access speed obtained after Mr. Yu's mobile site page access, The page speed that spidering process so in A computer room crawls present mobile stations point is (1+1.5+2)/3=1.5s.
Above-described embodiment crawls the page of present mobile stations point by calculating all spidering process in current geographic position computer room The average value of face velocity crawls the page of present mobile stations point using the average value as the spidering process in current geographic position computer room Face velocity has fully considered influence of the unstability of device network connection in moving condition to mobile site loading velocity, has made The page speed that the spidering process in current geographic position computer room that must be obtained crawls present mobile stations point is more accurate, to be It obtains more accurate mobile site loading velocity and provides condition.
Fig. 3 is a kind of block diagram of device for obtaining mobile site loading velocity shown according to an exemplary embodiment, such as Shown in Fig. 3, the device for obtaining mobile site loading velocity includes: that computer room information obtains module 31, Weight Acquisition module 32, page Face velocity obtains module 33 and loading velocity obtains module 34.
Computer room information obtains module 31 and is configured as obtaining the computer room information for being located at diverse geographic location.
In this embodiment, computer room can be located in a different geographical location.
Weight Acquisition module 32 is configured as obtaining the computer room information that module 31 obtains according to computer room information to obtain difference Weight of the computer room in geographical location relative to current search place.
In this embodiment, according to the geographical location information of the geographical location information of all computer rooms and current search place, Distance of all computer rooms relative to current search place is obtained, is obtained according to different computer rooms relative to the distance in current search place Take the computer room of diverse geographic location relative to the weight in current search place.The smaller machine in the distance between current search place Room is bigger relative to the weight in current search place.Assuming that the computer room of diverse geographic location includes the first computer room and the second computer room, If the distance between the first computer room and current search place are less than the distance between the second computer room and current search place, first Computer room is greater than weight of second computer room relative to current search place relative to the weight in current search place.
Page speed obtains the spidering process that module 33 is configured to obtain in the computer room of diverse geographic location and crawls The page speed of present mobile stations point.
In this embodiment, each computer room can run one or more spidering process, therefore, for each computer room Speech can crawl the speed of the page according to all spidering process in the computer room to obtain the page of present mobile stations point load speed Degree.
Loading velocity obtains the weight and page speed that module 34 is configured as obtaining according to Weight Acquisition module 32 and obtains The page speed that module 33 obtains obtains loading velocity of the present mobile stations point relative to current search place.
In this embodiment it is possible to crawl current movement according to the spidering process in the computer room of weight and diverse geographic location The page speed of website, to calculate weighted average of all computer rooms relative to the page speed in current search place, as working as Loading velocity of the preceding mobile site relative to current search place.
It is assumed that N number of computer room is correspondingly arranged in N number of different geographical location, then the page of certain mobile site loads speed Degree is the weighted average for the page speed that all spidering process obtain in N number of different location computer room.It is got over from current search place Close computer room, weight is higher, and specific value can be adjusted according to the actual situation.
For example, user initiates to search in place A, search engine running background has the computer room of 3 diverse geographic locations, it is assumed that This 3 computer rooms are followed successively by 1,2,3 relative to the weight of place A, and for the mobile site, the spidering process of these three computer rooms is crawled The page speed of the mobile site is respectively 1s, 1.5s, 2s, then the page of the mobile site loads speed relative to the place A Degree is (1*1+1.5*2+ 2*3)/(1+2+3)=1.67s.
In another example user initiates to search in place B, it is assumed that this 3 computer rooms are followed successively by 3,2,1 relative to the weight of place B, For the mobile site, the page speed that the spidering process of these three computer rooms crawls the mobile site is respectively 1s, 1.5s, 2s, So relative to place B, the page loading velocity of the mobile site is (1*3+1.5*2+2*1)/(3+2+1)=1.33s.
For device as shown in Figure 3 for realizing above-mentioned method flow as shown in Figure 1, the related content being related to describes phase Together, it does not repeat herein.
The Installation practice of above-mentioned acquisition mobile site loading velocity, by according to the weight of diverse geographic location computer room and Spidering process in the computer room of diverse geographic location crawls the page speed of present mobile stations point, and it is opposite to obtain present mobile stations point Loading velocity in current search place has fully considered the physical location change of mobile device to movement during realization The influence of website loading velocity, and by more places repeatedly crawl the page speed of present mobile stations point obtain more close to The loading velocity of actual conditions, so that the mobile site loading velocity obtained is more accurate, objective.
Fig. 4 is the block diagram of another device for obtaining mobile site loading velocity shown according to an exemplary embodiment, As shown in figure 4, it may include acquisition submodule 331 that page speed, which obtains module 33, on the basis of above-mentioned embodiment illustrated in fig. 3 With computational submodule 332.
Acquisition submodule 331 is configured as the computer room for each geographical location, obtains institute in current geographic position computer room There is spidering process to crawl the page speed of present mobile stations point.
In this embodiment, each computer room can run one or more spidering process, therefore, for each computer room Speech can crawl the speed of the page according to all spidering process in the computer room to obtain the page of present mobile stations point load speed Degree.
Computational submodule 332 is configured as calculating the average value for the page speed that acquisition submodule 331 obtains, by average value The page speed of present mobile stations point is crawled as the spidering process in current geographic position computer room.
In this embodiment, for the computer room of same geographic location, all spidering process in the computer room is calculated and are crawled currently The average value of the page speed of mobile site, and present mobile stations point is crawled using the average value as the spidering process in the computer room Page speed.
For example, M spidering process has been run, then the spidering process of A computer room crawls currently in the computer room of place A The page speed of mobile site is the arithmetic mean of instantaneous value for the page speed that this M spidering process crawls present mobile stations point.It is assumed that 3 spidering process in A computer room are respectively 1s, 1.5s, 2s to the access speed obtained after Mr. Yu's mobile site page access, The page speed that spidering process so in A computer room crawls present mobile stations point is (1+1.5+2)/3=1.5s.
For device as shown in Figure 4 for realizing above-mentioned method flow as shown in Figure 2, the related content being related to describes phase Together, it does not repeat herein.
The Installation practice of above-mentioned acquisition mobile site loading velocity, by calculating all in current geographic position computer room climb Worm process crawls the average value of the page speed of present mobile stations point, using the average value as climbing in current geographic position computer room Worm process crawls the page speed of present mobile stations point, so that the spidering process in the current geographic position computer room obtained crawls and works as The page speed of preceding mobile site is more accurate, to provide condition to obtain more accurate mobile site loading velocity.
Fig. 5 is the block diagram of another device for obtaining mobile site loading velocity shown according to an exemplary embodiment, As shown in figure 5, above-mentioned apparatus may also include that triggering suspension module 51 and connect again on the basis of above-mentioned embodiment illustrated in fig. 4 Connection module 52.
Triggering suspension module 51 is configured as in the computer room that page speed obtains that module 33 obtains diverse geographic location During spidering process crawls the page speed of present mobile stations point, suspension thing is triggered every preset time by spidering process Part, suspension event are used to interrupt the network where current search place.
Module 52 is reconnected to be configured as reconnecting network.
In this embodiment, the spidering process in current computer room crawls the process of the page speed of present mobile stations point In, suspension event can also be triggered every preset time by spidering process and to reconnect network right in moving condition to simulate The access of mobile site, wherein suspension event is used to interrupt the network where current search place.
In specific environment, preset time can be Fixed Time Interval, or different time intervals, i.e., in advance If the time can be adjusted according to actual needs, to adapt to specific business demand.
For example, for single spidering process, it, can be every 0.5 second when crawling the page speed of present mobile stations point It triggers a suspension event and reconnects, to simulate access of the terminal device in moving condition to mobile site.
For device as shown in Figure 5 for realizing above-mentioned method flow as shown in Figure 2, the related content being related to describes phase Together, it does not repeat herein.
The Installation practice of above-mentioned acquisition mobile site loading velocity triggers suspension every preset time by spidering process Event simultaneously reconnects the network, has fully considered that the unstability that device network connects in moving condition loads mobile site The influence of speed, so that the spidering process in the current geographic position computer room obtained crawls the page speed of present mobile stations point more It is accurate to add, to provide condition to obtain more accurate mobile site loading velocity.
About the device in above-described embodiment, the concrete mode that wherein modules, submodule execute operation is having It closes and is described in detail in the embodiment of this method, no detailed explanation will be given here.
Fig. 6 is shown according to an exemplary embodiment a kind of for obtaining the device 600 of mobile site loading velocity Block diagram.For example, device 600 may be provided as a server.Referring to Fig. 6, device 600 includes processing component 622, into one Step includes one or more processors, and the memory resource as representated by memory 632, and being used to store can be by processing component The instruction of 622 execution, such as application program.The application program stored in memory 632 may include one or more Each correspond to one group of instruction module.In addition, processing component 622 is configured as executing instruction, to execute the above method.
Device 600 can also include the power management that a power supply module 626 is configured as executive device 600, and one has Line or radio network interface 650 are configured as device 600 being connected to network and input and output (I/O) interface 658.Dress Setting 600 can operate based on the operating system for being stored in memory 632, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (11)

1. a kind of method for obtaining mobile site loading velocity, which is characterized in that the described method includes:
Obtain the computer room information for being located at diverse geographic location;
Weight of the computer room of diverse geographic location relative to current search place is obtained according to the computer room information;
The page speed that the spidering process in the computer room of the diverse geographic location crawls present mobile stations point is obtained respectively;
The page speed of present mobile stations point is crawled according to the spidering process in the computer room of the weight and the diverse geographic location Degree, calculates the weighted average of the page speed, obtains the present mobile stations point relative to the current search place Loading velocity.
2. the method according to claim 1 for obtaining mobile site loading velocity, which is characterized in that described to obtain institute respectively State the page speed that the spidering process in the computer room of diverse geographic location crawls present mobile stations point, comprising:
For the computer room in each geographical location, obtains all spidering process in current geographic position computer room and crawl the current movement The page speed of website;
Calculate all spidering process in the current geographic position computer room crawl the present mobile stations point page speed it is flat Mean value crawls the page speed of present mobile stations point using the average value as the spidering process in the current geographic position computer room Degree.
3. the method according to claim 2 for obtaining mobile site loading velocity, which is characterized in that the method is also wrapped It includes:
Spidering process in the computer room for obtaining the diverse geographic location crawls the page speed of present mobile stations point In the process, suspension event is triggered every preset time by the spidering process, the suspension event is described current for interrupting Network where search in;
Reconnect the network.
4. the method according to claim 3 for obtaining mobile site loading velocity, which is characterized in that the preset time is Fixed Time Interval or different time intervals.
5. the method according to claim 1 for obtaining mobile site loading velocity, which is characterized in that with the current search The smaller computer room in the distance between place is bigger relative to the weight in the current search place.
6. a kind of device for obtaining mobile site loading velocity, which is characterized in that described device includes:
Computer room information obtains module, is configured as obtaining the computer room information for being located at diverse geographic location;
Weight Acquisition module is configured as obtaining the computer room information that module obtains according to the computer room information to obtain different geography Weight of the computer room of position relative to current search place;
Page speed obtains module, is configured to obtain the spidering process in the computer room of the diverse geographic location and crawls and works as The page speed of preceding mobile site;
Loading velocity obtains module, is configured as the weight and the page speed obtained according to the Weight Acquisition module The page speed that module obtains is obtained, the weighted average of the page speed is calculated, obtains the present mobile stations point Loading velocity relative to the current search place.
7. the device according to claim 6 for obtaining mobile site loading velocity, which is characterized in that the page speed obtains Obtaining module includes:
Acquisition submodule is configured as the computer room for each geographical location, obtains all crawlers in current geographic position computer room Process crawls the page speed of the present mobile stations point;
Computational submodule is configured as calculating the average value for the page speed that the acquisition submodule obtains, will be described flat Mean value crawls the page speed of present mobile stations point as the spidering process in the current geographic position computer room.
8. the device according to claim 7 for obtaining mobile site loading velocity, which is characterized in that described device is also wrapped It includes:
Suspension module is triggered, is configured as in the computer room that the page speed obtains that module obtains the diverse geographic location During spidering process crawls the page speed of present mobile stations point, is triggered and broken every preset time by the spidering process Net event, the suspension event are used to interrupt the network where the current search place;
Module is reconnected, is configured as reconnecting the network.
9. the device according to claim 8 for obtaining mobile site loading velocity, which is characterized in that the preset time is Fixed Time Interval or different time intervals.
10. the device according to claim 6 for obtaining mobile site loading velocity, which is characterized in that currently searched with described The smaller computer room in the distance between rope place is bigger relative to the weight in the current search place.
11. a kind of device for obtaining mobile site loading velocity characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Obtain the computer room information for being located at diverse geographic location;
Weight of the computer room of diverse geographic location relative to current search place is obtained according to the computer room information;
The page speed that the spidering process in the computer room of the diverse geographic location crawls present mobile stations point is obtained respectively;
The page speed of present mobile stations point is crawled according to the spidering process in the computer room of the weight and the diverse geographic location Degree, calculates the weighted average of the page speed, obtains the present mobile stations point relative to the current search place Loading velocity.
CN201610201409.9A 2016-03-31 2016-03-31 Obtain the method and device of mobile site loading velocity Active CN105868378B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610201409.9A CN105868378B (en) 2016-03-31 2016-03-31 Obtain the method and device of mobile site loading velocity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610201409.9A CN105868378B (en) 2016-03-31 2016-03-31 Obtain the method and device of mobile site loading velocity

Publications (2)

Publication Number Publication Date
CN105868378A CN105868378A (en) 2016-08-17
CN105868378B true CN105868378B (en) 2019-05-07

Family

ID=56626805

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610201409.9A Active CN105868378B (en) 2016-03-31 2016-03-31 Obtain the method and device of mobile site loading velocity

Country Status (1)

Country Link
CN (1) CN105868378B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102916847A (en) * 2011-12-08 2013-02-06 云智慧(北京)科技有限公司 Method and device for monitoring website speed
CN102957712A (en) * 2011-08-17 2013-03-06 阿里巴巴集团控股有限公司 Method and system for loading website resources
CN104601691A (en) * 2015-01-13 2015-05-06 北京中交兴路车联网科技有限公司 Method and system for increasing loading speed of Web site resource

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7454434B1 (en) * 2004-10-04 2008-11-18 American Express Travel Related Services Company, Inc. System and method for stepped loading of web page content

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102957712A (en) * 2011-08-17 2013-03-06 阿里巴巴集团控股有限公司 Method and system for loading website resources
CN102916847A (en) * 2011-12-08 2013-02-06 云智慧(北京)科技有限公司 Method and device for monitoring website speed
CN104601691A (en) * 2015-01-13 2015-05-06 北京中交兴路车联网科技有限公司 Method and system for increasing loading speed of Web site resource

Also Published As

Publication number Publication date
CN105868378A (en) 2016-08-17

Similar Documents

Publication Publication Date Title
Sonmez et al. Edgecloudsim: An environment for performance evaluation of edge computing systems
Izadinia et al. Response modification factor for steel moment-resisting frames by different pushover analysis methods
Ruiz‐García et al. Aftershock seismic assessment taking into account postmainshock residual drifts
US20160253407A1 (en) Clustering Method for a Point of Interest and Related Apparatus
US8306748B2 (en) Location enhancement system and method based on topology constraints
Kwon et al. Model updating method for substructure pseudo‐dynamic hybrid simulation
Xu et al. Seismic damage simulation in urban areas based on a high-fidelity structural model and a physics engine
CN101299861B (en) Base station system polling path automatization determination method based on shortest cycle
CN109993308B (en) Cloud platform-based shared learning system and method, shared platform and method and medium
KR101654246B1 (en) Obscuring true location for location-based services
CN106293965A (en) The method of the hardware resource of hardware resource access system and access electronic installation thereof
JP2022519283A (en) 3D environmental risk identification using reinforcement learning
Liu et al. Spectrum-based pushover analysis for estimating seismic demand of tall buildings
Amini et al. Adaptive force-based multimode pushover analysis for seismic evaluation of midrise buildings
Lee et al. User mobility model based computation offloading decision for mobile cloud
CN106599194B (en) Label determining method and device
CN104579830B (en) service monitoring method and device
KR20160118395A (en) Method, system and non-transitory computer-readable recording medium for providing learning information
Zhang et al. A spectral-acceleration-based linear combination-type earthquake intensity measure for high-rise buildings
Lavan et al. Simple iterative use of Lyapunov's solution for the linear optimal seismic design of passive devices in framed buildings
CN104750716A (en) Social network site friend recommendation method and social network site friend recommendation device
Li et al. Substructural interface force identification with limited vibration measurements
De Lellis et al. Modeling human migration under environmental change: a case study of the effect of sea level rise in Bangladesh
CN105868378B (en) Obtain the method and device of mobile site loading velocity
CN110134998A (en) It digitizes strategic point and defends emulation mode

Legal Events

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