Basically there are 2 ways that I know to test download speed.
1) with busybox wget: Download script below and put for example in /data/local/tmp and chmod to 755. the script will calculate the average download speed to download 100M file from london. Maybe I can add later US servers.
2) with GNU wget. Install it from here . Thanks to @alireza7991 for this. After that go to terminal and type:
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?