Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Convert Number to String random
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Browser:
Chrome 121
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
2 years ago
empty string plus n
15.9M/s
n plus empty string
15.7M/s
to string
6.5M/s
string n
4.8M/s
View exact numbers
Test name
Executions per second
✓
empty string plus n
15,890,921 Ops/sec
n plus empty string
15,748,863 Ops/sec
to string
6,489,044 Ops/sec
string n
4,787,678 Ops/sec
Tests:
string n
String(Math.random() / 100);
to string
(Math.random() / 100).toString();
empty string plus n
""+(Math.random() / 100)
n plus empty string
(Math.random() / 100)+"";