jQuery vs JavaScript Performance Comparison

JavaScript performance comparison

Revision 140 of this test case created by Alissa

Preparation code

<div id="hello"></div>
<div class="bye"></div>
<script src="https://code.jquery.com/jquery-2.0.3.min.js"></script>
<script src="https://cdn.sencha.io/ext-4.2.0-gpl/ext-all.js"></script>

Preparation code output

<div id="hello"></div> <div class="bye"></div> <script src="https://cdn.sencha.io/ext-4.2.0-gpl/ext-all.js"></script>

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec
JavaScript Class Selector
var $el = document.getElementsByClassName('bye')[0];


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