Variable vs Template Literal

Benchmark created on


Setup

var str = 'Hello world';

Test runner

Ready to run.

Testing in
TestOps/sec
variable only
console.log(str)
ready
template literal
console.log(`${str}`)
ready

Revisions

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