Hello,
I leave you a post on my blog with a python plugin that verifies the download and upload speed of the internet connection.
https://mytcpip.com/site24x7-plugin-to-measure-internet-bandwidth/
I hope it is of your interest. It is in Spanish, but any questions you can contact me.
JL