Cast Number to String

Benchmark created by Gresham Schlect on


Setup

var number = 5.5, string;

Test runner

Ready to run.

Testing in
TestOps/sec
String()
string = String(number);
ready
.toString()
string = number.toString();
ready
concat empty string
string = number + '';
ready

Revisions

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

  • Revision 1: published by Gresham Schlect on