Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
Chrome 112
Linux
Desktop
one year ago
Test name Executions per second
Using each (jQuery) 245195.5 Ops/sec
Using find (jQuery) 182074.4 Ops/sec
Search inside an Array of Strings (Vanilla JS) 3366616.8 Ops/sec
Search inside a HashMap of Strings (Vanilla JS) 3626303.2 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)


;