tedtestDomperf

JavaScript performance comparison

Revision 5 of this test case created

Info

Test DOM find performance

Preparation code

<div id="popup">
  <span style="display: none;">1
  </span>
  <span style="display: inline;">2
  </span>
  <span style="display: none;">3
  </span>
  <span style="display: none;">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