Subjects were randomized to a sleep deprivation or control condition , with performance testing at baseline , after @ nights of total sleep deprivation ( or rested control ) , and following @ nights of recovery sleep .