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
Go 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:
8 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
string-concatenation
151.8M/s
string-interpolation
146.2M/s
View exact numbers
Test name
Executions per second
✓
string-concatenation
151,764,272 Ops/sec
string-interpolation
146,219,904 Ops/sec
Related benchmarks
string-interpolation-vs-concatenation
string-interpolation-vs-concatenation-performance
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?