Do yui nodes get cached?

JavaScript performance comparison

Test case created by Do yui nodes get cached?

Preparation code

<div class="foobar">
  <div class="foobar1">
    <div class="foobar2">
      <div class="foobar3"></div>
      <div class="foobar4"></div>
      <div class="foobar5"></div>
      <div class="foobar6"></div>
      <div class="foobar7"></div>
    </div>
  </div>
</div>
<script src="http://yui.yahooapis.com/3.8.1/build/yui/yui-min.js">
</script>
<script>
  YUI().use("node", function(Y) {
    window.Y = Y;
  });
</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
cache
Y.one(".foobar7");
Y.one(".foobar7");
Y.one(".foobar7");
Y.one(".foobar7");
 
pending…
saved
Y.one(".foobar3");
Y.one(".foobar4");
Y.one(".foobar5");
Y.one(".foobar6");
 
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