HTML Preparation code:
Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    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]")

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130 on Mac OS X 10.15.7
View result in a separate tab
parent.find("> [data-attr=value]")
59.4M/s
parent.find("> span")
59.2M/s
parent.find("> *")
58.8M/s
parent.find("> .child")
57.6M/s
parent.children()
12.7M/s
parent.children(".child")
4.6M/s
parent.children("span")
4.3M/s
parent.children("[data-attr=value]")
3.1M/s
View exact numbers
Test name Executions per second
parent.find("> [data-attr=value]") 59,392,000 Ops/sec
parent.find("> span") 59,190,068 Ops/sec
parent.find("> *") 58,774,416 Ops/sec
parent.find("> .child") 57,649,436 Ops/sec
parent.children() 12,658,435 Ops/sec
parent.children(".child") 4,600,188 Ops/sec
parent.children("span") 4,289,934 Ops/sec
parent.children("[data-attr=value]") 3,131,189 Ops/sec