title: Getting Performance Results using benchmarkdotnet in ASP.net MVC
body: <p>I am testing benchmark library to measure the performance of the code. I am reading up the documentation.</p>
  
  <p>I am not able to figure out how to print out  results of benchmarks.
  I have a class called user and i want to bechmark the following method.</p>
  
  <pre><code>[Benchmark]
  public bool FollowerAdded(User newFollower)
  {
      // code for notifying user that they have an added follower
      Notification notification = new Notification();
      return notification.NotifyUser(this, newFollower.UserName + " is now following you!");
  }
  </code></pre>
  
  <p>In the documentation of benchmarkdot net, Use the following code to get printout  of bechmarks. </p>
  
  <pre><code>var summary = BenchmarkRunner.Run&lt;User&gt;();
  </code></pre>
  
  <p>Where can we put this code to get the results in case of Asp.net MVC application to get the benchmarking results?</p>
  
  <p>here is the URL of the library
  <a href="http://benchmarkdotnet.org/GettingStarted.htm" rel="nofollow noreferrer">http://benchmarkdotnet.org/GettingStarted.htm</a></p>