Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
array join vs toString js vs json
test
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Android 15; Mobile; rv:142.0) Gecko/142.0 Firefox/142.0
Browser:
Firefox Mobile 142
Operating system:
Android
Device Platform:
Mobile
Date tested:
11 months ago
join
17.0M/s
toString
16.4M/s
json
7.6M/s
View exact numbers
Test name
Executions per second
✓
join
16,964,844 Ops/sec
toString
16,400,115 Ops/sec
json
7,645,064 Ops/sec
Script Preparation code:
var arr = ['1',2,null,undefined,'5','6','7','8']
Tests:
join
arr.join()
toString
arr.toString()
json
JSON.stringify(arr)