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 684.5 Ops/sec
querySelectorAll 674.3 Ops/sec
getElementByClassName 1179091.9 Ops/sec
find().first() 58899.3 Ops/sec
find().filter() 26242.5 Ops/sec
find(first) 50154.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementByClassName

  • find().first()

  • find().filter()

  • find(first)