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
concat
129.9M/s
concat 2x
125.1M/s
join
9.7M/s
join 2x
6.4M/s
View exact numbers
Test name
Executions per second
✓
concat
129,887,552 Ops/sec
concat 2x
125,135,880 Ops/sec
join
9,661,815 Ops/sec
join 2x
6,374,048 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(',')