Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0
Firefox 69
Mac OS X 10.14
Desktop
4 years ago
Test name Executions per second
getElementById 3637897.5 Ops/sec
getElementsByTagName 2498206.8 Ops/sec
querySelector 2804037.2 Ops/sec
getElementsByClassName 2460496.8 Ops/sec
getElementsByName 4152372.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName