'To sum up' indicates a brief conclusion from accumulated facts. 'On the whole' means 'generally'. I cannot judge your example sentences until I see the text that precedes them.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.