Detecting Upload Speeds

 

BrowserHawk can measure your visitor's upload connection speed in bits per second via the UploadConnectionSpeed property. Likewise the UploadConnectionLatency property can measures the visitor's upload connection latency in milliseconds. Measuring the upload speed is less of an exact science than measuring download speed. However the results should provide a good estimate.

 

To perform the upload speed check, BrowserHawk generates completely random data in the visitor's browser and posts it (via a POST action) back to the web page that is performing the upload speed check (configurable). The size of the data posted is dynamically determined by BrowserHawk for each visitor, based on an initial, very quick test of their upload speed.

 

Tip: See the uploadspeed.aspx, uploadspeed.asp and uploadspeed.jsp samples included with BrowserHawk for a working example of measuring upload speed and latency.

 

Important considerations in testing upload speeds:

Controlling the Upload Speed Tests

 

The default settings that BrowserHawk uses are designed to balance the speed and efficiency of the test with good accuracy, and should be well suited for most purposes.  However, there are several advanced configuration options available to increase the accuracy of the test even further (at the expense of longer testing times and higher bandwidth usage), or to decrease the testing time and bandwidth usage (at the expense of accuracy). These settings are provided by the following properties:

 

Note:  The UploadConnectionSpeed or UploadConnectionLatency tests  may increase your  hosting charges

 

Using the UploadConnectionSpeed or UploadConnectionLatency tests will result in increased data transfer (upload) usage between your web server and your visitors.  If the amount of data transfer your web site uses impacts your hosting charges, then using either of these tests may indeed result in higher charges from your hosting provider. Such charges may be significant. See the tips below for trying to reduce the bandwidth used if this is a concern. Note that this overhead is the same whether you are testing UploadConnectionSpeed, UploadConnectionLatency, or both. In other words there is no additional overhead by testing the latency if you are already testing the upload speed, and vice-versa.

 

Each time an upload speed check is performed, BrowserHawk dynamically determines an appropriate size of data to use in the speed measurement.  This data size by default ranges from just a few KB up to 2MB.  Users on faster, higher quality connections will typically be tested using data sizes toward the higher end, resulting in about 1-2MB of transfer for each test. Users with slower, lower quality connections will typically be tested using data sizes toward the lower end, resulting in 1MB or less of transfer for each test.

 

For busy sites, this amount of data transfer can add up quickly.  For example, assume a busy site has 100,000 visitors per day. Further assume that 50% have high quality connections and average 1.5MB of transfer per test, and 50% have lower quality connections and average 750KB of transfer per test. Assuming each user has their speed tested once per day, this works out to 75GB and 38GB per day respectively, for a total of 114 GB per day, or 3.5 TB per month.

 

Such volumes of data transfer may add significantly to your web hosting bill. If you have any doubts be sure to check with your service provider to determine how an increase in data transfer may impact your bill. Please note that cyScape is not responsible for any such fees.

 

Tips for reducing bandwidth used by the upload speed and latency tests

See Also:

UploadConnectionSpeed Property (ActiveX / .NET)

UploadConnectionLatency Property (ActiveX / .NET)

UploadSpeedCheckFirstDatasize Property (ActiveX / .NET)

UploadSpeedCheckMaxDatasize Property (ActiveX / .NET)

UploadSpeedCheckMaxWait Property (ActiveX / .NET)

UploadSpeedCheckTargetURL Property (ActiveX / .NET)

UploadSpeedCheckTestSeconds. Property (ActiveX / .NET)

Detecting Connection Speeds and Dialup Users