The Pokemon's original speed is used on the turn it MegaEvolves because turn order is calculated before MegaEvolution occurs. This is how it works ingame.Just stating here that when megaevolving, the NEW base speed stat is taken into account. So Jolly MegaLucario should be able to outspeed Normal Jolly Garchomps