Time the comparison procedure