abaaso $() benchmarks

JavaScript performance comparison

Revision 2 of this test case created by Jason Mulligan

Info

Benchmarks of the global helper from abaaso 1.6+ against the copy from http://abaaso.com

Preparation code

<script src="http://abaaso.com/script/abaaso-min.js"></script>
<p>abaaso is a lightweight, RESTful JavaScript framework that eases the development of standards compliant applications.</p>
<p><em>REST</em> is supported out of the box. <em>Stateful Binding</em> allows for <em id="hateoas">HATEOAS</em>, or <em>Hypmedia As The Engine Of Application State</em>. abaaso is a <em>Level Three</em> library on the <a href="http://code.google.com/p/implementing-rest/wiki/RMM">Richardson Maturity Model</a>. You can control your application with the service responses!</p>
<p>The abaaso namespace is aliased onto $, so all classes &amp; public properties can be accessed from it. This allows for a nice syntax, such as $.get("uri");</p>
<p>Modules (add-ons) are supported, and should be registered with <em>define()</em>. Official modules can be downloaded from <a href="https://github.com/avoidwork">github</a>.</p>
<script>
  var i, nth;
</script>

Preparation code output

abaaso is a lightweight, RESTful JavaScript framework that eases the development of standards compliant applications.

REST is supported out of the box. Stateful Binding allows for HATEOAS, or Hypmedia As The Engine Of Application State. abaaso is a Level Three library on the Richardson Maturity Model. You can control your application with the service responses!

The abaaso namespace is aliased onto $, so all classes & public properties can be accessed from it. This allows for a nice syntax, such as $.get("uri");

Modules (add-ons) are supported, and should be registered with define(). Official modules can be downloaded from github.

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
Find by ID by iteration: undefined (1000)
for (i = 0, nth = 1000; i < nth; i++) { $("#"+i); }
pending…
Find by ID by iteration: undefined (10000)
for (i = 0, nth = 10000; i < nth; i++) { $("#"+i); }
pending…
Find by Class by iteration: undefined (1000)
for (i = 0, nth = 1000; i < nth; i++) { $("."+i); }
pending…
Find by Class by iteration: undefined (10000)
for (i = 0, nth = 10000; i < nth; i++) { $("."+i); }
pending…
Find paragraphs
$("p");
pending…
Find last paragraph (selector)
$("p:last");
pending…
Find anchors
$("a");
pending…
Find first anchor (selector)
$("a:first");
pending…
Find last anchor (selector)
$("a:last");
pending…
Find paragraphs with italics
$("p:has(em)");
pending…
Single DOM query
$("#hateoas");
pending…

Compare results of other browsers

Revisions

You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:

0 comments

Add a comment