Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Chrome 114
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
JQuery DOM traversal - fully segmented 222648.2 Ops/sec
JQuery DOM traversal - partially segmented 1 269243.8 Ops/sec
JQuery DOM traversal - partially segmented 2 216455.9 Ops/sec
JQuery CSS selectors - descendants 488296.2 Ops/sec
JQuery CSS selectors - partially absolute 528607.6 Ops/sec
JQuery CSS selectors - absolute 518265.6 Ops/sec
HTML Preparation code:
Tests:
  • JQuery DOM traversal - fully segmented

  • JQuery DOM traversal - partially segmented 1

  • JQuery DOM traversal - partially segmented 2

  • JQuery CSS selectors - descendants

  • JQuery CSS selectors - partially absolute

  • JQuery CSS selectors - absolute