Query w/ QSA (v4)

Revision 4 of this benchmark created by David Mark on


Description

Query that is known not to work with IE 8 QSA (forcing fallback to legacy query script)

NOTE: jQuery often fares better speed-wise in old IE versions, but it doesn't do all of the work required to get accurate results. Not sure if it gets this one right though.

Preparation HTML

<script>
/*
 * Context here is an HTML5 document
 * Appropriate build for this context would exclude XHTML support
 * Next line asserts document will create an HTML DOM
 * There are virtually no documents on the Web that create an XHTML DOM
 *
 */
var API = { disableXmlParseMode: true };
</script>
<script src="//www.cinsoft.net/mylib099-min.js"></script>
<script src="//www.cinsoft.net/mylib-qsa-min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
  var getEBCS = API.getEBCS;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
My Library
new Q(getEBCS('div:nth-child(2n-1)')); // NOTE: OO interface (Q) won't use QSA add-on
ready
jQuery
$('div:nth-child(2n-1)');
ready

Revisions

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

  • Revision 1: published by David Mark on
  • Revision 4: published by David Mark on