Presumably in your scenario the victim remembers the torture though.
In the case of general anaesthetic the memory is effectively considered to be deleted in real time. On its way through the brain it ceases to exist so it never reaches the conscious mind.