Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 14_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 [FBAN/FBIOS;FBDV/iPhone8,1;FBMD/iPhone;FBSN/iOS;FBSV/14.5.1;FBSS/2;FBID/phone;FBLC/vi_VN;FBOP/5]
Mobile Safari 14
iOS 14.5.1
Mobile
3 years ago
Test name Executions per second
Splice 3791435.5 Ops/sec
Slice 22053738.0 Ops/sec
Concat 3695706.2 Ops/sec
Spread 168656960.0 Ops/sec
For-i 13432609.0 Ops/sec
For-of 7156066.5 Ops/sec
While 15189131.0 Ops/sec
From 2291228.8 Ops/sec
Lodash 2530901.8 Ops/sec
HTML Preparation code:
Tests:
  • Splice

  • Slice

  • Concat

  • Spread

  • For-i

  • For-of

  • While

  • From

  • Lodash