topical media & game development

talk show tell print

mobile-query-three-bench-bench-tquery.selector.js / js



  benchsuite('Various Selectors', function(){
          var world;
  
          before(function(){
                  world        = tQuery.createWorld();
                  tQuery.createTorus().id('myId').addClass('myClass').addTo(world);
          });        
  
          after(function(){
                  world.destroy();
                  world        = null;
          });
  
          bench('geometry selector', function() {
                  tQuery('torus');
          });
          bench('id selector', function() {
                  tQuery('#myId');
          })
          bench('class selector', function() {
                  tQuery('.myClass');
          });
  });
  


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.