it depends what the purpose of grading is. if the people is to purely assess, grading question by question is better. if the purpose is to provide feedback, knowing how the student did in general can substantially help with identifying what to emphasize