I've created a console application where I try 2 different methods of getting values from a sql database (= on the same server). When I add a stopwatch to check which one is the fastest method, I'll sometimes get the first, other times the second. What could be responsible for this? Is it possible to run the test under the same conditions? Should I run this async?
My console-code can be found here: http://pastie.org/7920175