Commuting probability of compact groups