Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36
Chrome 79
Mac OS X 10.15.2
Desktop
4 years ago
Test name Executions per second
jQuery class selector 723823.1 Ops/sec
querySelectorAll for class 1426242.4 Ops/sec
getElementsByClassName 4764920.5 Ops/sec
jQuery tag selector 638157.4 Ops/sec
querySelectorAll for tag 1391075.6 Ops/sec
getElementsByTagName 4712127.0 Ops/sec
HTML Preparation code:
Tests:
  • jQuery class selector

  • querySelectorAll for class

  • getElementsByClassName

  • jQuery tag selector

  • querySelectorAll for tag

  • getElementsByTagName


;