Featured Articles

Nvidia GTX 770 spec is out

Nvidia GTX 770 spec is out

In addition to the GK110 based Nvidia Geforce GTX 780, we managed to get some details regarding the GK104-based GTX 770…

More...
Nvidia Geforce GTX 780 detailed

Nvidia Geforce GTX 780 detailed

We managed to confirm the full spec of the upcoming Nvidia Geforce GTX 780 graphics card as well as some performance…

More...
AMD shares take rollercoaster ride

AMD shares take rollercoaster ride

In the last 52 weeks AMD was on a rollercoaster ride, with prices ranging from $1.81 to $6.46. Yesterday it closed…

More...
HIS iCooler Turbo HD 7790 reviewed

HIS iCooler Turbo HD 7790 reviewed

Today we’ll take a closer look at a factory overclocked HD 7790, courtesy of HIS. The HIS HD 7790 iCooler Turbo…

More...
Kingston DataTraveler Ultimate 3.0 Generation 3 (32GB) reviewed

Kingston DataTraveler Ultimate 3.0 Generation 3 (32GB) reviewed

High capacity USB drives have become commonplace a while ago, but although some memory outfits are peddling huge drives, up…

More...
Frontpage Slideshow | Copyright © 2006-2010 orks, a business unit of Nuevvo Webware Ltd.
Friday, 19 November 2010 10:25

Microsoft “cheats” at benchmark test

Written by Nick Farell
ie

Feature in IE allows superspeeds to be recorded
A bug in Microsoft's Internet Exploder 9 appears to have the advantage that it allows the browser to sale through the SunSpider JavaScript performance benchmark. The benchmark was devised by the developers of the WebKit browser engine, is used and quoted widely as a measure of browser scripting performance.

IE 9 did extremely well in the test and this had people scratching their heads a bit. One of them Mozilla developer, Rob Sayre, made some minor changes to the test and saw Internet Explorer 9 slow down considerably. He filed a bug against Internet Explorer.

Sayre suggested that an optimization that Internet Explorer 9's Chakra JavaScript engine was performing was fragile. It was easily disabled by minor alterations to the code that it should ignore.

Some more cynical hacks claimed that Redmond must have done it all deliberately and that Internet Explorer 9 had been designed to cheat in the test. The allegation is that Microsoft has built a specific optimisation into Chakra that detects, and bypasses, the specific code in SunSpider, but which has no other purpose.

Such things have been done before, but Ars Technica thinks that was what happened here. It thinks that the benchmark has dead code under the bonnet. This is the kind of code that can be reached and executed, but whose results are never used. Sometimes this code is ignored by a compiler.

SunSpider has a test which computes the sine and cosine of a number using a CORDIC algorithm. JavaScript contains built-in sine and cosine functionality, functionality that will be much faster than performing the computation in this way, so it is not something real programs would ever do. The test does not bother using the results that it has computed and as a result the entire test susceptible to dead code elimination.

Internet Explorer 9 accurately treats the entire test as dead code, and so removes the whole lot. This makes for a very fast benchmark result. Actually this is a good thing, as it means that IE 9 is capable of ignoring a lot of dead code. However it does boost the performance figures a bit too much.

Nick Farell

E-mail: This e-mail address is being protected from spambots. You need JavaScript enabled to view it
blog comments powered by Disqus

To be able to post comments please log-in with Disqus

 

Facebook activity

Latest Commented Articles

Recent Comments