Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3521.0 Safari/537.36
Chrome 70
Mac OS X 10.13.6
Desktop
6 years ago
Test name Executions per second
querySelectorAll by Attribute 1159.5 Ops/sec
jQuery selector by Attribute 407.1 Ops/sec
querySelectorAll by Class 2391.5 Ops/sec
jQuery selector by Class 584.3 Ops/sec
querySelectorAll by Element 2610.4 Ops/sec
jQuery selector by Element 594.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • querySelectorAll by Attribute

  • jQuery selector by Attribute

  • querySelectorAll by Class

  • jQuery selector by Class

  • querySelectorAll by Element

  • jQuery selector by Element


;