Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Safari/605.1.15
Safari 15
Mac OS X 10.15.7
Desktop
2 months ago
Test name Executions per second
jQuery 1.12.4 671377.4 Ops/sec
querySelectorAll 1373356.0 Ops/sec
getElementsByClassName 3848453.0 Ops/sec
jQuery 1.12.4: mixed selector 451926.7 Ops/sec
querySelectorAll: mixed selector 1330051.4 Ops/sec
HTML Preparation code:
Tests:
  • jQuery 1.12.4

  • querySelectorAll

  • getElementsByClassName

  • jQuery 1.12.4: mixed selector

  • querySelectorAll: mixed selector