Maybe other variables also. Like Alcohol intake and amount of people laughing around you.
I've seen a couple or three that have had me absolutely pissing myself laughing in stiches on the floor when they're on stage but are mediocre on the telly.
Case in point.
Also comedians spent years honing an act which may only last half an hour.
The tv gig devours their material.