Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
test performance of string type with interpolation
(version: 0)
Comparing performance of:
single quotes vs double quotes vs backticks
Created:
7 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var name = "Oatmeal";
Tests:
single quotes
'hi I\'m a peanut whose name is ' + name;
double quotes
"hi I'm a peanut whose name is " + name;
backticks
`hi I'm a peanut whose name is ${name}`
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
single quotes
double quotes
backticks
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
string-interpolation-vs-toString
Concatenation vs Interpolation 18239712aisdofaseifjasl
string-interpolation-vs-string-type-coercion
string-interpolation-vs-to-string
BigInt interpolation vs toString
Comments
Confirm delete:
Do you really want to delete benchmark?