- From: Boris Zbarsky <bzbarsky@MIT.EDU>
- Date: Wed, 11 Aug 2010 12:12:01 -0400
On 8/11/10 11:48 AM, Boris Zbarsky wrote: > javascript:var start = new Date(); function f(n) { for (var k = > n.firstChild; k; k = n.nextSibling) f(k); } f(document); alert(new > Date() - start) Er, that had a typo. The correct script is: javascript:var start = new Date(); function f(n) { for (var k = n.firstChild; k; k = k.nextSibling) f(k); } f(document); alert(new Date() - start); Now the numbers are slightly larger; on the order of 230ms to 350ms. Barely above human lag-perception. This is on a several-years-old laptop as hardware. -Boris
Received on Wednesday, 11 August 2010 09:12:01 UTC