selector test

Benchmark created on


Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<div id="jestemdiv" class="jestemklasa">blah blah blah</div>

Test runner

Ready to run.

Testing in
TestOps/sec
getElementById
var mydiv = document.getElementById('jestemdiv');
ready
jQuery id
var mydiv = $("#jestemdiv");
ready
jQuery class
var myclass = $(".jestemklasa");
ready
getElementsByClassName
var mydiv = document.getElementsByClassName('jestemklasa');
ready

Revisions

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