- console.log("new", benchmarkString("$('#child').closest('" + item + "')", 5000, name));
- console.log("old", benchmarkString("old('#child').closest('" + item + "')", 5000, name));
+ jQuery("#results").append("<li>" + name + "<ul>" +
+ "<li>new: " + benchmarkString("$('#child').closest('" + item + "')", 2500, name) + "</li>" +
+ "<li>old: " + benchmarkString("old('#child').closest('" + item + "')", 2500, name) + "</li>"
+ + "</ul></li>");
+ }, 100);