I have a C# app in which I am testing 3 ways to do something with XML.
I read a string of XML get a value out and then add it to a custom collection.
I am testing XMLDocument, XDocument and String manipulation to find the node value, in that order recording a start and end time for each.
However if I say mix the order up I get different speeds reported. Also when I press the button again to perform the test again the one that was slowest initially sometimes takes the least on subsequent tests.
I'm sure its all related to JIT and Garbage collection but what is the truest way to determine what runs the fastest.
I have downloaded EQATEC profiler but I'm lost on what to do with it.
Can someone advise me the best way to determine what methods run the quickest.
Thanks