title: Most efficient way to output a newline
body: <p>I was wondering what is the most efficient performant way to output a new line to console. Please explain why one technique is more efficient. Efficient in terms of performance.</p>
  
  <p>For example:</p>
  
  <pre><code>cout &lt;&lt; endl;
  cout &lt;&lt; "\n";
  puts("");
  printf("\n");
  </code></pre>
  
  <p>The motivation for this question is that I find my self writing loops with outputs and I need to output a new line after all iterations of the loop. I'm trying to find out what's the most efficient way to do this assuming nothing else matters. This assumption that nothing else matters is probably wrong.</p>