Node vs Double select (v20)

Revision 20 of this benchmark created by Bryan on


Description

Testing on Search Responded

Preparation HTML

<script src="https://code.jquery.com/jquery.js">
</script>
<script>var jQ17 = jQuery.noConflict();</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>var jQ164 = jQuery.noConflict();</script>

Setup

jQ164.fn.filterNode = jQ17.fn.filterNode = function(name){
       return this.filter(function(){
          return this.nodeName === name;
       });
    };
    
    jQ164.fn.SPFilterNode = function(name) {
      return this.find('*').filter(function() {
       return this.nodeName === name;
      });
    };
    
    var xData =  ''

Test runner

Ready to run.

Testing in
TestOps/sec
nodeName=['Property'] 1.9.1
jQ164(xData).find("[nodeName='Property']").each(function() {
});
ready
z\\:row, row 1.9.1
jQ164(xData).find("Property").each(function() {
});
ready
z\\:row, row 1.7
 
ready
Custom plugin 1.9.1
jQ164(xData).SPFilterNode("Property").each(function() {
   // Do something
}); 
ready
Custom plugin 1.7
 
ready

Revisions

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