Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Str concat vs Array join to put strings together
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:143.0) Gecko/20100101 Firefox/143.0
Browser:
Firefox 143
Operating system:
Linux
Device Platform:
Desktop
Date tested:
7 months ago
Test name
Executions per second
Str concat
5172.1 Ops/sec
Array join
5157.0 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Tests:
Str concat
let str = ''; for (let i = 0; i < 1000; i += 1) { str += Math.floor(Math.random() * Date.now()).toString(36); } console.log(str);
Array join
let str = []; for (let i = 0; i < 1000; i += 1) { str.push(Math.floor(Math.random() * Date.now()).toString(36)); } console.log(str.join(''));