Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/74.0.3729.169 Chrome/74.0.3729.169 Safari/537.36
Chromium 74
Ubuntu
Desktop
5 years ago
Test name Executions per second
getElementById 2374808.5 Ops/sec
getElementsByTagName 1044201.7 Ops/sec
querySelector 1196024.6 Ops/sec
getElementsByClassName 1036997.0 Ops/sec
getElementsByName 1196413.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • getElementById

  • getElementsByTagName

  • querySelector

  • getElementsByClassName

  • getElementsByName


;