Script Preparation code:
Tests:

Historical Performance Data aggregated from 38 community runs

Desktop Results:
Chrome 33 runs
template literal
6.2M/s
Array
5.0M/s

Fastest: template literal (1.2x faster)

View exact numbers
  • template literal: 6,242,299 ops/sec
  • Array: 5,021,521 ops/sec
Firefox 5 runs
template literal
159.5M/s
Array
21.4M/s

Fastest: template literal (7.5x faster)

View exact numbers
  • template literal: 159,535,520 ops/sec
  • Array: 21,394,362 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
    Array
    template literal

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 19 days ago)
Mozilla/5.0 (X11; Linux x86_64; rv:154.0) Gecko/20100101 Firefox/154.0
Firefox 154 on Linux
View result in a separate tab
template literal
57.1M/s
Array
9.5M/s
View exact numbers
Test name Executions per second
template literal 57,058,992 Ops/sec
Array 9,523,519 Ops/sec