How many calculations can roblox perform per .Stepped on server side?

I am testing out many different ways to create reliable engine for tower defense game, and I am curious how many calculations (calculating magnitude between points and other stuff) can roblox perform per .Stepped event on server side without having noticable ping increase?

.Stepped means game:GetService(“RunService”).Stepped

The Stepped event fires every frame prior to the physics simulation. If the game is running at 40 FPS, then Stepped will fire 40 times per second.

It’s hard to say. All useful calculations are actually made up of many many smaller calculations, and the exact number will depend on the type of calculation and also the input data that is being worked on.

If you want to know how long e.g. a specific function call or an iteration in a loop takes, you can use the microprofiler to visualize the time taken between calls to debug.profilebegin and debug.profileend. Try searching for those terms, there’s a bit of information out there but unfortunately the microprofiler doesn’t have great documentation