A proton is much heavier than a photon. In fact, the mass of a proton is approximately 1.6726219 x 10^(-27) kilograms (kg), while a photon is massless.
Since the mass of a photon is essentially zero, we can say that a proton is infinitely times heavier than a photon. The mass of a photon is solely associated with its energy, given by E = hf, where E is the energy, h is Planck's constant (approximately 6.626 x 10^(-34) joule-seconds), and f is the frequency of the photon.
Therefore, when comparing the mass of a proton to that of a photon, we find that the proton has a finite mass while the photon has no mass at all, resulting in an infinite ratio.