Run details:
Mozilla/5.0 (Linux; U; Android 8.1.0; 5033G Build/O11019; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/70.0.3538.110 Mobile Safari/537.36 OPR/43.3.2254.142003
Opera Mobile 43
Android 8.1.0
Mobile
3 years ago
Test name Executions per second
getElementById 291077.4 Ops/sec
getElementsByTagName 143592.3 Ops/sec
querySelector 167554.8 Ops/sec
getElementsByClassName 164791.7 Ops/sec
getElementsByName 134183.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName