Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/117.0
Firefox 117
Windows
Desktop
one year ago
Test name Executions per second
jQuery - find ~ cached. 2696238.5 Ops/sec
jQuery - find ~ without cache. 2192156.5 Ops/sec
native - global 13068959.0 Ops/sec
native - cached. 1698685184.0 Ops/sec
jQuery - using context. 2296559.0 Ops/sec
jQuery - using data attributes. 990542.4 Ops/sec
jQuery init after using native DOM 1107535.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • jQuery - find ~ cached.

  • jQuery - find ~ without cache.

  • native - global

  • native - cached.

  • jQuery - using context.

  • jQuery - using data attributes.

  • jQuery init after using native DOM


;