Advances in JavaScript Performance in IE10 and Windows 8

Thursday, May 31, 2012, we delivered the Windows 8 Release Preview and the Sixth IE10 Platform Preview. Windows 8 includes one HTML5 browsing engine that powers both browsing experiences (Metro style and desktop) as well as Metrostyle applications that use HTML5 and JavaScript. The release preview represents a major revision of the same modern JavaScript engine, Chakra, which first debutedwith IE9. With each platform preview we make progress against our goals to create an engine that delivers great performance on the Web while ensuring that it ishighly compatible, interoperable, and secure. This post will explore how the JavaScript engine has been enhanced to deliver great performance for emerging Web applicationscenarios.

Performance for Real Web Applications

Web applications have been evolving rapidly in recent years. A decade ago the Web consisted primarily of Web sites with static content, like what you may encounterin a blog, a small business landingpage, or on Wikipedia. The emergence of AJAX helped spawn more complex and interactive sites like what you see on Facebook or JetSetter. Subsequent advances in performance allowed for large and complex applications to be created,such as Office 365, Bing Maps, etc. Most recently, the expansion of the W3C standard APIs, gains in JavaScript performance,and hardware accelerated graphics made building even sophisticated games on the Web possible, for example, Angry Birds, Pirates Love Daisies,Cut The Rope, etc.

Diagram showing spectrum of Web pages and their performance characteristics. On the left are Basic Web Pages where Page Load Time is the driving performance goal. On the right are Web Applications, HTML5 Games, and Windows 8 Metro style apps where JavaScript Execution Speed, DOM Interactions, and Accelerated graphics have the biggest impact on performance.

As applications evolve, the performance factors affecting user experience change. For traditional Web sites, initial page load determines how quickly the user cansee the content. Interactive Web sites and large Web applications may be gated by the efficiency of DOM operations, CSS processing, and manipulation of large internalstate in memory. HTML5 games often depend on fast canvas rendering, JavaScript execution and efficient garbage collection. In short, browser performance is a complexproblem, which requires taking into account the needs of a broad spectrum of diverse applications.

In this post we fill focus on performance of only one browser subsystem, the JavaScript engine. With recent gains in JavaScript performance, for many Web applicationsJavaScript execution is no longer a limiting factor. On the other hand, as performance increases, new scenarios emerge that place additional demands on the JavaScriptengine. We continually look for opportunities to evolve Chakra to match performance requirements of real JavaScript-intensive applications.

Two dimension chart showing screen shots of various sites plotted on two axis: Use of Other Browser Components (Y) and JavaScript Execution (X). Content sites are illustrated in the lower left (least use of other browser components and least use of JavaScript). Graphics-intensive games such as Angry Birds are show in the top right quadrant.
Dimensions of Web Application Performance

Internals of Chakra

From its inception in IE9, the Chakra JavaScript engine was designed around two guiding principles, which remain equally important in IE10:

  • Minimize the amount of work on the critical path for the user experience. This involves deferring as much work as possible until absolutely necessary, avoidingwork altogether, making use of periods of inactivity, and parallelizing work to minimize impact on the responsiveness of the application.
  • Take advantage of all available hardware. This translates to utilizing all available CPU cores, as well as generating advanced specialized CPU instructions, for example, Intel’s SSE2, if available.

Diagram illustrating the Chakra JavaScript engine's use of two processor cores.
Chakra’s Parallel Architecture

Chakra, though only one of the browser subsystems – is itself comprised of several components which work together to process and execute JavaScript code. When thebrowser downloads a JavaScript file it hands its content over to Chakra’s parser to verify its syntactical correctness. This is the only operation that appliesto the entire file. Subsequent steps are performed individually on each function (including the global function). As a function is about to be executed (the globalfunction is run immediately after parsing) Chakra’s parser builds an abstract syntax tree (AST) representation of the code, and hands it off to the bytecode generator,which produces an intermediate form (bytecode) suitable for execution by the interpreter (but not directly by the CPU). Both the AST and the function bytecode arepreserved so they don’t need to be recreated on subsequent executions. The interpreter is then invoked to run the function. As the interpreter executes individualoperations it collects information (a profile) about the types of inputs it encounters and keeps track of how many times the function was called.

As the number of calls reaches certain threshold, the interpreter queues the function up for compilation. Unlike in other browsers, Chakra’s just-in-time (JIT)compiler runs on a separate dedicated thread and thus does not interfere with script execution. The sole job of the compiler is to generate optimized machine instructionsfor each function in the compilation queue. Once a function is compiled, the availability of the machine code is signaled to the main script thread. Upon the nextinvocation, the entry point to the function is redirected to the newly compiled machine code and execution proceeds directly on the CPU. It’s important to note thatfunctions that are called only once or twice never actually get compiled, which saves time and resources.

JavaScript is a managed runtime in that memory management is hidden from the developer and performed by an automatic garbage collector, which runs periodicallyto clean up any objects that are no longer in use. Chakra employs a conservative, quasi-generational, mark and sweep, garbage collector that does most of its workconcurrently on a dedicated thread to minimize script execution pauses that would interrupt the user experience.

This architecture allows Chakra to start executing JavaScript code almost immediately during page load. On the other hand, during periods of intense JavaScriptactivity, Chakra can parallelize work and saturate up to three CPU cores by running script, compiling and collecting garbage at the same time.

Fast Page Load Time

Even relatively static Web sites tend to use JavaScript for interactivity, advertising, or social sharing. In fact, the volume of JavaScript included in Alexa’s top 1 million pages has been steadily increasing, as reported by Steve Souders’ HTTP Archive.

Chart showing volume of JavaScript in Alexa’s Top 1 Million Pages
Volume of JavaScript in Alexa’s Top 1 MillionPages

The JavaScript code included in these Web sites must be processed by the browser’s JavaScript engine and the global function of each script file must be executedbefore the content can be fully rendered. Consequently, it is crucial that the amount of work performed on this critical path be minimized. Chakra’s parser andbytecode interpreter were designed with this objective in mind.

Bytecode Interpreter. JavaScript code executed during page load often performs initialization and setup that is executed only once. To minimize the overallpage load time it is imperative to start executing this code immediately – without waiting for a just-in-time compiler to process the code and emit machine instructions.The interpreter starts running JavaScript code as soon as it is translated into bytecode. To further reduce the time to first executed instruction, Chakra processesand emits bytecode only for functions that are about to be executed using a mechanism called deferred parsing.

Deferred Parsing. Chart showing the fraction of code executed in 11 popular Web sites. The amount ranges from a little over 30% to a little over 50%.The JSMeter project from Microsoft Research showed that typical Web pages use only a fractionof code that they download – generally on the order of 40-50% (see chart to right). Intuitively, this makes sense: developers often include popular JavaScript libraries like jQuery or dojo or custom ones like those used in Office 365, but only leverage a fraction of the functionality thelibrary supports.

To optimize such scenarios, Chakra performs only the most basic syntax-only parsing of the source code. The rest of the work (building the abstract syntax treeand generating bytecode) is performed one function at a time only when the function is about to be invoked. This strategy not only helps with the responsivenessof the browser when loading Web pages, but also reduces the memory footprint.

In IE9 there was one limitation of Chakra’s deferred parsing. Functions nested inside other functions had to be parsed immediately with their enclosing functions.This restriction proved important because many JavaScript libraries employ the so called “modulepattern,” in which most of the library’s code is enclosed in a large function which is immediately executed. In IE10 we removed this restriction and Chakranow defers parsing and bytecode generation of any function that is not immediately executed.

Performance Improvements for JavaScript-Intensive Applications

In IE10, as in IE9 before, we strive to improve the performance of real Web applications. However, Web applications depend on JavaScript performance to a varyingdegree. To discuss the enhancements in IE10 it’s most useful to focus on those applications which are JavaScript-intensive; where improvements in Chakra yield substantialperformance gains. An important class of JavaScript-intensive applications includes HTML5 games and simulations.

At the onset of IE10 we analyzed a sample of popular JavaScript games (for example, Angry Birds, Cut the Rope, or Tankworld) and simulations (for example, FishIE Tank, HTML5 Fish Bowl, Ball Pool, Particle System) to understand what performance improvements wouldhave the most significant impact on the user experience. Our analysis revealed a number of common characteristics and coding patterns. All of the applications are drivenby a high frequency timer callback. Most of them use canvas for rendering, but some rely on animating DOM elements, and some use a combination of the two. In mostapplications at least portions of the code are written in the object oriented style – either in application code or in included libraries (for example, Box2d.js). Short functions are common, as are frequent property reads and writes, and polymorphism. All of the applications perform floating point arithmeticand many allocate a fair amount of memory putting pressure on the garbage collector. These common patterns became the focus of our performance work in IE10. Thefollowing sections describe the changes we’ve made in response.

Just-in-Time Compiler – Reconsidered and Improved

IE10 includes substantial improvements to Chakra’s JIT compiler. We added support for two additional processor architectures: x64 and ARM. That’s why, whether yourJavaScript application is experienced by the user on a 64-bit PC or an ARM-based tablet, it enjoys the benefits of executing directly on the CPU.

We also changed the fundamental approach to generating machine code. JavaScript is a very dynamic language, which limits how much a compiler can know when generatingcode. For example, when compiling the function below, the compiler doesn’t know the shape (property layout) of the objects involved or types of their properties.

function compute(v, w) {

return v.x + w.y;


In IE9 Chakra’s compiler generated code that located every property at runtime and handled all plausible operations (in the example above: integer addition, floatingpoint addition, or even string concatenation). Some of these operations were handled directly in machine code, while others required help from Chakra’s runtime.

In IE10, the JIT compiler generates profile-based, type-specialized machine code. In other words, it generates machine code that is tailored to objects of a particularshape and values of a particular type. To emit the right code the compiler needs to know what types of input values to expect. Because JavaScript is a dynamic language,this information is not available in the source code. We enhanced Chakra’s interpreter to collect it at runtime, a technique we call dynamic profiling. When a functionis scheduled for JIT compilation, the compiler examines the runtime profile gathered by the interpreter and emits code tailored to the expected inputs.

The interpreter gathers information for the runs it observes, but it’s possible that the execution of the program will lead to runtime values which violate assumptions made in the generated optimized code. For every assumption it makes, the compiler emits a runtime check. If a later execution results in an unexpected value, the check fails, execution bails out of the specialized machine code, and is continued in the interpreter. The reason for bailout (the failed check) is recorded, additional profile information is collected by the interpreter, and the function is recompiled with different assumptions. Bailout and re-compilation are two fundamentally new capabilitiesin IE10.

The net effect is that Chakra’s IE10 compiler generates fewer machine instructions for your code, reducing the overall memory footprint and speeding up execution.This particularly impacts apps with floating point arithmetic and object property access, like the HTML5 games and simulations we previously discussed.

If you write JavaScript code in the object oriented style, your code will also benefit from Chakra’s support for function inlining. Object oriented code commonlycontains a large proportion of relatively small methods, for which the overhead of the function call is significant compared to the execution time of the function.Function inlining allows Chakra to reduce this overhead, but more importantly it greatly expands the scope of other traditional compiler optimizations, such asloop invariant code motion or copy propagation.

Faster Floating Point Arithmetic

Most JavaScript programs perform some amount of integer arithmetic. As the example below illustrates, even in programs that don’t focus primarily on arithmetic,integer values are commonly used as iteration variables in loops or as indices into arrays.

function findString(s, a) {

for (var i = 0, al = a.length; i < al; i++) {

if (a[i] == s) return i;


return -1;


Floating point math, on the other hand, is typically restricted to certain classes of applications such as games, simulations, sound, image or video processing,etc. Historically, few such applications were written in JavaScript, but recent advances in browser performance have made JavaScript implementations viable. InIE9 we optimized Chakra for the more common integer operations. In IE10 we dramatically improved floating point math.

function compute(a, b, c, d) {

return (a + b) * (c − d);


Given a simple function above a JavaScript compiler cannot determine the types of arguments a, b, c and d from the source code. The IE9 compiler would assume thatthe arguments were likely to be integer numbers and generate fast integer machine instructions. This worked very well if during execution the arguments were, indeed,integers. If floating point numbers were used instead, the code had to rely on much slower helper functions in Chakra’s runtime. The overhead of function callswas further exacerbated by boxing and unboxing of intermediate values on the heap (in most 32-bit JavaScript engines, including Chakra, individual floating pointvalues must be allocated on the heap). In the expression above the result of each operation required a heap allocation, followed by storing the value on the heap,and then retrieval of the value from the heap for the next operation.

In IE10, the compiler takes advantage of the profile information collected by the interpreter to generate dramatically faster floating point code. In the exampleabove, if the profile indicates that all arguments are likely to be floating point numbers, the compiler will emit floating point machine instructions. The entireexpression will be computed in just three machine instructions (assuming all arguments are already in registers), all intermediate values will be stored in registers,and only one heap allocation will be required to return the final result.

For floating point intensive applications this is a massive performance gain. Experiments show that in IE10 floating point operations execute about 50% faster thanin IE9. In addition, the reduced rate of memory allocation means fewer garbage collections.

Faster Objects and Property Access

JavaScript objects are a convenient and broadly used mechanism for grouping logically related sets of values. Whether you’re using JavaScript objects in a structuredobject oriented programming style or merely as flexible packaging for values, your code will greatly benefit from the improvements in object allocation and propertyaccess performance added in IE10.

As mentioned earlier, efficient property access is complicated in JavaScript because the shape of an object isn’t known during compilation. JavaScript objects canbe created ad hoc without a predefined type or class. New properties can be added to (or even removed from) objects on the fly and in any order. As a result, whencompiling the following method, the compiler doesn’t know where to find the values of properties x, y, and z on the Vector object.

Vector.prototype.magnitude = function() {

return Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z);


In IE9 we introduced inline caches which greatly speed up access to properties. Inline caches remember the shape of the object and the location in the object’smemory where a given property can be found. Inline caches can remember only one object shape and work well if all objects a function works with are of the sameshape. In IE10 we added a secondary caching mechanism which improves performance of code operating on objects of different shapes (polymorphic).

Before a property value can be read the compiler must verify that the object’s shape matches that stored in the inline cache. To do that, in IE9, the compilergenerates a runtime shape check before every property access. Because programs often read or write multiple properties of the same object in close succession (asin the example below), all these checks add overhead.

function collide(b1, b2) {

var dx = b1.x - b2.x;

var dy = b1.y - b2.y;

var dvx = b1.vx - b2.vx;

var dvy = b1.vy - b2.vy;

var distanceSquare = (dx * dx + dy * dy) || 1.0;



In IE10, Chakra generates code tailored to the expected object shape. Through careful symbol tracking combined with bailout and re-compilation capabilities thenew compiler dramatically reduces the number of runtime shape checks performed. In the example above, instead of 8 separate shape checks, only 2 are done, one eachfor b1 and b2. In addition, once the shape of an object has been established, all property locations are known, and read or write operations are as efficient asin C++.

In ECMAScript 5 objects may contain a new kind of properties, called accessor properties. Accessor properties differ from traditional data properties in that customget and set functions are invoked to handle the read and write operations. Accessor properties are a convenient mechanism for adding data encapsulation, computedproperties, data validation, or change notification. Chakra’s internal type system and inline caches were designed to accommodate accessor properties and facilitateefficient reading and writing of their values.

If you write an HTML5 game or animation, you often need a physics engine which performs computation required to produce realistic movement of objects under theforce of gravity, simulate collisions, etc. For very simple physics, you may build your own engine, but for a more complex requirements, you would typically useone of the popular physics libraries now available in JavaScript, such as Box2d.js (ported from Box2d). These libraries often use small objects, such as Point, Vector or Color. On every animation frame a large number of these objects are created andpromptly discarded. Therefore, it’s important that the JavaScript runtime create objects efficiently.

var Vector = function(x, y, z) {

this.x = x;

this.y = y;

this.z = z;



Vector.prototype = {


normalize : function() {

var m = Math.sqrt((this.x * this.x) + (this.y * this.y) + (this.z * this.z));

return new Vector(this.x / m, this.y / m, this.z / m);



add : function(v, w) {

return new Vector(w.x + v.x, w.y + v.y, w.z + v.z);



cross : function(v, w) {

return new Vector(-v.z * w.y + v.y * w.z, v.z * w.x - v.x * w.z, -v.y * w.x + v.x * w.y);




In IE10, the internal layout of JavaScript objects is optimized to streamline object creation. In IE9 every object consisted of a fixed-size header and an expandableproperty array. The latter is necessary to accommodate additional properties that may be added after the object has been created. Not all JavaScript applicationsexploit this flexibility, and objects often receive most of their properties at construction. This trait allows Chakra to allocate most of the properties for suchobjects directly with the header, which results in only one memory allocation (instead of two) for every newly created object. This change also reduces the numberof memory dereferences required to read or write the object’s property, and improves register utilization. Improved object layout and fewer runtime shape checksresult in up to 50% faster property access.

Garbage Collection Enhancements

As discussed above, HTML5 games and animations often create and discard objects at a very high rate. JavaScript programs don’t explicitly destroy discarded objectsand reclaim memory. Instead, they rely on the engine’s garbage collector to periodically reclaim memory occupied by unused objects to make room for new ones. Automaticgarbage collection makes programming easier, but typically requires JavaScript execution to pause every now and then for the collector to do its work. If the collectortakes a long time to run, the whole browser may become unresponsive. In HTML5 games, even short pauses (tens of milliseconds) are disruptive because they are perceptibleby the user as glitches in animation.

In IE10 we made a number of enhancements to our memory allocator and garbage collector. We already discussed object layout changes and generation of machine codespecialized for floating point arithmetic, which result in fewer memory allocations. In addition, Chakra now allocates leaf objects (for example, numbers and strings) froma separate memory space. Leaf objects don’t hold pointers to other objects, so they don’t require as much attention during garbage collection as regular objects.Allocating leaf objects from a separate space has two advantages. First, this entire space can be skipped during the mark phase, which reduces its duration. Second,during concurrent collection, new allocations from the leaf object space don’t require rescanning affected pages. Because Chakra’s collector works concurrentlywith the main script thread, the running script may modify or create new objects on pages that have already been processed. To make sure such objects aren’t prematurelycollected, Chakra write-protects pages before the mark phase starts. Pages that have been written to during the mark phase must be later rescanned on the main scriptthread. Because leaf objects don’t require such processing, pages from the leaf object space don’t need to be write-protected or rescanned later. This saves precioustime on the main script thread, reducing pauses. HTML5 games and animations benefit significantly from this change, because they often work heavily with floating pointnumbers and devote much of the allocated memory to heap-boxed numbers.

When the user interacts directly with a Web application, it is critical that the application’s code be executed as fast as possible, ideally without interruptionsfor garbage collection. However, when the user switches away from the browser, or even just changes tabs, it is important to reduce the memory footprint of thenow inactive site or application. That’s why in IE9 Chakra triggered collection upon exiting JavaScript code if enough memory has been allocated. This worked wellfor most applications, but proved problematic for applications driven by high frequency timers, such as HTML5 games and animations. For such applications collectionswere triggered too frequently and resulted in dropped frames and overall degradation of the user experience. Perhaps the most apparent manifestation of this problemwas the Tankworld game, but other HTML5 simulations also exhibited pauses in animation induced by frequent garbage collections.

In IE10 we solved this problem by coordinating garbage collections with the rest of the browser. Chakra now delays the garbage collection at the end of script executionand requests a callback from the browser after an interval of script inactivity. If the interval elapses before any script executes, Chakra starts a collection,otherwise collection is further postponed. This technique permits us to shrink memory footprint when the browser (or one of its tabs) becomes inactive, while atthe same time greatly reducing frequency of collections in animation-driven applications.

Combined, these changes reduced the time spent in garbage collection on the main thread by an average factor of four on the HTML5 simulations measured. As a proportionof JavaScript execution time, garbage collection dropped from around 27% to about 6%.


IE10 achieves dramatic performance gains for JavaScript-intensive applications, particularly HTML5 games and simulations. These gains were accomplished througha range of important improvements in Chakra: from new fundamental capabilities of the JIT compiler to changes in the garbage collector.

As we wrap up development on IE10 we celebrate the progress we’ve made, but we are keenly aware that performance is a perpetual quest. New applications emerge almostdaily that test the limits of modern browsers and their JavaScript engines. Without a doubt there will be plenty to work on in the next release!

If you’re a JavaScript developer, we’d love to hear from you. If the new capabilities and performance advances in IE10 helped you create entirely new experiencesfor your users, or make existing applications better, please, let us know. If you’ve hit any performance limitations in IE, please, drop us a note as well. We carefullyread all the comments on this blog, and we strive to make IE10 and Windows 8 the most comprehensive and performant application platform available.

—Andrew Miadowicz, Program Manager, JavaScript

Comments (47)

  1. Shahroom says:

    Thanks… I like all the improvements, if you only fix below problems I promise not to complain anymore:

    1- Enable audio while IE is in background… I want to go to, play a music and bring up another application while listening to music… Currently it is impossible

    2- Please do something about silverlight videos like what you did with Flash… I can't use many of Microsoft websites on IE10 because most of them have Silverlight videos

    3- Fonts show unusual behavior sometimes

    4- Videos are ok on but I have problem playing them when they are embeded on other websites

    5- When I load website(for example and go to another application, when I return I see a blank white page… For some reason I should click on address bar and website appears… This problem happens randomly, usually when I don't use IE for a while and work on other applications.

    Javascript performance is good enough… Now it is time to fix those minor cuts…

  2. Sean says:

    My apologies about that last part.  It appears that IE10 now has CSS3 animation support.

  3. Ashley says:

    "If you’ve hit any performance limitations in IE, please, drop us a note" – you might want to take a look at this test we did where IE10 came in 2-4x slower than other browsers:…/internet-explorer-10-fast-and-native-has-gone-to-other-browsers

  4. soundman says:

    I would love to see updated graphs of the Benchmarks on the IE test drive, specifically the SunSpider benchmark against the latest (released and betas) competition. Can you update these pages please so we can see graphically the improvements versing IE9 and the latest competition?

  5. Mr. S says:

    Are you using system APIs on ARM for your JIT execution, or is everything written over the WinRT API?

  6. davis says:

    Ashley, you can't compare Firefox and Chrome's WebGL numbers to IE. It's apples and arranges. If you dig through this blog you can find the rationale for not supporting WebGL. Maybe there'll be some compromise system that will emerge from the standards process at a later date.

  7. Pranav says:


    I think the idea is to leave IE snapped to one side of the screen.

    Eventually I'm sure we'll have either first or third party YouTube apps which will support background audio so its really a moot point

  8. steve says:

    so does this mean that IE10 x64 also has a new javascript engine unlike IE9 x64?

  9. John Papa says:

    Can you talk about any improvements to IE10's profiling tools for identifying possible memory leaks/issues?

  10. pmbAustin says:

    This is great and all, but when you're talking page loads, sometimes the limiting factor is the ASP.NET compiler on the server side.  Any chance of getting some significant performance improvements in that in the Win8 versions of IIS?  Because seriously… it's so pathetically slow…

    I've also noticed that IE9 on Win7-64bit has both 32 and 64 bit versions… and that the 64 bit version doesn't seem to offer "In Private Browsing" and some other features (at least from the jump list menu)… will IE10 fix that?

  11. Stilgar says:

    @pmbAustin do you realize that the IE team has absolutely nothing to do with the ASP.NET compiler or any server side compiler or web server?

  12. davis says:

    Incidentally, why is "Windows 8" in the title of this article? It has nothing to do with Windows 8 except that Chakra on ARM is, by necessary implication, only available for Windows 8/RT.

  13. Nulian says:

    Just wish IE10 was abit more stable in the latest release of windows 8. Had to stop using it because the browser constantly crashes or doesnt even want to open a tab. I heard the problem from allot more people.

  14. Esben says:

    Very nice! Looking forward to the final Win8 and IE10! 🙂

  15. FremyCompany says:

    Those JS compilers are getting clever and clever over time. That's so impressive…

  16. Mike Dimmick says:

    @davis: Because developers can write Metro-style apps for Windows 8 using HTML and JavaScript, and the IE10 rendering and script engines are used to run those apps.

  17. Ryan says:

    Why do people actually use Internet Explorer, like, really?

    Google Chrome or Firefox is the best.

    And I am not looking forward to Windows 8, unless they make it a hell lot more stable, from the video's I've seen, its laggy as hell, and it just looks like Windows is comparing computers to tablets. Which their not. Sort your *** out Microsoft!

  18. whale says:

    IE 10 continues to consume lots of memory when uploading photos in Facebook, making itself unstable.

  19. MOD says:

    Can you please improve performance of TypedArray.set() for arrays of same type. I think it should memcpy() internally, but instead it is 2 times slower than JS "for" loop, copying element one by one.

  20. Jace says:


    Page loads limited by the ASP.NET compiler server-side? Are you seriously serious?

    You realize that this could only happen once ever, unless you clear your temporary files cache which you'd have to be insane to do.

    Also, if your cold-start, one-time hit is really that bad, your using statements must be every name space ever dreamed up, or your code is atrocious.

  21. Jace says:


    Friends don't let friends use Chrome or Firefox:

    "In this blog post Context demonstrates how to steal user data through web browsers using a vulnerability in Firefox’s implementation of WebGL. This is a continuation of our research into serious design flaws that could affect any browser which implements WebGL, currently Chrome and Firefox."…/webgl2

  22. Arieta says:

    This is all nice, but with plugins getting nuked, will we have userscripts and user styles support for IE10 x64?

  23. Jason Capriotti says:

    This and the rest of the IE10 features will be helpful when IE6-9 automatically upgrade to IE10.

  24. asdf says:

    Does IE10 JIT on Metro even though the APIs to do so are blocked for other Metro apps?

  25. Sergei Grebnov says:

    Looks great. Does IE10 mobile will have exactly the same performance improvements, any difference from desktop version?

  26. @steve: Yes, IE10's x64 JavaScript JIT compiler was introduced with the consumer preview last year. You can see the improvements by running the benchmarks in Metro-Style IE (which runs 64bit tabs for Internet sites).

    @asdf: The Metro-style HTML/JavaScript application platform in Windows 8 performs JIT for JavaScript applications. The Metro-style Internet Explorer 10 browser also has a JavaScript JIT. The system default browser (be it IE, Chrome, Firefox, etc) is not constrained to the Windows RT API set and has the necessary permissions to do dynamic compilation, etc.

  27. Stephen Coorey says:

    I've been trying to use the jmpress.js jquery library to create a simple presentation that has zooming and rotation using css3, and it works fine in Chrome, but performance is appalling in IE10.  

    Here is a simple example you can try out yourself.

  28. Anon says:

    Have you improved IE's developer tools at all? Especially profiling? Please tell us.

  29. warrens says:

    @Stephen Coorey:

    I tried your fiddle on my Windows 8 Release Preview laptop.  Performance on IE10 is good — just as smooth as Chrome…. but the text is fuzzy.  Interestingly the text is sharp while the zoom/pan effects happen; the text only gets blurry after the movement stops.

  30. stephen coorey says:

    @warrens Thanks for trying that. I saw the blurry text issue too. Perhaps that example is too simple to see the performance issues. Please try this one and click on the rotated white region on the right.

  31. davis says:

    @Mike Dimmick, I can suitably embed the Internet Explorer as a WebBrowser COM control in a Win32 App. If I force the control into IE9 mode, I get embedded Chakra. I'd be programming against the W3C stack (mostly, plus usually the Windows Scripting stuff) as opposed to the WinRT stack, but the principles are the same. So, again, what does this article have to do with Windows 8 per se?

  32. James South says:

    I love these updates, I love that you guys are doing some remarkable work to add features and are working so closely with the various standards committees to move the web forward. I love a lot of stuff that get disclosed through this weblog but I can't understand why you would release such technical information in this form and add new features if you are not going to give us the tools to test them.

    Every version of the built in developer tools built into IE so far have been quite frankly atrocious. I could maybe get over the fact that they are hideous (that ugly blue and yellow gradient has to go) and that their design does not match the overall browser chrome if they actually made my life easier but they don't.

    The tools lack so many feature that are available in both Chrome and Firefox (with firebug):

    Editing styles on nodes requires you to go to a different page within the tools to add attributes.

    Live changes within the page are not captured within the HTML tab without clicking the refresh icon.

    JavaScript debugging is a messy affair which yields so little information compared to it's rivals.

    The detailed view in the Network tab is unintuitive and unusable.

    The list could go on and on very easily.

    Please tell us in your next weblog entry that you are releasing something to fix all this. Please tell us that you have something up your sleeve that will wipe the floor with your rivals. I want to use IE. I want to develop with it and tout to my fellow developers that the world has changed and that we should now build and test them with your browser because at the moment I cannot and that saddens me.

  33. Indeed, the JavaScript performance in the latest build of IE 10 is considerably faster than in the Customer Preview.  IE used to hang as it did floating point calculations to generate a 3D model (Three.js).  No, it doesn't balk, but simply displays the graphics.  Nice work.  Now if you could only support WebGL…

  34. Randall says:

    Love the detail. And TankWorld, wow.

  35. Mitch 74 says:

    Third time's the charm. I see the comment system is still buggy as all heck.

    @Jace: the safety concern you raised on WebGL were fixed almost 2 years ago. Outside of Windows, on which it is still quite present, OpenGL is the de facto 3D API on iOS, OS X, Android and other Linux – And contrary to other web technologies that Microsoft pushed and imposed in the early 2000's, IE is not the majority browser any more – not on desktop, not on mobile devices, not on tablets.

    By closing IE to WebGL, Microsoft may just have signed its death warrant.

  36. Jace says:



    Read the post! –…/webgl2 – This is a rebuttal to a Khronos attempt to assuage concerns and was written in July 2011!!

    That's less than a year ago, the issues HAVE NOT been fixed in the spec, much less implemented in any released browser.

  37. Prior Semblance says:

    At this point I'd rather have new javascript features than faster javascript.  Obvious things like document.getMouseX or document.getElementsByClass.  I can't believe after all this time javascript still doesn't have a proper mouse location variable.  I guess whoever comes up with the new specifications is too worried about fancy stuff to do the basic obvious stuff.

  38. Dino Chiesa says:

    Great to see ongoing development of the Javascript engine in Windows/IE.

    A simple request, though: promote Chakra to be a full first-class ActiveScript engine, accessible from within WSH.  See…/48082 for some details.

  39. xpclient says:

    The UI is far more important than improvements under the hood and I see no efforts in IE10 to improve upon the severe degradation of GUI that happened in the abomination that is called IE9. IE8 on Windows 7 offers a more customizable and better GUI than the dumbed down IE9 or the joke that is Metro IE10.

  40. 7zip says:


    Current IE has enough eye candy UI to satisfy my eyes, I won't trade performance (which is very important in many modern browser) for UI improvements, 😛

  41. says:

    Loaded windows 8,losted my printer drivers,,,help

  42. Mitch 74 says:

    It's been almost 7 years, and this comment form is still as buggy as ever – geez MS, would you mind solving real bugs once in a while?!

    The article you cite uses Firefox 4 for its demonstration. Mozilla announced that the fix would be published in Firefox 5 – which came out in June 2011 – so true, it wasn't 2 years ago – it was exactly one year, and 7 major releases, ago. Since then, the security feature was implemented in drivers and in all WebGL-capable browsers.

    The only way you could still be vulnerable is:

    – if you've stopped your browser's updates for more than a year

    – and never check the optional updates in WU.

    Next, I did mention that mobile and tablet OSes must now be taken into account for market share – if you're building a website now and are not even considering how it may run on a mobile device, you're doing something wrong. As such, your link proves that on the only market it is dominant on, IE is on the tipping point. If you consider that 30% of browsing now takes place on mobile devices, on which IE's (and Windows) share is under 10%, then it represents one third of the market – far from a commanding share.

    I rest my case.

  43. Tina says:

    @Mitch, the desktop's browser maketshare, IE is still having the majority. But the marketshare is not a macabre factor here!

    If IE10's features set (HTML5, CSS2-3, SVG..) and performance is improved, people using Windows phones and tablets would not require the alternate browser. Moreover, the marketshare of IE mobile is highly dependent on that of Windows Phone's. It would be clarified in next couple of months after the arrival of real windows 8 tablets and phones powered by HTC, HP, Dell, Samsung, NVIDIA, IBM and since so forth. Microsoft does have advantage of partnership to spin their products worldwide in no time. But IE10 should throw "no loose ball" as there is no room for pissing off clientele and the competition is getting tighter. So far they are doing well but the update release cycle should be fast.

  44. WindowsVista567 says:

    Mitch said: "30% of browsing now takes place on mobile devices".. where did you get these stats? Over 80% of the mobile users worldwide still don't use smartphones and tablets and Desktop/Laptops are still the primary form factor of computers.

    Either you are a troll, or you extremely mistaken!

  45. Mitch 74 says:

    And again… 2nd attempt.

    True, the mobile share is globally more around 10% – with huge discrepancies: in Asia, it's closer to 20%, in several countries with a lack of landlines it reaches over 40%. In Europe, we are on the verge of a huge mutation, with many carriers in many countries offering much bigger data allocations, and the arrival of 4G won't hurt. If 30% isn't a generality right now, considering the growth rate, it'll probably be there at the beginning of 2013.

    In short, if you're thinking about building a website now, you can expect more than a quarter of your visitors to come by mobile. And, if you want to provide a 3D experience, what technology will you use, with mobile Flash dying and Silverlight DOA? Using canvas and SVG to compensate is fun at first, but shadows, real-time effects and z-buffers are a bit harder to emulate.

  46. Brandon says:

    will you release the linux build soon?

Skip to main content