Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
Chrome 112
Windows
Desktop
one year ago
Test name Executions per second
String concatentation 1221.1 Ops/sec
Array join 575.8 Ops/sec
Array join (w/ push) 19.1 Ops/sec
Array reduce 7.9 Ops/sec
Array reduce trim 8.3 Ops/sec
Script Preparation code:
Tests:
  • String concatentation

  • Array join

  • Array join (w/ push)

  • Array reduce

  • Array reduce trim