HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 21 community runs

Desktop Results:
Chrome 15 runs
String Concatenation
822/s
Template Literal
473/s
Array.join()
20/s

Fastest: String Concatenation (41.5x faster)

View exact numbers
  • String Concatenation: 822 ops/sec
  • Template Literal: 473 ops/sec
  • Array.join(): 20 ops/sec
Firefox 6 runs
String Concatenation
2K/s
Template Literal
651/s
Array.join()
26/s

Fastest: String Concatenation (87.8x faster)

View exact numbers
  • String Concatenation: 2,281 ops/sec
  • Template Literal: 651 ops/sec
  • Array.join(): 26 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
    Template Literal
    String Concatenation
    Array.join()

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36 Edg/147.0.0.0
Chrome 147 on Windows
View result in a separate tab
String Concatenation
1K/s
Template Literal
459/s
Array.join()
23/s
View exact numbers
Test name Executions per second
String Concatenation 1,025 Ops/sec
Template Literal 459 Ops/sec
Array.join() 23 Ops/sec