Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
stringify vs join vs tostring
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:
9 months ago
Test name
Executions per second
stringify
44.2 Ops/sec
join
57.8 Ops/sec
toString
57.2 Ops/sec
Script Preparation code:
var arr_small = Array.from({ length: 1000 }).map((_, i) => `test_val${i}`); var arr_big = Array.from({ length: 1000000 }).map((_, i) => `test_val${i}`);
Tests:
stringify
JSON.stringify(arr_small); JSON.stringify(arr_big);
join
arr_small.join(''); arr_big.join('');
toString
arr_small.toString(); arr_big.toString();