r/javascript • u/checksinthemail • Nov 18 '10
IE 9 preview 7 - finally beats Chrome and Mozilla in JavaScript benchmarks
http://blogs.msdn.com/b/ie/archive/2010/11/17/html5-and-real-world-site-performance-seventh-ie9-platform-preview-available-for-developers.aspx4
u/fforw Nov 18 '10
"Dead code elimination" that can be disturbed by an empty return or an inserted "true" or changing a while to a for is basically a useless gimmick.
5
u/iratefruit Nov 18 '10
I think it was finally determined that IE9 does DCE very wrong, and its not that easy to do in javascript. E.g. they assume that. a function that just does
a + band no return or assignment has no side effects.They left out the case where a or b is an object, which means valueof() is called, which can have side effects. Basically.. IE9 definitly is faster... because its not executing the code.
tl;dr I can also write a JS engine that beats everybody else. It replaces all your code with
return;
1
1
0
u/aaronstatic Nov 19 '10
that's nice, let me know when it beats them in CSS3 support
1
2
u/fforw Nov 19 '10
Personally, I wouldn't care at all about IE when they'd just got their shit together and not be the retarded one you have to spent like 40% of your development time on after implementing your stuff that ad hoc works in all other browsers with minor inconsistencies.
1
u/checksinthemail Nov 18 '10
My gripe is they didn't included the latest Google Chrome betas (9.0.576.0) in this test, and instead stuck with Chrome ver 8.0
The DCE optimizations, IMO are quite valid.