There are many variables though, per person, per visit, per restaurant, per server. I always tip 20% as a baseline; more for things like weather (if it's delivery) or exceptional service.
But it all depends on what you consider bad, average, or good service. If you've never worked in the...