Status: New
Owner: ----
New issue 177 by [email protected]: Speed congratulations
http://code.google.com/p/v8/issues/detail?id=177
I have adapted a simple test code containing loop, math and dynamic memory
allocation for Javascript.
These are the test results:
IE 8, Beta 2 70 Seconds (about double as fast as IE 7)
Lunascape5 64 Seconds (Alpha Version 5.0 alpha3)
Firefox 3.0.1 32 Seconds
Firefox 3.1b1 27 Seconds (TraceMonkey JIT-Engine activated)
Safari 3.1.2 32 Seconds
Opera 9.61 27 Seconds
Chrome Release 3.6 Seconds
E.g. Chrome is many times faster than the competition.
function SpeedTest()
{
var i, s, startTime, endTime, nRes;
startTime = new Date();
i = 0;
do
{
s = String.fromCharCode(i);
s += "Hello world";
} while(!( ++i > 255*255*255));
endTime = new Date();
nRes = endTime.getTime() - startTime.getTime();
return nRes;
}
We are using a script engine for our 3D online world.
http://www.moove.com/doors.txt
This engine needs 1.2 seconds for the same test. That means there is still
room to make Javascript about three times faster.
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---