string concat vs array join (v17)

Revision 17 of this benchmark created on


Setup

var JSONMember = ["<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>","<div>"];
  var final = "";

Test runner

Ready to run.

Testing in
TestOps/sec
Concat
JSONMember.forEach(function(str) {
   final += "<li>" + str + "</li>";
});
ready
Join
final = "<li>" + JSONMember.join("</li><li>") + "</li>";
ready

Revisions

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