Query w/ QSA

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 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