Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
Chrome 108
Linux
Desktop
one year ago
Test name Executions per second
querySelector 4779776.0 Ops/sec
querySelectorAll 2191988.5 Ops/sec
getElementsByClassName 6279938.5 Ops/sec
querySelector (ID) 3719156.8 Ops/sec
getElementsByID 6892866.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;