In order to test whether the network speed of Android new devices meets the standard in the LAN environment, and compare the network speeds of different platform devices, so as to improve the wifi system of the new platform.
Found that LibreSpeed is a tool that can be deployed quickly and can be used to test the speed of the Internet. Not only provides web-side speed test function, but also provides an Android application that can configure and distribute an existing server to perform speed tests.
tool configuration
LibreSpeed Android tool open source address: https://github.com/librespeed/speedtest-android
After downloading the source code and importing it into Android Studio, the intranet speed measurement service cannot be run immediately. You need to configure the built node url through the json file. For the configuration method, please refer to the official tutorial
Take the default speed test node server as an example: https://librespeed.org/backend-servers/servers.php
-
ServerList.json: Add a speed test node
{ "name": "Tokyo, Japan (A573)", "server": "https://librespeed.a573.net/", "id": 82, "dlURL": "backend/garbage.php", "ulURL": "backend/empty.php", "pingURL": "backend/empty.php", "getIpURL": "backend/getIP.php", "sponsorName": "A573", "sponsorURL": "https://mirror.a573.net/" }
name: speed test node name
server: speed test node server
getIpURL: return IP information
pingURL: determine whether it can be displayed on the speed test node list according to ping url
ulURL: test upload url
dlURL: test download url
-
TelemetryConfig.json: Configure whether test results are shared (disabled by default)
{ "telemetryLevel":"disabled", "server":"//librespeed.org", "path":"results/telemetry.php", "shareURL": "results/?id=%s" }
telemetryLevel: three optional values
"basic": store the results of completed tests but no logs
"full": store the results of completed tests and logs regardless of failure or error
"disabled": do not send any results by default
-
SpeedtestConfig.json: Provides the default speed test configuration
empty json object, unless you customize it.
Test Results
Make sure that the speed measuring node added in the ServerList.json file can be pinged, and a server list is obtained, as shown in the figure:
Choose one of the servers for speed measurement, such as Nottingham, England (LayerIP):
It can be obtained that under the speed measurement address provided by Nottingham: the speed of various network tests of Ping, Jitter, Download, and Upload.