Switch from new Date() to performance.now()