. String concatenation methods

Benchmark created by Truong Nguyen on


Test runner

Ready to run.

Testing in
TestOps/sec
the + operator
str = "a" + "b" + "c";
 
ready
the += operator
str = "a";
str += "b";
str += "c";
ready
array.join()
str = ['a', 'b', 'c'].join('');
ready
string.concat()
str = 'a';
str.concat('b', 'c');
ready

Revisions

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

  • Revision 1: published by Truong Nguyen on