Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
FAQ
Register
Log In
Run results for:
string-interpolation-vs-concatenation-vs-join
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
Benchmark engine:
Benchmark.js
string-interpolation
16.0M/s
string-concatenation
14.5M/s
string-appebd
13.9M/s
string-join
10.2M/s
View exact numbers
Test name
Executions per second
✓
string-interpolation
16,015,872 Ops/sec
string-concatenation
14,498,458 Ops/sec
string-appebd
13,852,171 Ops/sec
string-join
10,211,573 Ops/sec
Script Preparation code:
var luckyNumber = Math.round(Math.random() * 100); var result = '';
Tests:
string-interpolation
result = `your lucky number for today is: ${luckyNumber}`
string-concatenation
result = 'your lucky number for today is:' + ' ' + luckyNumber
string-join
result = ['your lucky number for today is:', luckyNumber].join(' ');
string-appebd
result = 'your lucky number for today is:'.concat(' ').concat(luckyNumber);