Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Safari/604.1.38
Safari 11
Mac OS X 10.13
Other
7 years ago
Test name Executions per second
jQuery 1.12.4 531154.3 Ops/sec
querySelectorAll 108649.5 Ops/sec
getElementsByClassName 4405641.0 Ops/sec
jQuery 1.12.4: mixed selector 87029.5 Ops/sec
querySelectorAll: mixed selector 125617.7 Ops/sec
HTML Preparation code:
Tests:
  • jQuery 1.12.4

  • querySelectorAll

  • getElementsByClassName

  • jQuery 1.12.4: mixed selector

  • querySelectorAll: mixed selector