OpenSpeedTest.com has all of your Internet Speed Test needs covered! They have needs covered that you don’t even know you have. Also, they have tools for measuring speeds on your own networks, wired and wifi. An impressive amount of polish here.
Source: Free and Open-Source Self-Hosted HTML5 SpeedTest