toString vs interpolation

Benchmark created on


Setup

var num = Math.round(Math.random() * 100);

Test runner

Ready to run.

Testing in
TestOps/sec
Str interpolation
var a = `${num}`;
ready
toString
var a = num.toString();
ready

Revisions

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