Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/604.4.7 (KHTML, like Gecko) Version/11.0.2 Safari/604.4.7
Safari 11
Mac OS X 10.13.2
Other
2025 years ago
Test name Executions per second
jQuery 697659.2 Ops/sec
querySelectorAll 115783.3 Ops/sec
getElementsByClassName 4673388.5 Ops/sec
jQuery: mixed selector 100367.0 Ops/sec
querySelectorAll: mixed selector 130924.6 Ops/sec
HTML Preparation code:
Tests:
  • jQuery

  • querySelectorAll

  • getElementsByClassName

  • jQuery: mixed selector

  • querySelectorAll: mixed selector