Editing ajile: Path Resolution Speed Test 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) Tests how quickly each ajile version converts a multi-level namespace into a file path or URL. 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 type="text/javascript"> function ajile (version) { var script = document.createElement ("script"); script.type = "text/javascript"; script.async = false; ajile.script = script; version = version ? ("."+version+".") : "."; var host = ajile.host [version]; script.src = ajile [host || "site"] + ajile.space + version + ajile.config ; document.lastChild.firstChild.appendChild (script); } ajile.cleanup = function unloadAjile () { try { Ajile.Unload(); } catch (e) { window.console && console.log ("Failed to unload ajile "+Ajile.GetVersion()); } ajile.script && (ajile.script.parentNode == document.lastChild.firstChild) && ajile.script.parentNode.removeChild (ajile.script) ; delete ajile.script; delete com.iskitz.ajile; delete window.Ajile; delete window.Import; delete window.ImportAs; delete window.Include; delete window.Namespace; }; ajile.host = {/*"" : "github" , ".src." : "github" ,*/ }; ajile.project = "https://raw.github.com/iskitz/ajile/master/lib/ajile/"; ajile.site = "http://ajile.net/use/"; ajile.space = "com.iskitz.ajile"; ajile.config = "js?cloak,mvcoff,mvcshareoff,override"; ajile.resolvePath = function testPathResolutionSpeed (deferred, version) { ajile (version); var thread = setInterval (function isAjileLoaded() { if (!(this.Ajile && this.Import)) return; Namespace ("net", "http://ajile.net/test/"); Import ("net.ajile.test.speed"); deferred.resolve(); clearInterval (thread); clearTimeout (safety); },0); var safety = setTimeout (function abortTest() { clearInterval (thread); clearTimeout (safety); deferred.resolve(); if (!this.Ajile) { throw new Error ("Unable to load ajile"+ version); } }, 5000); }; </script> <!-- Prefetch ajile scripts so they're cached minimizing the likelihood of network latency negatively impacting the test results. --> <script src="http://ajile.net/test/net.ajile.test.speed.js"></script> <script src="http://ajile.net/use/com.iskitz.ajile.js?cloak,mvcoff,mvcshareoff,override"></script> <script src="http://ajile.net/use/com.iskitz.ajile.1.7.3.js?cloak,mvcoff,mvcshareoff,override"></script> <script src="http://ajile.net/use/com.iskitz.ajile.1.6.8.js?cloak,mvcoff,mvcshareoff,override"></script> <script src="http://ajile.net/use/com.iskitz.ajile.1.5.5.js?cloak,mvcoff,mvcshareoff,override"></script> <script src="http://ajile.net/use/com.iskitz.ajile.1.4.5.js?cloak,mvcoff,mvcshareoff,override"></script> <script src="http://ajile.net/use/com.iskitz.ajile.1.3.8.js?cloak,mvcoff,mvcshareoff,override"></script> <script src="http://ajile.net/use/com.iskitz.ajile.1.2.1.js?cloak,mvcoff,mvcshareoff,override"></script> <script src="http://ajile.net/use/com.iskitz.ajile.1.1.5.js?cloak,mvcoff,mvcshareoff,override"></script> <script src="http://ajile.net/use/com.iskitz.ajile.0.9.9.2.js?cloak,mvcoff,mvcshareoff,override"></script> <script src="http://ajile.net/use/com.iskitz.ajile.0.7.9.js?cloak,mvcoff,mvcshareoff,override"></script> <script src="http://ajile.net/use/com.iskitz.ajile.0.6.5.js?cloak,mvcoff,mvcshareoff,override"></script> 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) ajile.cleanup(); 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 ajile.resolvePath (deferred); Test 2 Title Async (check if this is an asynchronous test) Code ajile.resolvePath (deferred, "0.6.5"); Test 3 Title Async (check if this is an asynchronous test) Code ajile.resolvePath (deferred, "0.7.9"); Test 4 Title Async (check if this is an asynchronous test) Code ajile.resolvePath (deferred, "0.9.9.2"); Test 5 Title Async (check if this is an asynchronous test) Code ajile.resolvePath (deferred, "1.1.5"); Test 6 Title Async (check if this is an asynchronous test) Code ajile.resolvePath (deferred, "1.2.1"); Test 7 Title Async (check if this is an asynchronous test) Code ajile.resolvePath (deferred, "1.3.8"); Test 8 Title Async (check if this is an asynchronous test) Code ajile.resolvePath (deferred, "1.4.5"); Test 9 Title Async (check if this is an asynchronous test) Code ajile.resolvePath (deferred, "1.5.5"); Test 10 Title Async (check if this is an asynchronous test) Code ajile.resolvePath (deferred, "1.6.8"); Test 11 Title Async (check if this is an asynchronous test) Code ajile.resolvePath (deferred, "1.7.3");