Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36
Chrome 69
Mac OS X 10.14.0
Desktop
6 years ago
Test name Executions per second
querySelectorAll by Attribute 2275.4 Ops/sec
jQuery selector by Attribute 666.6 Ops/sec
querySelectorAll by Class 4051.9 Ops/sec
jQuery selector by Class 982.8 Ops/sec
querySelectorAll by Element 4063.9 Ops/sec
jQuery selector by Element 994.4 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


;