Run details:
Mozilla/5.0 (Windows NT 6.0; rv:68.9) Goanna/4.5 PaleMoon/28.9.0a1
Pale Moon (Firefox Variant) 28
Windows Vista
Desktop
4 years ago
Test name Executions per second
Using each (jQuery) 51030.7 Ops/sec
Using find (jQuery) 18793.4 Ops/sec
Search inside an Array of Strings (Vanilla JS) 4341942.0 Ops/sec
Search inside a HashMap of Strings (Vanilla JS) 56397940.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)


;