jqeury-selector-test (v24)

Revision 24 of this benchmark created by Nikitos on


Preparation HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

Setup

var $body = $('body'),
      $div = $('<div class="products"/>', {
        innerHTML: 'products'
      })
      for (var i = 0; i < 1000; i++) {
        $body.append($div)
      }

Test runner

Ready to run.

Testing in
TestOps/sec
1
var $products = $("div span");
var $privet = $("div span");
ready
2
var $products = $("div span");
var $privet = $("div span");
ready

Revisions

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