Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.59 Safari/537.36
Chrome 54
Linux
Other
7 years ago
Test name Executions per second
querySelector 4268.5 Ops/sec
querySelectorAll 5858.8 Ops/sec
find().first() 5135.2 Ops/sec
find().filter() 5007.3 Ops/sec
find(first) 5204.8 Ops/sec
find()[0] 5503.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • find().first()

  • find().filter()

  • find(first)

  • find()[0]


;