YUI selectors

Benchmark created by Matthew Taylor on


Preparation HTML

<!-- JS -->
<script type="text/javascript" src="http://yui.yahooapis.com/combo?3.3.0/build/yui/yui-min.js&3.3.0/build/oop/oop-min.js&3.3.0/build/dom/dom-base-min.js&3.3.0/build/dom/selector-native-min.js&3.3.0/build/dom/selector-css2-min.js&3.3.0/build/event-custom/event-custom-base-min.js&3.3.0/build/event/event-base-min.js&3.3.0/build/pluginhost/pluginhost-min.js&3.3.0/build/dom/dom-style-min.js&3.3.0/build/dom/dom-style-ie-min.js&3.3.0/build/dom/dom-screen-min.js&3.3.0/build/node/node-min.js&3.3.0/build/event/event-base-ie-min.js&3.3.0/build/event/event-delegate-min.js"></script>

<div id="foo"></div>

Test runner

Ready to run.

Testing in
TestOps/sec
native
// async test
YUI().use('node', function(Y) {
  var n = document.getElementById('foo'),
    node = Y.Node.create(n);
  deferred.resolve()
});
ready
YUI selector
// async test
YUI().use('node', function(Y) {
  var node = Y.one('foo');
  deferred.resolve()
});
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.

  • Revision 1: published by Matthew Taylor on