Lies, damned lies, and benchmarks: is IE9 cheating at SunSpider?

JMH

Banned
The SunSpider JavaScript performance benchmark, devised by the developers of the WebKit browser engine, is used and quoted widely as a measure of browser scripting performance. A surprising result was recently noticed by a Mozilla developer, Rob Sayre, looking at Internet Explorer 9's performance in this test. On one of the many subtests it performs, Internet Explorer 9 was finishing the subtest almost instantly.

In and of itself, that's not necessarily very interesting; several of the subtests in SunSpider are near-instant in the browser. However, it piqued the developer's curiosity. He made some minor changes to the test—changes that don't alter the result of the calculation the test performs and that, naively at least, should be treated as equivalent—and saw Internet Explorer 9 slow down considerably. He filed a bug against Internet Explorer.

Sayre's bug report was conservative—he suggested that an optimization that Internet Explorer 9's Chakra JavaScript engine was performing was fragile, and was easily disabled by minor alterations to the code that it should disregard. Coverage earlier today of the same issue was less guarded: Internet Explorer 9 was accused of cheating in the test. The allegation is that Microsoft has built a specific optimization into Chakra that detects, and bypasses, the specific code in SunSpider, but which has no other purpose. In other words, the optimization will not do anything to improve the browser's performance in any other scenario.
Lies, damned lies, and benchmarks: is IE9 cheating at SunSpider?
 

My Computer

Computer Manufacturer/Model Number
LAPTOP. HP Pavilion dv7-4010TX .
OS
Win 7 Ultimate 64-bit. SP1.
CPU
Intel i7 -720QM.[1.6GHz Turbo Boost 2.8GHz. 6MB Cache.]
Memory
8 DDR 3 RAM. 1066MHZ
Graphics Card(s)
ATI 1024 MB. DDR3. Radeon HD5650
Monitor(s) Displays
17.3" High Definition Brightview LCD. LED Backlit.
Screen Resolution
1600 x 900.
Hard Drives
640GB
Case
Laptop / notebook.
Mouse
Logitech Anywhere mouse. MX.
Internet Speed
ADSL [ but too slow ]
I've read about this a couple of days ago. Microsoft isn't really cheating. JavaScript engine in IE9 is just a bit more intelligent, in that it can detect useless code and skip executing it. It's called dead code optimization and the article explains it. In IE9's case, the JavaScript engine has been optimized to do very well in the SunSpider JavaScript benchmarks.

The real question here is that since it is clearly shown that a browser can be tweaked to do well in certain benchmarks, how reliable are benchmarks?
 

My Computer

OS
Windows 7 Professional x64
CPU
AMD A8-3870K
Motherboard
ECS A75F-M2
Memory
8GB DDR3
Graphics Card(s)
Radeon HD 6550D, Radeon HD 5850
Hard Drives
1TB
PSU
750W
I use real situations for testing, and such testing has shown Google Chrome to be the fastest for the sites I visit.
 

My Computer

Computer Manufacturer/Model Number
iBuyPower Chimera X58
OS
Windows 8 Pro x64
CPU
Intel Core i7 920
Motherboard
Asus P6T Deluxe V2
Memory
12GB (2GB x6) Triple Channel DDR3 1333 MHz
Graphics Card(s)
ATI Radeon HD 4870 X2 2GB GDDR5
Sound Card
Integrated Digital HD 7.1 Surround Sound
Monitor(s) Displays
24.6-inch ASUS VW246H 20000:1 Contrast, 2 ms response time,
Screen Resolution
1920x1080
Hard Drives
1 TB 7200 RPM SATA II 3 GBps 16MB cache
PSU
NZXT 800W Gaming Series
Case
Guardian Inferno (Custom Painted NZXT Guardian 921)
Cooling
Thermaltake V1 Fan Cooling System OC Proof
Keyboard
Razer Lycosa
Mouse
iBuyPower Ergonomical Internet Mouse
Internet Speed
11 MBps High-speed Cable
Who really cares? This is just plain silly. Oh Teacher, Steve is cheating again. As if no one else does it. Oh darn, but Google doesn't, and I heard that Apple is always telling the truth.

Get over it, they all have their own way of testing; this helps them look good in the eyes of those who are not technically inclined. Beside once someone has chosen a application or browser it is what they have a tendency to stay with.
 

My Computer

Computer Manufacturer/Model Number
HP Pavilion a4302f
OS
Win 7 Pro x64, VM Win XP, Win7 Pro Sandbox, Kubuntu 11
CPU
AMD Athlon(tm) II X4 640 @ 3.0 Gbz
Memory
12GB 1066MHz DDR3 SDRAM - 2x4GB, 2x2GB
Graphics Card(s)
ATI Radeon HD 4350 HD Graphics/Audio with 512MB
Sound Card
Realtek High Definition Audio
Monitor(s) Displays
1. Dell 23" SP2307, 2. Mitsublishi 40" HDTV, Hannspree 25"
Screen Resolution
1. 2048x1152, 2. 1920-1080, 3. 1920x1200
Hard Drives
Int: 1 120 Gig SSD i
1 - 2.5" 500 USB External HDD
1 -1 Tb USB External HDD
Case
Mid Tower
Cooling
Standard Fans - 5 fans (very quiet)
Keyboard
Microsoft Wireless 2000
Mouse
Microsoft Wireless Mouse 5000
Internet Speed
10 Mbit (realistically 500 Kbit - 1.2 Mbit)
Other Info
Speakers - Bose Desktop (Excellent Sound)
1 external CD|DVD\Blue-ray Recorders/Players (Sony)
Video cards did (and still do) optimize for benchmark tests. They're playing the same old song. It's not that big of a deal with browsers, as no expense is laid out. It's rougher with video cards, as you buy it, you own it.
 

My Computer

Computer Manufacturer/Model Number
Dell and Custom
OS
Systems 1 and 2: Windows 7 Enterprise x64, Win 8 Developer
CPU
System 1: i7 [email protected], System 2: AMD FX-4100 Zambezi 3.6G
Motherboard
System 1:Dell 06NWYK System 2: ASUS M5A97 AM3+
Memory
System 1: 8GB System 2: 8GB
Graphics Card(s)
System 1: ATI FirePro V4800 System 2: Radeon HD 6850
Sound Card
System 1: onboard System 2: onboard
Monitor(s) Displays
System1: Viewsonic HDMI 24"
Screen Resolution
System 1: 1920x1080 System 2: 1920x1080
Hard Drives
System 1: Mirrored .5B drives System 2: Seagate Barracuda ST1000DM003 1TB 7200 RPM 64MB Cache SATA 6.0Gb/s
Case
System 1: Dell System 2: Cooler Master
Internet Speed
10 MBPS
Who really cares? This is just plain silly. Oh Teacher, Steve is cheating again. As if no one else does it. Oh darn, but Google doesn't, and I heard that Apple is always telling the truth.

Get over it, they all have their own way of testing; this helps them look good in the eyes of those who are not technically inclined. Beside once someone has chosen a application or browser it is what they have a tendency to stay with.

Exactly
 

My Computer

Computer Manufacturer/Model Number
Dell Optiplex 980
OS
Win7 x64 Ultimate SP1
CPU
Intel i7-2600
Memory
8 Gig
Graphics Card(s)
Geforce gt 520
Monitor(s) Displays
LG & Acer
Screen Resolution
1920x1080
Internet Speed
Fios 45/35
Other Info
Windows Home Server
Who really cares? This is just plain silly. Oh Teacher, Steve is cheating again. As if no one else does it. Oh darn, but Google doesn't, and I heard that Apple is always telling the truth.

Get over it, they all have their own way of testing; this helps them look good in the eyes of those who are not technically inclined. Beside once someone has chosen a application or browser it is what they have a tendency to stay with.

Exactly

We do tend to fall in love with our browsers. And, speaking as one, I like to see it do well in the benchmarks. If it becomes painfully obvious it is lacking, I would consider switching. Different browsers, different search engines, different platforms. Ain't computing great! :)
 

My Computer

Computer Manufacturer/Model Number
Dell and Custom
OS
Systems 1 and 2: Windows 7 Enterprise x64, Win 8 Developer
CPU
System 1: i7 [email protected], System 2: AMD FX-4100 Zambezi 3.6G
Motherboard
System 1:Dell 06NWYK System 2: ASUS M5A97 AM3+
Memory
System 1: 8GB System 2: 8GB
Graphics Card(s)
System 1: ATI FirePro V4800 System 2: Radeon HD 6850
Sound Card
System 1: onboard System 2: onboard
Monitor(s) Displays
System1: Viewsonic HDMI 24"
Screen Resolution
System 1: 1920x1080 System 2: 1920x1080
Hard Drives
System 1: Mirrored .5B drives System 2: Seagate Barracuda ST1000DM003 1TB 7200 RPM 64MB Cache SATA 6.0Gb/s
Case
System 1: Dell System 2: Cooler Master
Internet Speed
10 MBPS
when what's important is not measurable, what's measurable becomes important.

they all lie.
 

My Computer

Computer Manufacturer/Model Number
mickey megabyte 1234
OS
ultimate 64 sp1
CPU
i5 2500K [email protected]
Motherboard
MSI P67A-GD53
Memory
8 gigs GSkill Ripjaws 1600
Graphics Card(s)
amd hd6950
Sound Card
creative x-fi gamer
Monitor(s) Displays
samsung 24"
Screen Resolution
1920x1080
Hard Drives
ocz vertex 2e 60 gig, samsung f3 1tb, buffalo 2tb ext
PSU
antec 550
Case
antec three hundred
Cooling
i'm a cooling fan
Keyboard
saitek eclipse ii
Mouse
logitech g3
Internet Speed
about 4 Mbps
Other Info
i love win7
Lies, damned lies, and benchmarks

This says it all.
 

My Computer

Computer Manufacturer/Model Number
Dell Optiplex 980
OS
Win7 x64 Ultimate SP1
CPU
Intel i7-2600
Memory
8 Gig
Graphics Card(s)
Geforce gt 520
Monitor(s) Displays
LG & Acer
Screen Resolution
1920x1080
Internet Speed
Fios 45/35
Other Info
Windows Home Server
"He made some minor changes to the test—changes that don't alter the result of the calculation the test performs and that, naively at least, should be treated as equivalent—and saw Internet Explorer 9 slow down considerably."

when you change the conditions, doesnt that change the results?

Im surprised that dev didnt run his changes against firefox, the article just says ie9's results "slow down considerably", what about other browsers?
 
"He made some minor changes to the test—changes that don't alter the result of the calculation the test performs and that, naively at least, should be treated as equivalent—and saw Internet Explorer 9 slow down considerably."

when you change the conditions, doesnt that change the results?

Im surprised that dev didnt run his changes against firefox, the article just says ie9's results "slow down considerably", what about other browsers?
The changes were IE specific though, because only IE had this particular coding.

~Lordbob
 

My Computer

Computer Manufacturer/Model Number
Hera
OS
Windows 7 Ultimate x64, Mint 9
CPU
Intel i5-2500k
Motherboard
ASUS P8P67 Pro
Memory
2x 4Gb Corsair VENGEANCE DDR3-1600
Graphics Card(s)
NVidia GeForce N260GTX Twin Frozr
Sound Card
Realtek HD OnBoard Audio
Monitor(s) Displays
ASUS 24" Monitor
Screen Resolution
1920x1080
Hard Drives
G.SKILL Phoenix Series 60GB SATA II MLC Internal Solid State Drive (SSD)
SAMSUNG Spinpoint F3R 1TB 7200 RPM 32MB Cache SATA II
PSU
Cooler Master Real Power Pro 750W
Case
Cooler Master Haf 932
Cooling
Fans
Keyboard
Razer Tarantula
Mouse
Razer Lachesis
Internet Speed
not fast enough
Back
Top