[Webkit-unassigned] [Bug 17510] Acid3 pauses noticeably while running test 26

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 5 12:18:59 PST 2008


http://bugs.webkit.org/show_bug.cgi?id=17510





------- Comment #4 from djvasi at gmail.com  2008-03-05 12:18 PDT -------
The loop does indeed involve the DOM. Here's the JS, for ease of reference:

      var loops = ((new Date().valueOf() - 1.1e12) / 32e9) * 0x500; //
increases linearly over time
      for (var i = 0; i < loops; i += 1) {
        // we want to force a GC here, so we use up lots of memory
        // we take the opportunity to sneak in a perf test to make DOM and JS
stuff faster...
        d = new Date();
        d = new (function (x) { return { toString: function () { return
x.toString() } } })(d.valueOf());
        d = document.createTextNode("iteration " + i + " at " + d);
        document.createElement('a').appendChild(d);
        d = d.parentNode;
        document.body.insertBefore(d,
document.getElementById('bucket1').parentNode);
       
assert(document.getElementById('bucket2').nextSibling.parentNode.previousSibling.firstChild.data.match(/AT\W/i),
"iteration " + i + " failed");
        d.setAttribute('class', d.textContent);
        document.body.removeChild(d);
      }


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list