Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:77.0) Gecko/20100101 Firefox/77.0
Firefox 77
Mac OS X 10.15
Desktop
4 years ago
Test name Executions per second
getElementById 2781049.2 Ops/sec
querySelector 2314823.8 Ops/sec
getElementsByClassName 2341339.2 Ops/sec
querySelectorAll 981995.0 Ops/sec
querySelector class 2320764.2 Ops/sec
HTML Preparation code:
Tests:
  • getElementById

  • querySelector

  • getElementsByClassName

  • querySelectorAll

  • querySelector class


;