Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
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
Benchmark engine:
Benchmark.js
Concatenation - plus symbol
1019.2M/s
Concatenation - template | array | join
16.5M/s
Concatenation - array | join
13.9M/s
View exact numbers
Test name
Executions per second
✓
Concatenation - plus symbol
1,019,170,048 Ops/sec
Concatenation - template | array | join
16,538,240 Ops/sec
Concatenation - array | join
13,936,731 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