Mixing time of Markov chains on finite and compact lie groups