Make jQuery Object

JavaScript performance comparison

Test case created by Nathan

Preparation code

<script src="https://fireboltjs.com/firebolt.min.js"></script>
<script src="https://zeptojs.com/zepto.min.js"></script>
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script>
var divs = Array.from(document.getElementsByTagName('div'));
// Must use a true array for a fair comparison because Zepto doesn't properly convert a HTMLCollection to a Zepto object
</script>
    

Preparation code output

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
Firebolt
NC.from(divs); // Shorthand for NodeCollection.from()
pending…
Zepto
Zepto(divs);
pending…
jQuery
jQuery(divs);
pending…

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

Compare results of other browsers

0 Comments