tedtestDomperf

JavaScript performance comparison

Revision 2 of this test case created

Info

Test DOM find performance

Preparation code

<style type="text/css">
span {
    display: none;
}
#show {
    display: inline;
}
</style>
<div id="popup">
  <span>1
  </span>
  <span id="show">2
  </span>
  <span>3
  </span>
  <span>4
  </span>
</div>
<script src="http://yui.yahooapis.com/3.8.1/build/yui/yui-min.js">
</script>

Preparation code output

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
siblings
YUI().use('node', function(Y) {
  Y.all("span").item(2).setStyle("display", "inline").siblings("span").setStyle("display", "none");
});
pending…
normal
YUI().use('node', function(Y) {
  Y.all("span").item(2).setStyle("display", "inline");
  Y.all("span").item(1).setStyle("display", "none");
});
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