Thanks, but your script returned a score of 1-4 units depending on how I tested it (and I tested it on lots of different connection speeds).
Changing it as I have returns 1-400 units.
It definitely needed changing. You said that anything over 50 would be fast, and 500 would be really fast. Your script would never return anything near 50, let alone 500.
i should also mention that you might consider is keeping track of the total time, subtracting delay and the dividing by 5. That math yields your average latency, another quality of service indicator.
Good point. Thanks.