Run details:
Mozilla/5.0 (Linux; Android 11; Pixel 2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Mobile Safari/537.36
Chrome Mobile 92
Android
Mobile
3 years ago
Test name Executions per second
String concatentation 1310.4 Ops/sec
Array join 3123.7 Ops/sec
Array join (w/ push) 38.0 Ops/sec
Array reduce 4.2 Ops/sec
Array reduce trim 4.3 Ops/sec
Script Preparation code:
Tests:
  • String concatentation

  • Array join

  • Array join (w/ push)

  • Array reduce

  • Array reduce trim