Test case name | Result |
---|---|
replaceChild near start | |
replaceChild near end | |
removeChild + insertBefore near start | |
removeChild + insertBefore near end | |
insertBefore + removeChild near start | |
insertBefore + removeChild near end | |
insertBefore + removeChild near start (variant 2) | |
insertBefore + removeChild near end (variant 2) |
Test name | Executions per second |
---|---|
replaceChild near start | 1546511.4 Ops/sec |
replaceChild near end | 1547919.5 Ops/sec |
removeChild + insertBefore near start | 1130899.6 Ops/sec |
removeChild + insertBefore near end | 1128735.1 Ops/sec |
insertBefore + removeChild near start | 1167384.9 Ops/sec |
insertBefore + removeChild near end | 1159186.5 Ops/sec |
insertBefore + removeChild near start (variant 2) | 1122403.9 Ops/sec |
insertBefore + removeChild near end (variant 2) | 1118795.2 Ops/sec |