Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Stringify vs join on flat string arrays
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
Browser:
Chrome 113
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
JSON
284.6 Ops/sec
join
353.3 Ops/sec
Tests:
JSON
const a = [] for(let i = 0; i < 10000; i++) { a.push(i.toString().repeat(10)) } const b = JSON.stringify(a)
join
const a = [] for(let i = 0; i < 10000; i++) { a.push(i.toString().repeat(10)) } const b = a.join()