I was a huge coffee and soda drinker in college. I once tried an all-nighter, including 1/2 of a no-doze. more than 20 years later, I still remember sitting in the library shaking, sweating, and listening to my heart pound in my ears. I got no studying done, and i finally, thankfully crashed just as the exam was starting. I don't remember taking the exam, I just remember relief that I was still alive.
I'd try something else first, gu with caffeine, for example. If you want to go that route.