Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.4.1 Safari/605.1.15
Safari 16
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
String concatentation 4953.4 Ops/sec
Array join 6928.5 Ops/sec
Array join (w/ push) 13.7 Ops/sec
Array reduce 3.5 Ops/sec
Array reduce trim 2.0 Ops/sec
Script Preparation code:
Tests:
  • String concatentation

  • Array join

  • Array join (w/ push)

  • Array reduce

  • Array reduce trim