0

I'm a web designer and will make a document to train my sites clients how to know if the internet bandwidth speed is slow or quick for each visitor of their sites, depending on the images or site weight (in bytes or in megabytes) and on their internet speed (in kilobit or megabit), for taking how long seconds or time by 250, 500 or 750kb and 1, 2, 4 or 10MB.

  • Your question is unclear. Can you elaborate? – Jim Mischel Nov 29 '12 at 15:16
  • For example, my client wants to know how long time (or seconds) one whole site take to load and to be ready by the visitor's internet bandwidth speed [size]. I have 10MB of internet bandwidth speed. By 10MB of speed, my another friend's one whole site has size of 54 megabytes and takes 15 seconds to load. The total transference of one whole site by 10MB is 190kb. The 190kb takes only 15 seconds to load. Did you understand it? Then, I don't know how long time (or seconds) one whole site takes to load by 250kb or any bandwidth speed [size]. –  Nov 29 '12 at 17:59

2 Answers2

3

I guess there are a few different ways to look at that question. If you are just looking to calculate how quickly the data can be downloaded in a perfect world, Jim's answer explains doing that calculation. But simply downloading files is a small part of the overall performance of a site. There are a few tools out there which will help you understand the performance of your site at different connection speeds.

One of those tools is Webpagetest.org. Enter your URL, choose a location and a browser then expand the Advanced Settings section. Choose a connection type and enter the number of times to run the test. It should be more than 1, but you are limited to only 10 through this UI. Its probably a good idea to go over to the Video tab and choose to capture a video as well so that you can demonstrate what its like on each size pipe. Then repeat for each of the connection types you want to test. This will give you a pretty good idea of how long it will take to view this site at different connection types.

The downside here is that its a bit of work to create a bunch of tests, then collate that info. An alternative to this is the Site Monitor feature at http://yottaa.com. You can setup a single test which will look at the site from different locations, or different browsers, or different connection types, then let you easily graph out the results. To get access you have to register for a free account. An alternative to that is at http://websitetest.com which requires no registration, but you get none of the management of test results.

Webpagetest.org is run by Google in cooperation with a lot of other partners.

Full Disclosure: I am the Technical Evangelist at Yottaa.

  • Yotta is very good to count how much total size of one website page, but it doesn't custom the internet speed, the location and the browser. Webpagetest is another good site, it lets me custom the internet speed, the location and the browser. –  Nov 30 '12 at 19:58
  • 1
    Sure it does. Thats probably one of our most important features. In fact I can set up a single test to run from 20 different locations every 5 minutes forever. I can guide you through it if you want. Webpagetest will do it as well, but its a little more difficult to achieve. Take a look in my profile for my email address and let me know if you need any help. – Matt Williams Nov 30 '12 at 20:03
  • Are you sure at Yotta, can I custom the internet speed, the browser and the location in one single test? –  Nov 30 '12 at 20:11
1

If you're asking how long it takes to download, say, 54 megabytes on a 10 megabit (or whatever) connection, the simple solution is pretty easy.

For the sake of simplicity, and to take into account the overhead involved in TCP communications, we typically say that 10 megabits per second is the same as one megabyte per second (that is, we assume one byte is 10 bits rather than 8 bits).

So if you want to know how long it takes to download 54 megabytes on a 10 megabit (1 megabyte per second) connection, the answer is 54/1, or 54 seconds. If you have a 250 Kb connection, that's 25 kilobytes per second, or 0.025 megabytes per second. 54/0.025 = 2,160 seconds, or 36 minutes.

In general, this is a best case estimate. It assumes that the connection between client and server can support the sustained maximum rate. The numbers don't take into account other things the server might be doing that would reduce the bandwidth it can dedicate to a particular connection, nor does it include stalls that could occur in the many hops between client and server.

In practice, the number will most likely be larger. That is, if the above calculation says that the entire site can be downloaded in 27 seconds, it could easily take twice that long. There's no way to reliably predict, based only on the client's bandwidth.

It's also possible that it could take less time, if the client's "10 megabits" is an average, and bursts of higher bandwidth are available. Especially during times of lower overall network usage.

Jim Mischel
  • 131,090
  • 20
  • 188
  • 351
  • Thank you a lot, I got this. And how do I know how much size of one whole site page? The browsers, as Chrome, Firefox and Safari, and the developer tools, they didn't count the real size of one whole page (with documents, stylesheets, CSS files, Javascript and jQuery files, images, etc.). –  Nov 30 '12 at 15:14
  • 1
    @GustavoReisCosta: One would assume that you, as the developer of the site, could calculate the download size. After all, you know what images, scripts, stylesheets, etc. are included. Of course, because clients' browser caching policies will vary, you can only say what the *maximum* download size will be. The best way to compute that is to install a tool such as Wireshark on a test client, and then visit the site. – Jim Mischel Dec 01 '12 at 04:49
  • Hello @jim-mischel, sorry for resuscitating my old question. How to calculate KB on a megabit and a kilobyte? –  Jul 18 '16 at 03:54
  • @GustavoReisCosta: I don't understand your question. You probably should post a new question rather than asking as a comment to a 4 year old answer. – Jim Mischel Jul 18 '16 at 04:35