Run details:
Mozilla/5.0 (Linux; Android 8.0.0; SM-G935T Build/R16NW; en-us) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.81 Mobile Safari/537.36 Puffin/7.8.1.40497AP
Puffin 7
Android 8.0.0
Mobile
5 years ago
Test name Executions per second
getElementById 6650184.0 Ops/sec
getElementsByTagName 2404320.8 Ops/sec
querySelector 2759894.2 Ops/sec
getElementsByClassName 2347222.5 Ops/sec
getElementsByName 2894529.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;