Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Test join vs concat string
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Browser:
Chrome 134
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
concat
129887552.0 Ops/sec
join
9661815.0 Ops/sec
concat 2x
125135880.0 Ops/sec
join 2x
6374048.5 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
/*your preparation JavaScript code goes here To execute async code during the script preparation, wrap it as function globalMeasureThatScriptPrepareFunction, example:*/ async function globalMeasureThatScriptPrepareFunction() { // This function is optional, feel free to remove it. // await someThing(); }
Tests:
concat
const sep = ',' const q = 'a' + sep + 'b' + sep + 'c'
join
const arr = ['a', 'b', 'c'] const q2 = arr.join(',')
concat 2x
const sep = ',' const q = 'a' + sep + 'b' + sep + 'c' + 'a' + sep + 'b' + sep + 'c'
join 2x
const arr = ['a', 'b', 'c', 'a', 'b', 'c'] const q2 = arr.join(',')