Run details:
Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Firefox/60.0
Firefox 60
Linux
Desktop
5 years ago
Test name Executions per second
Using each (jQuery) 216524.2 Ops/sec
Using find (jQuery) 103933.1 Ops/sec
Search inside an Array of Strings (Vanilla JS) 7372183.5 Ops/sec
Search inside a HashMap of Strings (Vanilla JS) 67733184.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)


;