TODO: record running time for the comparison