New issue
Advanced search Search tips

Issue 705187 link

Starred by 3 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocked on:
issue 764618



Sign in to add a comment

appendChild is 2x slower than Safari

Project Member Reported by esprehn@chromium.org, Mar 25 2017

Issue description

It's interesting that our appendChild() is very similar to our append() in performance, even though append() is doing fundamentally more work by inserting everything into a document fragment first, and then removing it from the fragment to insert it into the tree. That's very suspicious... where is the inefficiency in our system?

The attached benchmark:

Safari 10.0.3:
appendChild 1.1999999999999993
append 2.6000000000000014

Chrome Canary 59.0.3045.0:
appendChild 2.539999999999999
append 2.460000000000001

(This is on my 2012 Retina MBP.)
 
append-nodes.html
645 bytes View Download
Cc: domenic@chromium.org jochen@chromium.org cbruni@chromium.org
Owner: jbroman@chromium.org
Status: Assigned (was: Untriaged)
jbroman@, could you take a look?
Blockedon: 764618
Labels: -Performance Performance-Browser
On my 2013 Trash Can Mac Pro:

Google Chrome	65.0.3325.162 (Official Build) (64-bit)
Revision	5d04e9e9c8ce31bee0923a8c326a7e9e19c492a3-refs/branch-heads/3325@{#695}

appendChild 3.100000089034438
append 2.199999988079071

Safari
Version 11.0.3 (13604.5.6)

appendChild 1
append 2

(Safari has low res timer stuff so it's not the most precise time, but it still seems they're much faster.)

Sign in to add a comment