Speed – Test You Internet Speed
Speed – It’s a PHP based web application which helps you test your internet speed. You can measure you ISP’s internet speed very accurately(at least in India)
After working in PHP for almost 2 years I have developed this very simple internet speed tester.
You can view the source code for Speed on github.
This is latest version for Speed test which is dynamically generating content as per user’s internet speed.
In earlier version i was using very naive way, in which I was trying to download multiple image file and using time to download those multiple image file to calculate internet speed.
It was working initially when internet speed was very slow(approximately 5MB), but as internet speed crossed that limit(I updated my internet connection speed to 50MB) file was getting downloaded instantly and i was not able to get the actual internet speed.
You might ask why! So let me tell you what was happening.
As Max Image file was of 5MB, so Speed was only able to record internet speed upto 5MB, if its greater then 5MB then it will show it as 5MB only.
And in this case i was trying multiple image to account for multiple ISP(2G, Slow 3G, Cabel connection 512Mb,1Mb etc) which was also causing delay for extra connection overhead for each image file.
So for new Speed version we come up with different soultion, so rather then accounting for each ISP Speed wo dropped the idea for image file and started with generating dynamic stream of data from server side for some specified time(eg. 10 second,20 second).
For example we started with sending data for atleast 10 second, now it will be upto client how much it can consume(which avoids conflict with different ISPs in earlier version).
With this approach we were able to calculate the accurate internet speed.