protein bar vs nuts.

Currently in in training to be a jockey and gallop race horses in the mornings. About half way through my day I need a pick me up to keep me going. I'm wondering if id get more energy from a 20g protein bar or a serving of nuts? Both have about the same total of calories.

thanks
www.jessesauder.com