I'm trying to compare on different levels two or more methods that are supposed to do the same thing. I'd like to compare them time-wise (who's faster), memory consuming-wise, etc.. but I don't want the results to be influenced by some background activity my computer may be doing (load an internet page, check for updates, etc...).
What are my options here to test my methods in an environment free of "distractions" that could influence the results.