Skip to content

Instantly share code, notes, and snippets.

@fredriccliver
Last active September 10, 2020 14:42
Show Gist options
  • Save fredriccliver/8fe16b5498890f94e440fa1a600d2e10 to your computer and use it in GitHub Desktop.
Save fredriccliver/8fe16b5498890f94e440fa1a600d2e10 to your computer and use it in GitHub Desktop.
console.time("London")
fetch("https://europe-west2-[project-id].cloudfunctions.net/london").then( async (res)=>{
await console.log(res.text)
})
console.timeEnd("London")
console.time("Iowa")
fetch("https://us-central1-[project-id].cloudfunctions.net/iowa").then( async (res)=>{
await console.log(res.text)
})
console.timeEnd("Iowa")
console.time("Hong Kong")
fetch("https://asia-east2-[project-id].cloudfunctions.net/hongkong").then( async (res)=>{
await console.log(res.text)
})
console.timeEnd("Hong Kong")
console.time("Seoul")
fetch("https://asia-northeast3-[project-id].cloudfunctions.net/seoul").then( async (res)=>{
await console.log(res.text)
})
console.timeEnd("Seoul")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment