Around wave 4 they stop bothering with the treasure and just try to avenge their fallen comrades.
At wave 7 my game was getting sluggish.
At wave 10 my browser was unhappy.
Thanks for letting me know. The game's a submission for a gamejam. I've heard these problems before, but wasn't in time to fix them anymore. Not sure if I ever will, either.