title: Async / await vs then which is the best for performance?
body: <p>I have a simple code in JavaScript that execute a request in an API and return the response, simple. But in this case I will have thousands of requests. So, which one of the code options will perform better, and why. Also which one is recommended as good pratices these days? </p>
  
  <p>First options is using the .then to resolve the promises and the seccond one is using async / await.</p>
  
  <p>In my tests the two options had very similar results without significant differences, but I'm not sure in scale.</p>
  
  <pre><code>// Using then
  doSomething(payload) {
    const url = 'https://link-here/consultas';
    return this.axios.get(url, {
      params: {
        token: payload.token,
        chave: payload.chave,
      },
     }).then(resp =&gt; resp.data);
  }
  
  // Using Async / await
  async doSomething(payload) {
     const url = 'https://link-here/consultas';
     const resp = await this.axios.get(url, {
     params: {
       token: payload.token,
       chave: payload.chave,
      },
   });
   return resp.data;
  }
  </code></pre>
  
  <p>Any explanation will be of great value.</p>