Test case name | Result |
---|---|
childNodes foreach | |
children (direct) | |
firstChild nextSibling | |
firstElementChild nextElementChild | |
ChildNodes for (into variable) | |
children-- (direct) | |
ChildNodes for-- (into variable) | |
ChildNodes for-- (direct) | |
lastElementChild previousElementChild | |
children-- (into variable) |
Test name | Executions per second |
---|---|
childNodes foreach | 1870294.8 Ops/sec |
children (direct) | 2611374.2 Ops/sec |
firstChild nextSibling | 9245765.0 Ops/sec |
firstElementChild nextElementChild | 15010623.0 Ops/sec |
ChildNodes for (into variable) | 4653323.5 Ops/sec |
children-- (direct) | 4592751.5 Ops/sec |
ChildNodes for-- (into variable) | 2399889.0 Ops/sec |
ChildNodes for-- (direct) | 5971474.5 Ops/sec |
lastElementChild previousElementChild | 14791941.0 Ops/sec |
children-- (into variable) | 9820943.0 Ops/sec |