How fast is Javascript compared to Java?
<p>Are there any tests that compare Javascript's performance with Java's?</p>

<p>UPDATE: Since everyone is asking why the hell this question, here is some context :)</p>

<p>As you all know - I hope - Javascript nowadays doesn't only reside in the web client but also in the web server with node.js.</p>

<p>It could also be run in mobile phones and dekstops with appcelerator and phonegap.</p>

<p>It could also be used substantially in the web browser to make the user experience first class like with desktop applications.</p>

<p>But Java could do these things too, running applets on the web client, and on mobile phones. It's also a language for the backend with many frameworks to choose between.</p>

<p>Since each one of them could almost/entirely replace each other in the mentioned area, I want to know the performance difference between them, for every case I described:</p>

<ul>
<li>Client: Java Applets vs Javascript</li>
<li>Server: Java EE vs Javascript with Node.js + Express</li>
<li>Mobile phones: Java ME vs Javascript with Phonegap / Appcelerator</li>
<li>Desktop: Java SE vs Javascript with Phonegap / Appcelerator</li>
</ul>

<p>I hope the context is more clear now.</p>
