Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:99.0) Gecko/20100101 Firefox/99.0
Firefox 99
Mac OS X 10.15
Desktop
2 years ago
Test name Executions per second
querySelectorAll by Attribute 2046.4 Ops/sec
jQuery selector by Attribute 1267.7 Ops/sec
querySelectorAll by Class 3485.7 Ops/sec
jQuery selector by Class 4029.7 Ops/sec
querySelectorAll by Element 3785.0 Ops/sec
jQuery selector by Element 4449.8 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


;