Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
string-interpolation-vs-toString
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:142.0) Gecko/20100101 Firefox/142.0
Browser:
Firefox 142
Operating system:
Mac OS X 10.15
Device Platform:
Desktop
Date tested:
11 months ago
toSstring
1593.0M/s
string-interpolation
310.6M/s
View exact numbers
Test name
Executions per second
✓
toSstring
1,592,983,808 Ops/sec
string-interpolation
310,554,016 Ops/sec
Script Preparation code:
var luckyNumber = Math.round(Math.random() * 100);
Tests:
string-interpolation
` ${luckyNumber}`
toSstring
luckyNumber.toString()