toString vs concat (v2)

Revision 2 of this benchmark created on


Preparation HTML

<script>
  var i;
  var result;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
tostring
for (i = 0; i < 100000; ++i) {
 result = i.toString();
}
ready
plus quotes
for (i = 0; i < 100000; ++i) {
 result = '' + i;
}
ready

Revisions

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