When Macbeth says, "Better be with the dead, / Whom we, to gain our peace, have sent to peace, / Than on the torture of the mind to lie / In restless ecstasy," the context makes it clear that by "the torture" he means the torture device known as "the rack."
Image Source: Wikipedia: Torture