Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15
Safari 11
Mac OS X 10.11.6
Desktop
5 years ago
Test name Executions per second
getElementById 1668548.4 Ops/sec
getElementsByTagName 644704.8 Ops/sec
querySelector 800673.2 Ops/sec
getElementsByClassName 786532.4 Ops/sec
getElementsByName 880709.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;