You need to enable JavaScript to run this app.
Torch Object Storage

Torch Object Storage

Copy page
Download PDF
Auxiliary commands
Test upload and download speeds (probe)
Copy page
Download PDF
Test upload and download speeds (probe)
You can use the probe command to test the upload or download speed of a single stream.​
Testing upload and download speeds using system buckets​
There is no need to configure access key ID (AK) and secret access key (SK) when testing speeds with system buckets. After installing tosutil, you can use the probe command to test speeds directly.​
Command syntax​
​
​
Linux/macOS
Windows
​
​
​
./tosutil probe [-pt=xxx] [-file=xxx] [-tr=xxx] [-nt=xxx] [-ps=1073741824] [-timeout=30]​
​
​
​
​
Parameters​
​
Parameter​
Type​
Description​
-pt​
String​
The service type for speed testing. The options are as follows:​
  • upload (Default): Tests upload speed.​
  • download: Tests download speed.​
-file​
String​
The local file path used for testing upload or download speeds. If this parameter is not configured, tosutil will either generate data from memory for uploads or discard downloaded data directly from memory.​
-tr​
String​
The TOS region used for speed testing. Major regions are supported, specifically:​
  • cn-beijing (Default): China (Beijing)​
  • cn-guangzhou: China (Guangzhou)​
  • cn-shanghai: China (Shanghai)​
  • ap-southeast-1: Asia Pacific (Johor)​
-nt​
String​
The type of network used for speed testing. The options are as follows:​
  • public (Default): Tests the speed of the public network.​
  • internal: Tests the speed of the private network.​
-ps​
String​
The size, in bytes, of the object used for speed testing. The default value is 1 GB, with a range of 100 MB to 5 GB.​
tip​
This parameter supports configuration with capacity units. For example, there is no need to manually calculate how many bytes are in 100 MB—just write "100 MB," and the program will recognize it.​
-timeout​
Integer​
Sets the timeout for speed testing, in seconds. The default value is 30. The minimum value is also 30.​
​
Example​
Test upload speeds using system buckets​
  • Command​
​
./tosutil probe -tr cn-beijing -pt upload​
​
  • Output​
​
Start to test the uploading speed for region cn-beijing​
​
Average upload rate: 5.65MB/s ​
​
Time consuming details​
Resolve dns cost: 13 ms​
Build connection cost: 42 ms​
Tls handshake cost: -1 ms​
Send request cost: 29945 ms​
Wait response cost: -1 ms​
Total cost: 30000 ms ​
​
Testing upload and download speeds using user-owned buckets​
Command syntax​
​
​
Linux/macOS
Windows
​
​
​
./tosutil probe tos://bucket[/prefix] [-pt=xxx] [-file=xxx] [-ps=1073741824] [-timeout=30] [-e=xxx] [-re=xxx] [-i=xxx] [-k=xxx] [-t=xxx] [-conf=xxx]​
​
​
​
​
Parameters​
​
Parameter​
Type​
Description​
bucket​
String​
Use your own bucket for testing.​
prefix​
String​
The name of the object or the name prefix of the objects used for speed testing. Specifically:​
  • In an upload speed test, it represents the name of the object or prefix of the objects that will be uploaded to the bucket. If it is a prefix, object names will be randomly generated.​
  • In a download speed test, it represents the name of the object to be downloaded from the bucket.​
tip​
  • To test your download speed, select an object that is greater than 20 MB.​
  • If the specified object does not exist or has not been set, tosutil will first upload an object and then measure the speed. By default, tosutil deletes the uploaded object during the test. However, factors such as network speed or permissions may prevent deletion. In such cases, tosutil will report a deletion failure error. To avoid storage costs, we recommend manually removing the test object.​
-pt​
String​
The service type for speed testing. The options are as follows:​
  • upload (Default): Tests upload speed.​
  • download: Tests download speed.​
-file​
String​
The local file path used for testing upload or download speeds. If this parameter is not configured, tosutil will either generate data from memory for uploads or discard downloaded data directly from memory.​
-ps​
String​
The size, in bytes, of the object used for speed testing. The default value is 1 GB, with a range of 100 MB to 5 GB.​
tip​
This parameter supports configuration with capacity units. For example, there is no need to manually calculate how many bytes are in 100 MB—just write "100 MB," and the program will recognize it.​
-timeout​
Integer​
Sets the timeout for speed testing, in seconds. The default value is 30. The minimum value is also 30.​
​
Example​
Test the speed of downloading the object object from the bucket bucket​
  • Command​
​
./tosutil probe tos://bucket/object -pt download​
​
  • Output​
​
Start to test the uploading speed for region cn-beijing​
​
Average download rate: 3.95MB/s ​
​
Time consuming details​
Resolve dns cost: -1 ms​
Build connection cost: -1 ms​
Tls handshake cost: -1 ms​
Send request cost: 0 ms​
Wait response cost: 64 ms​
Total cost: 30002 ms​
​
​
Last updated: 2025.12.17 18:33:44