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; rv:140.0) Gecko/20100101 Firefox/140.0
Browser:
Firefox 140
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one month ago
join
366/s
toString
351/s
string
252/s
stringify
246/s
View exact numbers
Test name
Executions per second
✓
join
366 Ops/sec
toString
351 Ops/sec
string
252 Ops/sec
stringify
246 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())