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
concat 2x
174.4M/s
concat
168.2M/s
join
16.6M/s
join 2x
10.9M/s
View exact numbers
Test name
Executions per second
✓
concat 2x
174,410,544 Ops/sec
concat
168,220,128 Ops/sec
join
16,592,169 Ops/sec
join 2x
10,916,826 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(',')