Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:103.0) Gecko/20100101 Firefox/103.0
Firefox 103
Mac OS X 10.15
Desktop
2 years ago
Test name Executions per second
querySelectorAll by Attribute 2288.5 Ops/sec
jQuery selector by Attribute 1590.8 Ops/sec
querySelectorAll by Class 3513.7 Ops/sec
jQuery selector by Class 4382.0 Ops/sec
querySelectorAll by Element 3759.2 Ops/sec
jQuery selector by Element 5638.7 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


;