Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3431.0 Safari/537.36
Chrome 68
Mac OS X 10.13.4
Other
6 years ago
Test name Executions per second
jQuery 380634.8 Ops/sec
querySelectorAll 69880.3 Ops/sec
getElementsByClassName 3567747.8 Ops/sec
jQuery: mixed selector 50185.6 Ops/sec
querySelectorAll: mixed selector 66917.1 Ops/sec
HTML Preparation code:
Tests:
  • jQuery

  • querySelectorAll

  • getElementsByClassName

  • jQuery: mixed selector

  • querySelectorAll: mixed selector