Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36
Chrome 79
Windows
Desktop
4 years ago
Test name Executions per second
jQuery 423222.0 Ops/sec
querySelectorAll 996518.3 Ops/sec
getElementsByClassName 5580053.0 Ops/sec
jQuery mixed selector 228895.0 Ops/sec
querySelectorAll mixed selector 726108.9 Ops/sec
HTML Preparation code:
Tests:
  • jQuery

  • querySelectorAll

  • getElementsByClassName

  • jQuery mixed selector

  • querySelectorAll mixed selector