I used Firefox 1.5.0.3 and IE6 for a comparison of javascript execution efficiency (article link). I saw a reply from a netizen yesterday. I tested it again with the newly released Firefox 2.0!
The new version of Firefox uses the execution engine of JavaScript 1.7, which significantly improves the performance and compatibility. After testing on my computer, I can see that IE 6 has better performance than Firefox 2.0. ie has better performance in Division operations, mathematical functions, string processing, and array sorting!
My environment is as follows:
HW: P4 2.93 GHz, 512 M Ram, Sata HD
OS: Windows Server 2003 Standard Edition
IE: 6.0.20.0.1830; SP1;
FF: 2.0 with optimized configurations
The result of the test is:
-------------------------------------------------------
Test function IE 6 (MS) Firefox 2.0 (MS)
-------------------------------------------------------
For-loop 172 79
Add 172 188
Subtract 219 172
Muliply 187 172
Divide 329 1422 *
Divide2 251 1407 *
Get value from array 329 250
Parseint () 4084 4799 *
VaR 281 187
Math. Sin () 1533 2063 *
Math. floor () 1471 750
If 172 126
Read global variable 297 265
Concatenate string 1143 4768 *
Sort Array 47 626 *
-------------------------------------------------------
Run all testss 712 1151
We are looking forward to the release of Firefox 3.0 ~~~~!