C# vs Unityscript – Which is faster?Nov 20
I set out to find if there are any speed advantages to using C# when programming in Unity. I have for awhile kept both versions of my popular tweening engine LeanTween in C# and Unityscript, because I still thought there might be speed advantages to using Unityscript. This is a lot of work to maintain both versions, so I wanted to test my hypothesis and see whether Unityscript was actually faster. View the video below or read-on to find my results.
The performance breakdown has been performed with a new feature in FPS Graph which gives a breakdown of the performance over a certain amount of time (this new feature will be available in about a week once it gets approved). Below you can see how the performance breakdown looks:
I ran the LeanTween.js and LeanTween.cs stress test 10 times (lower scores are better) to see which one would win out.
The average of C# is 8,075ms and Unityscript is 8,142ms. So C# is a little bit ahead, but I would say it’s statistically inconclusive….