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/120.0.0.0 Safari/537.36 Edg/120.0.0.0
Browser:
Chrome 120
Operating system:
Windows
Device Platform:
Desktop
Date tested:
2 years ago
Benchmark engine:
Benchmark.js
Concatenation - plus symbol
1070.3M/s
Concatenation - template | array | join
17.9M/s
Concatenation - array | join
17.4M/s
View exact numbers
Test name
Executions per second
✓
Concatenation - plus symbol
1,070,291,008 Ops/sec
Concatenation - template | array | join
17,900,722 Ops/sec
Concatenation - array | join
17,385,952 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