Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) GSA/200.0.429445193 Mobile/15E148 Safari/604.1
Mobile Safari 15
iOS 15.5
Mobile
2 years ago
Test name Executions per second
querySelector 2071440.6 Ops/sec
querySelectorAll 1403824.0 Ops/sec
getElementsByClassName 2486637.2 Ops/sec
querySelector (ID) 1838957.6 Ops/sec
getElementsByID 2536630.0 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;