Comparison of the performance of Firefox 2.0 and Internet Explorer 6 in JavaScript execution!

Source: Internet
Author: User
Tags mathematical functions

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 ~~~~!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.