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 4147.8 Ops/sec
querySelectorAll 5750.4 Ops/sec
find().first() 5199.3 Ops/sec
find().filter() 4811.6 Ops/sec
find(first) 5037.1 Ops/sec
find()[0] 5297.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • find().first()

  • find().filter()

  • find(first)

  • find()[0]


;