toString() vs ""+ Cast (v2)

Revision 2 of this benchmark created by Red Forks on


Setup

var i = 100;

Test runner

Ready to run.

Testing in
TestOps/sec
toString()
var b = i.toString();
ready
"" +
var b = "" + i;
ready
String()
String(i);
ready

Revisions

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