Run details:
Mozilla/5.0 (Android 11; Mobile; rv:129.0) Gecko/129.0 Firefox/129.0
Firefox Mobile 129
Android
Mobile
4 months ago
Test name Executions per second
parent.children() 1528519.4 Ops/sec
parent.find("> *") 5906690.0 Ops/sec
parent.children(".child") 604171.6 Ops/sec
parent.find("> .child") 4774900.0 Ops/sec
parent.children("span") 659344.1 Ops/sec
parent.find("> span") 5626136.0 Ops/sec
parent.children("[data-attr=value]") 1052030.4 Ops/sec
parent.find("> [data-attr=value]") 8907263.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • parent.children()

  • parent.find("> *")

  • parent.children(".child")

  • parent.find("> .child")

  • parent.children("span")

  • parent.find("> span")

  • parent.children("[data-attr=value]")

  • parent.find("> [data-attr=value]")