number to string (v10)

Revision 10 of this benchmark created on


Preparation HTML

<script>
  var num = (1024 * 1024 * 1024 * 1024),
      str;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
String constructor
str = String(num);
ready
toString
str = num.toString();
ready
new String
str = new String(num)
ready
String literal
str = "" + num + "";
ready

Revisions

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