Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0
Firefox 91
Linux
Desktop
2 years ago
Test name Executions per second
Using each (jQuery) 129962.7 Ops/sec
Using find (jQuery) 56446.6 Ops/sec
Search inside an Array of Strings (Vanilla JS) 6137085.5 Ops/sec
Search inside a HashMap of Strings (Vanilla JS) 735155712.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)


;