Different browsers do this differently. Some show a little bar to indicate how much of the file you have downloaded as well as an estimate of how much longer you can expect to wait. Well, now the time has come. I am going to check these download progress bars. Why? I have no idea ...
Is the Progress Bar Accurate
Let me start with the download progression bar from the Safari browser. Why? Well, I usually use the Google Chrome browser, but it doesn’t show a nice visual bar like this.Here is a plot of the size of the download bar and the reported size of the downloaded file (as a fraction of the total download size) vs. time.
Estimated Time Remaining
I understand the browser doesn’t know the future. It can only estimate how long the download will last. The browser gives a value for the estimated time. Since I already downloaded the file, I know the actual time left. Here is a plot of estimated time left and actual time left (as a function of time).It doesn’t seem fair to look at how much the Safari browser’s estimate was off for this minute data. Let me just look at the points where the estimated download time changed. So, if the download bar went from 5 minutes to 4 minutes, right at that moment I suspect there is actually 4 minutes left.
Now let me plot the estimate error (how much the time remaining estimate is off) as a function of downloaded data.
In this plot, I weighted the estimate error based on how much data was left to download. So a 1-minute error at the beginning of the download isn’t as bad as a 1-minute error at the end.
Checking the Download Rate
Although the browser gives the download rate (I will use units of MB/sec), there is also a way I can check this value. Let me just show a few of these download vs. time data point. Here are the first four.Even if I look at the two previous data points to calculate the download rate, it still looks pretty jumpy. Really, there is another problem. Let me zoom in on the end of this data rate plot.
How Do You Estimate the Time Remaining?
If it were up to me, I would use the instantaneous download rate to estimate the time left. I suspect that Safari uses the overall average data rate to get this estimate. Let’s find out. With either rate, I think you would use the following formula to find the time left.I guess this decision is the most appropriate. If you used the instantaneous download rate, the time remaining would jump all over the place. This would make some people quite unhappy.
Conclusion
Back to the question: Did the browser lie? I guess this depends on your definition of “lie.” The time remaining was clearly wrong — but you can’t blame the browser for not being about to see into the future. (That will be included in a future software update, though.) The other issue is the “download rate.” I would expect this to be the instantaneous rate (for no particular reason) but it was in fact reporting the average download rate.What about other browsers? I have some data from the Chrome download progress (but it doesn’t show a bar) — I guess I can look at that.
Actually, this is a nice example of a problem that students have with introductory physics. In lab, students will often collect position and time data. The goal will be to use this data to find the velocity of an object. There are two common ways students do this:
The first one is surprisingly common for students to use. Sometimes, it will work — but many times it won’t. For some reason, students are strangely attracted to the idea that velocity is just distance over time. (I blame middle school math textbooks.) Of course, in the case of downloads, data divided by time does have a real meaning — provided that there is zero MB downloaded at time zero seconds.
Let me just give one preemptive comment (since I can see the future and know that someone will say it):
“Don’t you know that Safari is based on WebKit? You can just look at the source code and see how it calculates time remaining. Do they actually pay you to write this stuff?“My response is as usual. What if I gave you jigsaw puzzle? That would be nice, right? Who doesn’t love a nice puzzle. Well, for this puzzle, you wouldn’t even have to put it together. Why? Well, the picture of the final result is right there on the front of the jigsaw puzzle box.
Source : wired.com
0 σχόλια:
Post a Comment