<% start = Time.now %> <% @tweets.each do |tweet| %> <% end %>
id replies_count in_reply_to.id in_reply_to.favorites_count
<%= tweet.id %> <%= eager_load? ? tweet.replies_count : tweet.replies.count %> <%= tweet.in_reply_to.try(:id) %> <%= tweet.in_reply_to.try(:favorites_count) %>
<% finish = Time.now %>

<%= eager_load? ? 'Eager loaded' : 'N+1 query' %>

Time: <%= "%.1f" % ((finish - start) * 1000) %>ms

<%= link_to 'Swtich', url_for(eager_load: !eager_load?) %>