jQuery random tests (v14)

Revision 14 of this benchmark created on


Preparation HTML

<div id="content">
  <form method="post" action="/">
    <h2>Traffic Light</h2>
    <ul id="traffic_light" class="traffics">
      <image class="i1" />
      <li><input type="radio" class="on" name="light" value="red" id="red"/> Red</li>
      <li><input type="radio" class="off" name="light" value="yellow" /> Yellow</li>
      <li><input type="radio" class="off" name="light" value="green" /> Green</li>
    </ul>
    <input class="button" id="traffic_button" type="submit" value="Go" />
  </form>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

Test runner

Ready to run.

Testing in
TestOps/sec
class selector
$('.on')
ready
tag qualified class selector
$('.traffics .on')
ready
#id descendant class selector
$('#red')
ready
#id descendant tag qualified class selector
$('#content input#red')
ready
$('.traffics img')
ready
$('.i1')
ready

Revisions

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