string concatenation (v2)

Revision 2 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
with empty strings
var b = 10;
var c = 10;
var a = "" + a + "" + c;
ready
with toString()
var b = 10;
var c = 10;
var a = b.toString() + c.toString()
ready
with floats and empty strings
var b = 10.1234;
var c = 10.1235;
var a = "" + a + "" + c;
ready
with floats and toString()
var b = 10.1234;
var c = 10.1235;
var a = b.toString() + c.toString()
ready
using array join
var b = 10.1234;
var c = 10.1235;
var a = [b, c].join('')
ready

Revisions

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