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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Browser:
Chrome 135
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
concat
168220128.0 Ops/sec
join
16592169.0 Ops/sec
concat 2x
174410544.0 Ops/sec
join 2x
10916826.0 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(',')