An Elegant Command-line Bandwidth Test

June 27, 2014
bandwidth

There are plenty of online tools that will test your bandwidth, but for those who cherish the elegance of the command line, here’s a great command to alias and put in your shell’s config.

For me that’s zsh, and here’s the alias:

# Pull a 400MB file from Cachefly via wget

alias bt="wget http://cachefly.cachefly.net/400mb.test"

For those who don’t know, CacheFly is widely accepted as the premier CDN in the world. The beauty of this test is that no matter where you are you’re getting that 400MB file from the closest location to you. This means you’re testing your connection rather than random drama points between you and a given destination.

[ NOTE: There are also 100MB and 200MB versions as well. Just change the 400 to one of those in the URL. ]

supporting = loving

Since 1999 I've been creating ad-free technical tutorials and essays here. It's a one-person effort that's also my life and livelihood. If it makes your day more livable in any way, please consider supporting the work with a monthly or one-time donation. Your support means a lot to me, and makes all the difference. 🫶🏼