Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Chrome 134
Mac OS X 10.15.7
Desktop
8 days ago
Test name Executions per second
concat 4855460.5 Ops/sec
template string 5493755.0 Ops/sec
HTML Preparation code:
AخA
 
1
<!--your preparation HTML code goes here-->
Script Preparation code:
 
const a = "hello "
for(i=0; i<10; i++){
a += "world"
}
Tests:
  • concat

     
    let a = "hello "
    for(i=0; i<10; i++){
    a += "world"
    }
  • template string

    x
     
    let a
    for(i=0; i<10; i++){
        `${a} world`
    }