Run details:
Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko
IE 11
Windows 8.1
Other
8 years ago
Test name Executions per second
querySelector 1747.7 Ops/sec
querySelectorAll 1509.0 Ops/sec
find().first() 1466.6 Ops/sec
find().filter() 1422.4 Ops/sec
find(first) 1405.0 Ops/sec
find()[0] 1403.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • find().first()

  • find().filter()

  • find(first)

  • find()[0]