title: Is await bcrypt.hash() the same as bcrypt.hashSync()?
body: <p>With regards to the <a href="https://www.npmjs.com/package/bcrypt" rel="nofollow noreferrer">bcrypt npm package</a>, I see that the async version is recommended. However, I would like to truly understand the differences between both versions in terms of performance (i.e. event loop, blocking I/O, etc.)</p>
  
  <p>Version 1: Async</p>
  
  <pre><code>const hash = await bcrypt.hash(...)
  ...
  </code></pre>
  
  <p>Version 2: Sync</p>
  
  <pre><code>const hash = bcrypt.hashSync(...)
  ...
  </code></pre>
  
  <p>In other words, if i'm calling <code>bcrypt.hash</code> with <code>await</code>, are the effects equal to the sync version?</p>