Home

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

Sign In or Register to comment.