title: Using await in same line as method call c#
body: <p>Can calling <code>await</code> in the same line as the async method be slower than calling normal method?</p>
  
  <p>From what I know asynchronous methods are good for I/O operations like getting data from the database. But what if there is nothing to do between calling the async method and awaiting it I need to do it in the same line.</p>
  
  <p>In this post <a href="https://stackoverflow.com/questions/31640371/await-and-async-in-same-line">Await and Async in the same line</a> they discussed that the benefit comes from freeing thread.</p>
  
  <p>I have some unit tests for testing my services and methods using async methods as I described are always taking longer than their non-async equivalents. I assume it's because creating work in a separate thread and then awaiting it has some price.</p>
  
  <p>So what I want to ask is, if using async in this case has truly some benefits.</p>
  
  <pre class="lang-cs prettyprint-override"><code>public async Task AssignHighestRank(User user)
  {
      user.Rank = await _rankRepository.GetHighestRank();
      _userRepository.Update(user);
      await _userRepository.SaveChanges();
  }
  </code></pre>