[nycphp-talk] Speed/Bandwidth Tests?
Brian Pang
bpang at bpang.com
Mon Jul 7 09:50:53 EDT 2003
set a timestamp variable with javascript
send (in comments if you don't want it to show) 100K of text data
set a second timestamp variable using javascript
determine elapsed time between the two timestamps...
(seconds/100)*1.024 = Kbps
I recommend using a large chunk of data because something small, like
1k, has the potential to burst through at a significantly higher rate
than you would anticipate.
I usually run two tests and then get the mean of both results.
http://www.bpang.com/speed/
bear in mind that the advertised speeds of modems, etc, is in k, not K
>
>
> Jay wrote:
>
> > Anyone here have any experience with bandwidth testing? Basically, I'm
> > looking to determine a website visitor's connection speed so I can
direct
> > them to an appropriate media stream.
>
> I've done bandwidth testing, but not between a user's browser and the
server - typically it's between two servers :)
>
> I'm not sure if there is a good way of doing this, though; if there
was, the major sites like cnn.com and so forth wouldn't ask you to
select the stream's speed. Maybe there's a way to talk directly to a
particular plugin and ask it what kind of internet connection it's owner
configured it for, but it's probably not a good idea to saturate the
client's internet link. I suppose you could traceroute them and
possibly determine from that what kind of link they're on, but I would
think that's very unreliable and complex.
>
> H
>
> _______________________________________________
> talk mailing list
> talk at lists.nyphp.org
> http://lists.nyphp.org/mailman/listinfo/talk
>
>
More information about the talk
mailing list