jquery vs prototype selectors

Benchmark created on


Preparation HTML

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/prototype/1/prototype.js"></script>
<script src="http://xuijs.com/downloads/xui-2.3.2.min.js"></script>

<div id="findMe" class="imHidding"></div>

Test runner

Ready to run.

Testing in
TestOps/sec
jquery-selector-id
$('#findMe')
ready
prototype-selector-id
$('findMe')
ready
jquery-selector-class
$('.imHidding')
ready
prototype-selector-class
$$('.imHidding')
ready
xui-selector-id
x$('#findMe')
ready
xui-selector-class
x$('.imHidding')
ready

Revisions

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