Editing NoFramework This edit will create a new revision. Your details (optional) Name Email (won’t be displayed; might be used for Gravatar) URL Test case details Title * Published (uncheck if you want to fiddle around before making the page public) Description (in case you feel further explanation is needed)(Markdown syntax is allowed) Bare Metal Are you a spammer? (just answer the question) Preparation code Preparation code HTML (this will be inserted in the <body> of a valid HTML5 document in standards mode) (useful when testing DOM operations or including libraries) <script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script src="//staging-ian.appmobi.com/game/jq.mobi.min.js"></script> <script src="//staging-ian.appmobi.com/game/zepto.min.js"></script> <script src="//dev.sencha.com/deploy/touch/sencha-touch.js"></script> <div id="container"></div> Include JavaScript libraries as follows: <script src="//cdn.ext/library.js"></script> Define setup for all tests (variables, functions, arrays or other objects that will be used in the tests) (runs before each clocked test loop, outside of the timed code region) (e.g. define local test variables, reset global variables, clear canvas, etc.) (see FAQ) Define teardown for all tests (runs after each clocked test loop, outside of the timed code region) (see FAQ) Code snippets to compare Test 1 Title Async (check if this is an asynchronous test) Code document.getElementById("container").innerHTML=""; $ = jq; var con = jq("#container"); var ul = jq("<ul/>"); var i; for (i = 0; i < 100; i++) { var li = jq("<li>hello world jq.Mobi</li>"); ul.append(li); } con.append(ul); Test 2 Title Async (check if this is an asynchronous test) Code document.getElementById("container").innerHTML=""; var con = jQuery("#container"); var ul = jQuery("<ul/>"); var i; for (i = 0; i < 100; i++) { var li =jQuery("<li>hello world jQuery</li>"); ul.append(li); } con.append(ul); Test 3 Title Async (check if this is an asynchronous test) Code document.getElementById("container").innerHTML=""; var con = Zepto("#container"); var ul = Zepto("<ul/>"); var i; for (i = 0; i < 100; i++) { var li =Zepto("<li>hello world Zepto</li>"); ul.append(li); } con.append(ul); Test 4 Title Async (check if this is an asynchronous test) Code document.getElementById("container").innerHTML=""; var container = document.getElementById('container'); var items = []; var i; for (i = 0; i < 100; i++) { items.push("<li>hello world NoFramework</li>"); } container.innerHTML = "<ul>" + items.join("") + "</ul>"; Test 5 Title Async (check if this is an asynchronous test) Code document.getElementById("container").innerHTML=""; var container = document.getElementById('container'); var cf = document.createDocumentFragment(); for (var i = 0; i < 100; i++) { var li = document.createElement('li'); li.textContent = 'hello world NoFramework'; cf.appendChild(li); } container.appendChild(cf); Test 6 Title Async (check if this is an asynchronous test) Code document.getElementById("container").innerHTML=""; var con = Ext.get("container"); var ul = {tag: 'ul', cn: []}; var i; for (i = 0; i < 100; i++) { ul.cn.push({ tag: 'li', html: "hello world Sencha FTW"}); } con.createChild(ul); Test 7 Title Async (check if this is an asynchronous test) Code document.getElementById("container").innerHTML=""; var container = document.getElementById('container'); var cf = document.createDocumentFragment(); var li = document.createElement('li'); for (var i = 0; i < 100; i++) { var li2 = li.cloneNode(false); li2.textContent = 'hello world NoFramework'; cf.appendChild(li2); } container.appendChild(cf); Test 8 Title Async (check if this is an asynchronous test) Code document.getElementById("container").innerHTML=""; var container = document.getElementById('container'); var div = document.createElement('div'); for (var i = 0; i < 100; i++) { var li = document.createElement('li'); li.textContent = 'hello world NoFramework'; div.appendChild(li); } container.appendChild(div); Test 9 Title Async (check if this is an asynchronous test) Code document.getElementById("container").innerHTML=""; var container = document.getElementById('container'); var div = document.createElement('div'); var li = document.createElement('li'); for (var i = 0; i < 100; i++) { var li2 = li.cloneNode(false); li2.textContent = 'hello world NoFramework'; div.appendChild(li2); } container.appendChild(div);