Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Array join vs string template - Js
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (iPhone; CPU iPhone OS 18_6_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.6 Mobile/15E148 Safari/604.1
Browser:
Mobile Safari 18
Operating system:
iOS 18.6.2
Device Platform:
Mobile
Date tested:
8 months ago
Test name
Executions per second
Array
19483370.0 Ops/sec
template literal
513986432.0 Ops/sec
Script Preparation code:
var str = "Hello World" var newStr = "Goodbye" var start = 5
Tests:
Array
const foo = [ str, newStr, start ].join('|')
template literal
const foo = `${str}|${newStr}|${start}`