Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 13_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) FxiOS/21.0 Mobile/15E148 Safari/605.1.15
Mobile Safari 13
iOS 13.3
Mobile
4 years ago
Test name Executions per second
getElementById 8508201.0 Ops/sec
getElementsByTagName 4554999.0 Ops/sec
querySelector 4699181.0 Ops/sec
getElementsByClassName 4354210.5 Ops/sec
getElementsByName 4782834.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;