Test performance of query over specified number of runs or compare results between two queries