Randy Gardner is who has gone the longest without sleep.
Randy Gardner stayed awake for 11 days and 25 minutes in 1963.
Randy Gardner was a 17 year old high school student at the time and was participating in a science fair project.
However it's not good to stay awake other than during the day or when you're supposed to be awake.
You should always go to sleep and try to get plenty of sleep which is very essential for your health.
The body will eventually force you to sleep if you are sleep deprived.
Even if you try to stay awake, the brain will eventually enter what is called microsleeps which are brief periods of sleep that last only seconds to compensate for the lack of sleep.
Eventually these microsleeps will become more frequent and prolonged until you fall into a deeper sleep.
As you remain awake, the pressure called sleep pressure builds up and the pressure is a result of the accumulation of a substance called adenosine in the brain.
When your sleep pressure becomes too high, the brain will involuntarily slip into microsleeps, even if you're trying to stay awake.
As sleep deprivation continues, then your cognitive and physical functions will decline and make it increasingly difficult to stay awake.
Eventually, the need to sleep becomes so strong that the brain will essentially force you to sleep, even if you resist the sleep.