Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
test string
(version: 1)
string
Comparing performance of:
concat vs template string
Created:
one year ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<!--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
let a for(i=0; i<10; i++){ `${a} world` }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
concat
template string
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
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
Browser/OS:
Chrome 134 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
concat
4855460.5 Ops/sec
template string
5493755.0 Ops/sec
Related benchmarks:
Let var differencee
Concatenation vs substring
template
String() vs .toString() vs template string vs concat with string
Template vs string concat
Template vs string concat 2
Template vs string concat 3
String vs template string
+= vs join
Comments
Confirm delete:
Do you really want to delete benchmark?