When I was 19yo: Open surgery. It took took 2 weeks before I could laugh/cough/sneeze w/o it feeling like someone was shoving a hunting knife into my crotch. Probably 3 weeks before I could walk normally, instead of shuffling along keeping one leg forward.
A couple years ago: Laparoscopic surgery. I felt like I could have hopped back on the bike the next day, but the surgeon warned me not to try it for 10 days.