A .17hmr has almost zero recoil, and for sure less than the .22mag. Generally speaking, when comparing 2 cartridges having similar ftlb energy levels, the cartridge shooting the projectile with a larger diameter and heavier weight, is going to have more felt recoil than the cartridge with a smaller, lighter, faster projectile. I was easily able to remain focused on the dissappearing cloud of vapor that was once a grape at 100m with mine... before i sold it. Very easy to return to battery. A .22 mag will take you slightly off target after each shot... but not much.
Honestly, all my .22lr's recoil more than my .17hmr did.