Not sure I understand the evil question.
First, I could not find the word torture in the Bible. I found torment and tormented G929 G928 G931 G939. And I understand this as spiritual, but then that is my understanding. And I also find that torment,
in the that sense, is a far greater pain than the physical. But then we read in Isa. 53:10 "YET it PLEASED Jehovah to bruise him.....
Isa 53:10 Yet it pleased Jehovah to bruise him; he hath put him to grief: when thou shalt make his soul an offering for sin, he shall see his seed, he shall prolong his days, and the pleasure of Jehovah shall prosper in his hand.
Pleased H2654 delight, desire, favour, like, move, be (well) pleased, have pleasure, will, would.
Bruise H1792 beat to pieces, break (in pieces), bruise, contrite, crush, destroy, humble, oppress, smite.
Heb 12:5 And ye have forgotten the exhortation which speaketh unto you as unto children, My son, despise not thou the chastening of the Lord, nor faint when thou art rebuked of him:
Heb 12:6 For whom the Lord loveth he chasteneth, and scourgeth every son whom he receiveth.
Heb 12:7 If ye endure chastening, God dealeth with you as with sons; for what son is he whom the father chasteneth not?
Heb 12:8 But if ye be without chastisement, whereof all are partakers, then are ye bastards, and not sons.
Heb 12:9 Furthermore we have had fathers of our flesh which corrected us, and we gave them reverence: shall we not much rather be in subjection unto the Father of spirits, and live?
Heb 12:10 For they verily for a few days chastened us after their own pleasure; but he for our profit, that we might be partakers of his holiness.
Heb 12:11 Now no chastening for the present seemeth to be joyous, but grievous: nevertheless afterward it yieldeth the peaceable fruit of righteousness unto them which are exercised thereby.
Scourgeth G3146 to flog (literally or figuratively from G3148 (through the idea of contact); a whip (literally the Roman flagellum for criminals; figuratively a disease): - plague, scourging.