Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
string-interpolation-vs-concatenation with two variables
(version: 1)
Comparing performance of:
string-interpolation vs string-concatenation
Created:
one year ago
by:
Guest
Jump to the latest result
Script Preparation code:
var luckyNumber = Math.round(Math.random() * 100); var string = "your lucky number for today is:";
Tests:
string-interpolation
`${string} ${luckyNumber}`
string-concatenation
'your lucky number for today is: ' + luckyNumber
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
string-interpolation
string-concatenation
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
5 months ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Browser/OS:
Chrome 142 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
string-interpolation
146219904.0 Ops/sec
string-concatenation
151764272.0 Ops/sec
Related benchmarks:
string-interpolation-vs-concatenation
string-interpolation-vs-concatenation-extended
string-interpolation-vs-concatenation-performance
string-interpolation-vs-concatenation-2
string-interpolation-vs-concatenation-2.1
string-interpolation-vs-concatenation multi variable
string-interpolation2-vs-concatenation2
string-interpolation-vs-concatenation-vs-concatenation-with-interpolation
string-interpolation-vs-concatenation-vs-concatenation-with-interpolation-1
Comments
Confirm delete:
Do you really want to delete benchmark?