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. 263360.2 Ops/sec
jquery without caching 234831.4 Ops/sec
Native DOM - global 2084160.4 Ops/sec
Native DOM - cached. 4242688.5 Ops/sec
jquery with caching - without find ( using context.) 224735.1 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


;