Skip to content

Instantly share code, notes, and snippets.

@mknepprath
Last active September 23, 2019 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mknepprath/ef3ebe6599834e4e042e709dbc8592bb to your computer and use it in GitHub Desktop.
Save mknepprath/ef3ebe6599834e4e042e709dbc8592bb to your computer and use it in GitHub Desktop.
Open https://fast.com/ and paste into the console to start creating a log of your internet speed.
const recordedSpeeds = []
setInterval(() => {
// Get internet speed
let speed = document.getElementById('speed-value').innerText
// Get speed units
const units = document.getElementById('speed-units').innerText
// Flatten speed if Kbps
if (units === 'Kbps') speed = "0"
// Display in console
console.log('='.repeat(Number(speed) / 5), speed)
// Save to array of internet speeds
recordedSpeeds[Date.now()] = speed
// Run the speed test again
document.getElementById('speed-progress-indicator').click()
}, 60000) // 1 minute
// Example output:
// ======== 42
// =========== 59
// ========= 47
// ========== 51
// ========== 53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment