Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Concatenation - comparing methods
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/117.0.0.0 Safari/537.36
Browser:
Chrome 117
Operating system:
Windows
Device Platform:
Desktop
Date tested:
2 years ago
Test name
Executions per second
Concatenation - template | array | join
16538240.0 Ops/sec
Concatenation - array | join
13936731.0 Ops/sec
Concatenation - plus symbol
1019170048.0 Ops/sec
Tests:
Concatenation - template | array | join
const root = 'www.root.com' let search = 'search' let result = `${[ root, search ].join('/')}`;
Concatenation - array | join
const root = 'www.root.com' let search = 'search' let result = [ root, search ].join('/');
Concatenation - plus symbol
const root = 'www.root.com' const search = 'search' let result = root + '/' + search