Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 11_2_6 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) CriOS/67.0.3396.69 Mobile/15D100 Safari/604.1
Chrome Mobile iOS 67
iOS 11.2.6
Mobile
6 years ago
Test name Executions per second
getElementById 5099136.0 Ops/sec
getElementsByTagName 2859743.5 Ops/sec
querySelector 2463423.5 Ops/sec
getElementsByClassName 2355385.2 Ops/sec
getElementsByName 2414914.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;