slow http-client request added by caolanm on Wed Aug 23 09:49:06 2017

caolan@caolan-laptop:~/Desktop$ cat example.scm 
(use http-client intarweb uri-common utils)

(receive (body final-uri response)
  (call-with-response
    (make-request
      method: 'GET
      uri: (uri-reference "https://api.github.com/users/caolan"))
    (lambda (request) #f)
    (lambda (response)
      (read-all (response-port response))))
  (display body))


caolan@caolan-laptop:~/Desktop$ time csi -s example.scm 
{"login":"caolan","id":5274,"avatar_url":"https://avatars0.githubusercontent.com/u/5274?v=4","gravatar_id":"","url":"https://api.github.com/users/caolan","html_url":"https://github.com/caolan","followers_url":"https://api.github.com/users/caolan/followers","following_url":"https://api.github.com/users/caolan/following{/other_user}","gists_url":"https://api.github.com/users/caolan/gists{/gist_id}","starred_url":"https://api.github.com/users/caolan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caolan/subscriptions","organizations_url":"https://api.github.com/users/caolan/orgs","repos_url":"https://api.github.com/users/caolan/repos","events_url":"https://api.github.com/users/caolan/events{/privacy}","received_events_url":"https://api.github.com/users/caolan/received_events","type":"User","site_admin":false,"name":"Caolan McMahon","company":null,"blog":"http://caolan.org","location":"Sheffield, UK","email":null,"hireable":true,"bio":null,"public_repos":121,"public_gists":3,"followers":1821,"following":51,"created_at":"2008-04-05T11:30:29Z","updated_at":"2017-08-14T19:03:53Z"}
real	0m10.778s
user	0m0.184s
sys	0m0.012s


caolan@caolan-laptop:~/Desktop$ time curl https://api.github.com/users/caolan
{
  "login": "caolan",
  "id": 5274,
  "avatar_url": "https://avatars0.githubusercontent.com/u/5274?v=4",
  "gravatar_id": "",
  "url": "https://api.github.com/users/caolan",
  "html_url": "https://github.com/caolan",
  "followers_url": "https://api.github.com/users/caolan/followers",
  "following_url": "https://api.github.com/users/caolan/following{/other_user}",
  "gists_url": "https://api.github.com/users/caolan/gists{/gist_id}",
  "starred_url": "https://api.github.com/users/caolan/starred{/owner}{/repo}",
  "subscriptions_url": "https://api.github.com/users/caolan/subscriptions",
  "organizations_url": "https://api.github.com/users/caolan/orgs",
  "repos_url": "https://api.github.com/users/caolan/repos",
  "events_url": "https://api.github.com/users/caolan/events{/privacy}",
  "received_events_url": "https://api.github.com/users/caolan/received_events",
  "type": "User",
  "site_admin": false,
  "name": "Caolan McMahon",
  "company": null,
  "blog": "http://caolan.org",
  "location": "Sheffield, UK",
  "email": null,
  "hireable": true,
  "bio": null,
  "public_repos": 121,
  "public_gists": 3,
  "followers": 1821,
  "following": 51,
  "created_at": "2008-04-05T11:30:29Z",
  "updated_at": "2017-08-14T19:03:53Z"
}

real	0m0.543s
user	0m0.016s
sys	0m0.008s