Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36
Chrome 90
Mac OS X 10.15.7
Desktop
3 years ago
Test name Executions per second
Splice 23185832.0 Ops/sec
Slice 93575168.0 Ops/sec
Concat 4491185.0 Ops/sec
Spread 26245138.0 Ops/sec
For-i 28517116.0 Ops/sec
For-of 22536630.0 Ops/sec
While 35046824.0 Ops/sec
From 6435806.5 Ops/sec
Lodash 5604260.0 Ops/sec
HTML Preparation code:
Tests:
  • Splice

  • Slice

  • Concat

  • Spread

  • For-i

  • For-of

  • While

  • From

  • Lodash