Speed Test for DigitalOcean
DigitalOcean provides usefull links to run speed tests for each datacenter, but only one at a time. I created this repository to speed up this process.
Run speed tests for all DigitalOcean datacenters faster than ever.
Just click start!
This tool uses the same service used by speedtest-*.digitalocean.com so the result should be the same.
Unfortunately, this application is not working anymore from my domain since the speed test service is now validating the domain name.
Of course, the valid domain is the DigitalOcean domain. Given that, I decided to refactor this application to be served as a micro-frontend so that we are able to inject it into their website.
How does it work?
When Travis CI builds the website and publishes it to GitHub Pages, two files are generated (
main.css). They are used both to render the website hosted at speedtest-do.marcomontalbano.com and to render the injected application at speedtest-nyc1.digitalocean.com.
var script = document.createElement('script'); script.src = 'https://cdn.jsdelivr.net/gh/marcomontalbano/speedtest-for-digitalocean@latest/static/js/main.js'; var style = document.createElement('link'); style.href = 'https://cdn.jsdelivr.net/gh/marcomontalbano/speedtest-for-digitalocean@latest/static/css/main.css'; style.rel = 'stylesheet'; document.head.innerHTML = ''; document.body.innerHTML = ''; document.body.setAttribute('id', 'st4do-root'); document.head.append(script, style);
You can take a look at the production code being used:
Need an account for DigitalOcean?
Click here to register a new one!
Google Analytics is used to record the following:
- Basic visit data.
uploadspeed for each region in order to provide the consultable table.
start you accept this terms & condition; no additional data is sent to the server.