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
interpolation
146K/s
toString
136K/s
plus
133K/s
toString(10)
133K/s
String
132K/s
View exact numbers
Test name
Executions per second
✓
interpolation
145,555 Ops/sec
toString
135,608 Ops/sec
plus
133,423 Ops/sec
toString(10)
132,893 Ops/sec
String
131,526 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)