Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15
Safari 15
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
String concatentation 14768.9 Ops/sec
Array join 22366.3 Ops/sec
Array join (w/ push) 41.3 Ops/sec
Array reduce 13.9 Ops/sec
Array reduce trim 4.5 Ops/sec
Script Preparation code:
Tests:
  • String concatentation

  • Array join

  • Array join (w/ push)

  • Array reduce

  • Array reduce trim