Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
stringify vs join vs string vs tostring
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Browser:
Chrome 142
Operating system:
Windows
Device Platform:
Desktop
Date tested:
3 months ago
Test name
Executions per second
stringify
348.2 Ops/sec
join
287.5 Ops/sec
string
289.3 Ops/sec
toString
257.2 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
var arr = Array.from({ length: 10000 }).map((_, i) => [Math.random()*1000, Math.random()*1000]);
Tests:
stringify
arr.map(x => JSON.stringify(x))
join
arr.map(x => x.join(","))
string
arr.map(x => String(x))
toString
arr.map(x => x.toString())