Here's a link that discusses the ergogenic benefit of caffeine. Endurance and muscle conraction improve with 250-500 mg. At higher levels it is illegal in some venues. Just don't do the grande mocha with ephedrine.
http://www.aafp.org/afp/20010301/913.html