Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0
Firefox 64
Windows
Desktop
5 years ago
Test name Executions per second
Using each (jQuery) 112721.4 Ops/sec
Using find (jQuery) 48714.6 Ops/sec
Search inside an Array of Strings (Vanilla JS) 4755655.0 Ops/sec
Search inside a HashMap of Strings (Vanilla JS) 34395304.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Using each (jQuery)

  • Using find (jQuery)

  • Search inside an Array of Strings (Vanilla JS)

  • Search inside a HashMap of Strings (Vanilla JS)


;