class:jQuery vs Zesso

JavaScript performance comparison

Revision 2 of this test case created by tomByrer

Info

v2: updated libs, "VanillaJS"

Preparation code

<script src="//cdn.jsdelivr.net/jquery/1.11/jquery.min.js"></script>
<script src="//megacdn.tk/libraries/zesso.js"></script>
<div id="jq"></div>
<div id="zesso"></div>
<div id="b"></div>

Preparation code output

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
jQuery
jQuery('script#jq').addClass('jq');
pending…
ZessoJS
zesso('script#zesso').addClass('zesso');
pending…
VanillaJS
var b = document.getElementById('b');
b.classList.add('mjs');
pending…

Compare results of other browsers

Revisions

You can edit these tests or add even more tests to this page by appending /edit to the URL. Here’s a list of current revisions for this page:

0 comments

Add a comment