Wednesday, April 26, 2006

Compiled Java vs. Compiled/Interpreted JS on Mustang


ONJava.com: The Mustang Meets the Rhino: Scripting in Java 6:
Just as a rough test, I ran the above script 10,000 times, along with the equivalent Java code shown above. I obtained the following cumulative results:
Interpreted JS: 1,550ms
Compiled JS: 579ms
Compiled Java: 0.0172ms


Thats a huge difference. I always knew this, but looking at the actual numbers is surprisingly shocking. I wonder what the results would be like compairing python and c code. Ofcourse Mustang is beta, the numbers might improve.

I wonder how non-Java scripting pages, such as those written in PHP, would perform?

Tags: ,

Mozilla and hypocrisy

Right, but what about the experiences that Mozilla chooses to default for users like switching to  Yahoo and making that the default upon ...