title: Which is faster "If (bool) {true} else {false}" or "bool ? true : false"? Why? In every languages?
body: <p>This is something I was thinking, when I searched at Google I couldn't find the answer (maybe I don't know the keywords). Just at a curiosity level, no implementation in any project.</p>
  
  <p>Which is faster:</p>
  
  <pre><code>if (bool)
     return true;
  else
     return false;
  </code></pre>
  
  <p>or</p>
  
  <pre><code>bool ? true : false;
  </code></pre>
  
  <ul>
  <li><p>Are they equal?</p></li>
  <li><p>Why?</p></li>
  <li><p>One is faster than another in every language, in every system?</p></li>
  </ul>
  
  <p>(If someone knows the answer for microcontrollers, Obj-C for iOS or Java, I would really appreciate your answer to my question)</p>
  
  <p>EDIT: 
  I didn't know that <code>bool ? true : false</code> is called ternary, as I said "I don't know the keywords".</p>