Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36
Chrome 89
Linux
Desktop
3 years ago
Test name Executions per second
Jquery with caching - find. 394812.4 Ops/sec
jquery without caching 254895.9 Ops/sec
Native DOM - global 2605592.8 Ops/sec
Native DOM - cached. 5740239.0 Ops/sec
jquery with caching - without find ( using context.) 296164.7 Ops/sec
jQuery - using data attributes. 214607.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


;