Is there a performance difference between Unity’s Javascript and C#?

My 3D game run in android device.
Is there a performance difference between writing code in Unity’s Javascript and C# ? Which languagle will faster in runtime ?

Use C#.

There is very little if any difference cause all is compiled to .NET CIL / platform native code (iOS), there is no scripting support that would be VM executed later on.

But C# can potentially yield in higher optimization possibilities cause it does not hide away what it really has to do and so you are not left in the dark when something isn’t working the way you would like it to

So C# is faster than Javascript.

I’m not sure if that’s the implication exactly. I think the point is more that because UnityScript does more work for you under the hood than C#, there may be ‘hidden’ costs associated with UnityScript that you might miss if you’re not knowledgeable about how the language works. (At least that’s how I interpreted dreamora’s post.)

See this thread:

http://forum.unity3d.com/viewtopic.php?t=31588

There was a thread a long while back where Aras explained that the difference between performance between the two was negligible for the reason that Dreamora explained.

kagura, choose the language that you are most comfortable using. The quality and efficiency of your program logic will be the driving force behind the performance of your game.

I have found the answer.
Thanks all ^.^

so if you made some mesh generating code that calculates vertexes in realtime, both would be as fast?

Yes.

–Eric

When people ask this question, I refer them to this slide show by Johnathan Blow, creator of The Witness and of Braid:

http://www.myplick.com/view/7CRyJCWLM71

essentially, 95% of the code you write isn’t performance sensitive. If you want to put your game out there, don’t worry about optimizations and actually get it done.

The difference in speed would be negligible in a best case scenario. In a worst case scenario, C# can outperform UnityScript. But it’ll be a rare occurrence for a newer Android device model to be at a worst case scenario run anyway.