Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
string-interpolation-vs-contatination-with-nested-interpolation
(version: 0)
Comparing performance of:
string-interpolation vs contatination-with-nested-interpolation
Created:
2 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var luckyNumber = Math.round(Math.random() * 100);
Tests:
string-interpolation
`SomeString: your lucky number for today is: ${luckyNumber}`
contatination-with-nested-interpolation
'SomeString:' + `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
contatination-with-nested-interpolation
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
2 years ago
)
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Browser/OS:
Chrome 122 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
string-interpolation
15381358.0 Ops/sec
contatination-with-nested-interpolation
14655409.0 Ops/sec
Related benchmarks:
string-interpolation-vs-to-stirng
string-interpolation-vs-toString
string-interpolation-vs-string-type-coercion
string-interpolation-vs-concatenation-2
string-interpolation-vs-to-string
Comments
Confirm delete:
Do you really want to delete benchmark?