Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
string-interpolation-vs-toString-vs-String
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:138.0) Gecko/20100101 Firefox/138.0
Browser:
Firefox 138
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
string-interpolation
311964864.0 Ops/sec
toSstring
2252224512.0 Ops/sec
String
2236065024.0 Ops/sec
Script Preparation code:
var luckyNumber = Math.round(Math.random() * 100);
Tests:
string-interpolation
` ${luckyNumber}`
toSstring
luckyNumber.toString()
String
String(luckyNumber)