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 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0
Browser:
Firefox 128
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
String
90133.8 Ops/sec
toString(10)
92333.3 Ops/sec
toString
98669.1 Ops/sec
interpolation
107229.3 Ops/sec
plus
96598.2 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)