MyTest123

JavaScript performance comparison

Test case created

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
First
$.each(myArray, function(i, item) {

  var newListItem = "<li>" + item + "</li>";

  $("#ballers").append(newListItem);

});
pending…
Second
var frag = document.createDocumentFragment();

$.each(myArray, function(i, item) {

  var newListItem = document.createElement("li");
  var itemText = document.createTextNode(item);

  newListItem.appendChild(itemText);

  frag.appendChild(newListItem);

});

$("#ballers")[0].appendChild(frag);
pending…

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

Compare results of other browsers

0 comments

Add a comment