Javascript Engine Performance Comparison
1. Performance Testing
Recently, Google released the fastest web browser, which will compare firfox3.0, opera9., safari3.1, and chrome1.0 to test its JavaScript engine performance.
The first group uses sunspider. The test results are as follows:
Chrome Firefox
Opera Safari
The second test uses chrome
V8 benchmark. The test results are as follows:
Chrome Firefox
Opera Safari
Ii. Result Analysis
Group 1 Test Summary (unit: MS ):
|
Chrome |
Firefox |
Opera |
Safari |
3D |
285.2 |
945.2 |
728.4 |
1112.8 |
Access |
228.6 |
1059.6 |
953.0 |
1300.2 |
Bitops |
169.8 |
799.4 |
900.4 |
1178.0 |
Controlflow |
10.0 |
102.4 |
140.8 |
253.0 |
Crypto |
149.8 |
527.6 |
416.2 |
678.2 |
Date |
550.8 |
568.2 |
853.4 |
881.2 |
Math |
234.2 |
806.0 |
650.0 |
1287.8 |
Regexp |
664.6 |
492.2 |
897.0 |
637.4 |
String |
994.0 |
1684.4 |
1684.2 |
1803.2 |
Total |
2187.0 |
6984.0 |
7223.4 |
9131.8 |
From the table above, we can see that in addition to regular expressions processing Firefox 26% faster than chrome, all other items are the fastest. In general, Chrome's V8 engine is also the fastest, three times faster than Firefox and opera, 4 times faster than safari.
Summary of the second group of test results:
|
Chrome |
Firefox |
Opera |
Safari |
Richard |
827 |
132 |
105 |
74 |
Deltablue |
190 |
160 |
128 |
115 |
Crypto |
771 |
58 |
93 |
121 |
Raytrace |
511 |
151 |
346 |
197 |
Earleyboyer |
1962 |
136 |
645 |
305 |
Score: |
947 |
120 |
195 |
144 |
From the table above, we can see that Chrome scored the most in each item, followed by opera, but the gap between the two is very large.