Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 13_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/78.0.3904.84 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 78
iOS 13.2
Mobile
5 years ago
Test name Executions per second
getElementById 6602005.5 Ops/sec
getElementsByTagName 3091059.2 Ops/sec
querySelector 3271392.5 Ops/sec
getElementsByClassName 3005673.2 Ops/sec
getElementsByName 3417697.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;