Combine with space

Benchmark created on


Setup

const str1 = "test", str2 = "test", str3 = "test"

Test runner

Ready to run.

Testing in
TestOps/sec
using template
const combined = `${str1} ${str3} ${str3}`
ready
using join
const combined = [str1,str2,str3].join(" ")
ready
string concat
const combined = str1 + " " + str2 + " " + str3
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.