String concatenation (v94)

Revision 94 of this benchmark created on


Description

Different ways to concatenate strings together

Test runner

Ready to run.

Testing in
TestOps/sec
replace string
var foo = ('-' + '' + '1,000,000.00').replace(',', '');
ready
replace regexp
var foo = ('-' + '' + '1,000,000.00').replace(/,/g, '')
ready
replace regexp 2
var foo = ('-' + '' + '1,000,000.00').replace(/[,-]/g, '')
ready
split join
var foo = ('-' + '' + '1,000,000.00').split(',').join('');
ready

Revisions

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