Run details:
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0
Firefox 46
Windows 8.1
Other
8 years ago
Test name Executions per second
querySelector 3459.9 Ops/sec
querySelectorAll 3571.3 Ops/sec
getElementByClassName 4660237.5 Ops/sec
find().first() 26765.5 Ops/sec
find().filter() 29437.6 Ops/sec
find(first) 56172.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementByClassName

  • find().first()

  • find().filter()

  • find(first)