Testing Timings of methods with Entity Framework queries in my c# project

Hi,

I am trying to test the timings of some methods in my c# project, which feature some entity framework queries.

So basically I can test the first run query time fine, but I am then wanting to test the subsequent query time after that as this is generally quicker.

What I am getting at the moment however is due to the caching mechanisms, is that the second call of that method, is basically nothing. This makes it more difficult to test these timings. I have messed around with the settings, but could not get this scenario to work.

So what I am after is during a single run I want to get proper timings for 2 or more calls of the same method? Is this possible?

Comments

  • By "second call", do you mean the second time you call the method in a LINQPad script, or the second time you execute the query?
  • Second time I call the method in the script.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!