number to string (v32)

Revision 32 of this benchmark created by Tim Oxley on


Preparation HTML

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

Test runner

Ready to run.

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

Revisions

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