Run details:
Mozilla/5.0 (Linux; Android 9; SM-G960F Build/PPR1.180610.011) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.99 Mobile Safari/537.36 OPR/50.3.2426.136976
Opera Mobile 50
Android
Mobile
5 years ago
Test name Executions per second
getElementById 1167946.4 Ops/sec
getElementsByTagName 659569.9 Ops/sec
querySelector 867154.7 Ops/sec
getElementsByClassName 691722.7 Ops/sec
getElementsByName 730976.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName