Script Preparation code:
Tests:

Historical Performance Data aggregated from 32 community runs

Desktop Results:
Chrome 23 runs
using template literals
127/s
using concat function
113/s
using plus operator
112/s

Fastest: using template literals (1.1x faster)

View exact numbers
  • using template literals: 127 ops/sec
  • using concat function: 113 ops/sec
  • using plus operator: 112 ops/sec
Firefox 9 runs
using template literals
179/s
using plus operator
177/s
using concat function
143/s

Fastest: using template literals (1.2x faster)

View exact numbers
  • using template literals: 179 ops/sec
  • using plus operator: 177 ops/sec
  • using concat function: 143 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    using plus operator
    using concat function
    using template literals

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:148.0) Gecko/20100101 Firefox/148.0
Firefox 148 on Mac OS X 10.15
View result in a separate tab
using plus operator
112/s
using template literals
112/s
using concat function
98/s
View exact numbers
Test name Executions per second
using plus operator 112 Ops/sec
using template literals 112 Ops/sec
using concat function 98 Ops/sec