Run details:
Mozilla/5.0 (Linux; Android 6.0.1; D6503) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.99 Mobile Safari/537.36
Chrome Mobile 71
Android 6.0.1
Mobile
5 years ago
Test name Executions per second
getElementById 592642.8 Ops/sec
getElementsByTagName 52309.5 Ops/sec
querySelector 56128.0 Ops/sec
getElementsByClassName 53021.9 Ops/sec
getElementsByName 52912.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;