r/javascript • • 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.aspx
0 Upvotes

9 comments sorted by

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.

2

u/checksinthemail Nov 19 '10

I should clarify - Their DCE optimizations are buggy, but the concept of DCE optimization is valid and CAN work... just not yet :)

4

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 + b and 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

u/Lerc Nov 18 '10

I won't be running it, but this is still a good thing.

1

u/yonkeltron Nov 18 '10

It was revealed that they might actually be cheating.

0

u/aaronstatic Nov 19 '10

that's nice, let me know when it beats them in CSS3 support

1

u/checksinthemail Nov 20 '10

maybe you want to head over to /r/css - this group is about JavaScript

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.