Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1
Mobile Safari 13
iOS 13.2.2
Mobile
5 years ago
Test name Executions per second
getElementById 8594818.0 Ops/sec
getElementsByTagName 4571729.5 Ops/sec
querySelector 4708085.0 Ops/sec
getElementsByClassName 4366218.5 Ops/sec
getElementsByName 4920425.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;