Skip to content

Instantly share code, notes, and snippets.

View holyxiaoxin's full-sized avatar

Lim Jia Rong holyxiaoxin

  • Switcheo Network
  • Singapore
View GitHub Profile

Keybase proof

I hereby claim:

  • I am holyxiaoxin on github.
  • I am holyxiaoxin (https://keybase.io/holyxiaoxin) on keybase.
  • I have a public key ASA24PJjQHMwJptd5tiXueuxjTSa30we0HBq4xr-RISnVgo

To claim this, I am signing this object:

@holyxiaoxin
holyxiaoxin / tasks.exs
Last active February 11, 2016 04:02
Async vs Sync http requests
defmodule Tasks do
def main(_args) do
HTTPoison.start
# data gov caches the requests so i had to spin up a json server,
# which does not have caching to accurately test the async/sync time.
urls = [
"https://data.gov.uk/data/api/service/transport/planned_road_works/road?road=M62",
"https://data.gov.uk/data/api/service/transport/planned_road_works/road?road=M62",
]