Perturbative vs non-perturbative renormalization: the case of the quark mass