Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36
Chrome 116
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
Vanilla JS 33000.3 Ops/sec
Lodash 24075.4 Ops/sec
for each 18330.7 Ops/sec
for loop 19174.9 Ops/sec
new Set 28937.8 Ops/sec
Vanilla JS v2 28100.2 Ops/sec
lodash v2 31883.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Vanilla JS

  • Lodash

  • for each

  • for loop

  • new Set

  • lodash v2


;