A framework for comparing the performance of MCMC samplers