Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.59 Safari/537.36 OPR/41.0.2353.46
Opera 41
Windows
Other
8 years ago
Test name Executions per second
jQuery 1.12.4 409559.9 Ops/sec
querySelectorAll 113916.0 Ops/sec
getElementsByClassName 3772137.5 Ops/sec
jQuery 1.12.4: mixed selector 72309.1 Ops/sec
querySelectorAll: mixed selector 101222.0 Ops/sec
HTML Preparation code:
Tests:
  • jQuery 1.12.4

  • querySelectorAll

  • getElementsByClassName

  • jQuery 1.12.4: mixed selector

  • querySelectorAll: mixed selector