Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:108.0) Gecko/20100101 Firefox/108.0
Firefox 108
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
querySelector 3918001.0 Ops/sec
querySelectorAll 1629060.4 Ops/sec
getElementsByClassName 7053313.0 Ops/sec
querySelector (ID) 3826180.8 Ops/sec
getElementsByID 7034135.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;