number to string (v29)

Revision 29 of this benchmark created by andy on


Preparation HTML

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

Test runner

Ready to run.

Testing in
TestOps/sec
String literal
str = "";
str += num;
ready
String constructor
str = num + '';
ready
toString
str = '' + num;
ready
String Literal simple
str = "" + num;
ready

Revisions

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