I intentionally made an infinite loop to see how many iterations would happen. It got to a bit over 92 million iterations before TPT recognized the infinite loop and let me stop it.
I did this in console:
lol = 0
while true do lol = lol + 1 end
This was on an official TPT. Just for comparison I will try the same thing on a build with various mods.
Official build:
92 million iterations
Jacob1's mod (also ended faster):
101 million iterations.
Feynman's mod:
Stops responding every time.