Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
int to string convertation
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:135.0) Gecko/20100101 Firefox/135.0
Browser:
Firefox 135
Operating system:
Ubuntu
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
String
131526.0 Ops/sec
toString(10)
132893.3 Ops/sec
toString
135607.5 Ops/sec
interpolation
145555.4 Ops/sec
plus
133422.9 Ops/sec
Tests:
String
const arr = Array(1000).map(() => ~~(Math.random() * 1000)) const b = arr.map((num) => String(num))
toString(10)
const arr = Array(1000).map(() => ~~(Math.random() * 1000)) const b = arr.map((num) => num.toString(10))
toString
const arr = Array(1000).map(() => ~~(Math.random() * 1000)) const b = arr.map((num) => num.toString())
interpolation
const arr = Array(1000).map(() => ~~(Math.random() * 1000)) const b = arr.map((num) => `${num}`)
plus
const arr = Array(1000).map(() => ~~(Math.random() * 1000)) const b = arr.map((num) => '' + num)