Simulation rate gap between version 4.1 and 2023.1.1

Same scene, robot, code. Why is there such a big rate gap?
4.1.0:


2023.1.1:

What should I look for to improve my simulation rate?

By the way, it seems that the 4.1 rate is not stable either