Language Speed Test
It was about time to do the same test as I did here but for multiple languages.
Basically I'm putting calculation pressure on the languages in a for cycle.
Everything besides C# runs on an interpreter (Normal language engines might be doing It faster or even slower.)
Here Are the results:
Code (C#):var time = Util.GetUtil().TimeEpoch;
for (int i = 0; i < 750000; i++)
var num = Math.Sqrt(i);
Logger.LogWarning("Time taken: " + (time - Util.GetUtil().TimeEpoch));
Python Using the Caching Feature (IronPython)
Current Engine Speed Statistic:
C# > Python > Lua > Jint V2 > Jint V1 (Magma)
A really surprising end.
Using slow methods in Rust causes the server to lagg. Since the method is running on the first thread, and Rust doesn't support multi threading, just sub threading, reading a big file, doing hard stuffs with slower engines can cause laggs like that. Ensure that you either do something threaded, or your code is fast enough.
XenCarta PRO © Jason Axelrod from 8WAYRUN.COM