Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Template string 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/140.0.0.0 Safari/537.36
Browser:
Chrome 140
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
10 months ago
By template string
193.0M/s
By separator
18.2M/s
View exact numbers
Test name
Executions per second
✓
By template string
192,974,064 Ops/sec
By separator
18,197,308 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
const joinBySeparator = (a, b) => [a, b].join(':'); const joinByTemplateString = (a, b) => `${a}:${b}`;
Tests:
By separator
const result = joinBySeparator('Lorem', 'ipsum');
By template string
const result = joinByTemplateString('Lorem', 'ipsum');