Run details:
Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36
Chrome 68
Fedora
Desktop
6 years ago
Test name Executions per second
getElementById 2988795.2 Ops/sec
querySelector 1881416.5 Ops/sec
querySelectorAll 626048.8 Ops/sec
with iF 2481893.5 Ops/sec
HTML Preparation code:
Tests:
  • getElementById

  • querySelector

  • querySelectorAll

  • with iF


;