             callback new Error("Bad status code #{response.statusCode} getting posts: #{body}")
           else
             results = JSON.parse(body)
+            now = Date.now()
+            console.log "#{now - start} (#{now - last}) to get posts"
+            last = now
             callback null, results.posts
       (posts, callback) ->
         downloadFullPost = (post, callback) ->

  ], callback

updateUserAgent = (client, user, agentID, weights, callback) ->
  newAgent = makeAgent weights
  client.putAgent agentID, newAgent, callback


              callback null, results.post
        async.map posts, downloadFullPost, callback
      (posts, callback) ->
        now = Date.now()
        console.log "#{now - start} (#{now - last}) to get full posts"
        last = now
        sortPosts req.app.db, req.app.fuzzyIO, req.agent, posts, req.user, req.token, callback
    ], (err, posts) ->
      if err
        next err
      else
        now = Date.now()
        console.log "#{now - start} (#{now - last}) to sort posts"
        last = now
        res.render 'home',
          posts: posts
          title: "Today's Posts"
