Status: New
Owner: ----

New issue 3667 by [email protected]: attempt to optimized dom binding performance.
https://code.google.com/p/v8/issues/detail?id=3667

WebKit/JSC leads Chrome/V8 a lot in Dromaeo/?dom-query benchmark. And with some deep analyses, we observed JSC generated ~50 instructions to call nodeTypeCallback function, while v8 generated ~80 instructions for the core loop for below benchmark.

window.onload = function()
{
    var el = document.getElementsByTagName("div")[0];
    var ret = 0;
    var start = (new Date()).getTime();
    //core loop start
    for(var a = 0; a < 90000000; a++){
        ret += el.nodeType;
    }
    // core loop end
    var elapsed = (new Date()).getTime() - start;
    alert("time: " + elapsed + " val: " + ret);
    return ret;
}




--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to